Journal eugene ts wong's Journal: EHTML: DIV, UL, & TITLE Elements 4
I've updated EHTML. I didn't think that any of you were using it, so I didn't bother making a backup copy of the previous version.
You can now optional add DIV and UL as children of HTML. TITLE is now a required child of BODY. The rationale for putting it there is that it encourages good titling of a page, as opposed to "Untitled", "New Page", "Our Web Site", etc. I think that leaving the title in the head section doesn't translate very well in the minds of new HTML authors. Also, it fits better in the document flow, and doesn't require css to get it into a correct position.
For example:
<!DOCTYPE HTML PUBLIC
"-////DTD EHTML 1.0//EN" "http://geocities.com/eugenetswong/ehtml.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<div>
...banner and logo...
</div>
<ul>
<li><a href="/">home</a></li>
<li><a href="/news/">news</li>
<li><a href="/contact">contact</li>
etc.
</ul>
<body><title STYLE="display:block">My Foo Photos</title>
...insert content...
</body>
</html>
Disclaimer: some of the mistakes in the code are a result of slashdot; if you are interested in actual code, then let me know.
Title (Score:2)
!!FileName:text_doc.txt!!
However, it is your DOM, and with it you are free to make HTML in your desired form. Just my
Re:Title (Score:1)
The title isn't supposed to be the file name, so I'm not too sure that I understand your illustration.
I'm not trying to argue, though. Why do you feel that it's meta-data?
Re:Title (Score:2)
You mention what is (to me) the very key: descriptive titles. They are supposed to be summaries, representative of the page content. When you have a half-dozen windows/tabs open, the Title is supposed to be your guide for locating the information you seek. It is a descriptor; it gives meaning to the document - through an otherwise unidentified browser window/tab - much in the same way a file nam
Re:Title (Score:2, Interesting)
Yes, I think that you are right on target. It's just that often times I see the same information [title in the window or tab and the title in the body marked up with h1]. A paper e