barry360 — 2011-11-07T15:35:29-05:00 — #1
Why does this appear on my site at the top? Actual web display it should be hidden?
Working through the book Build your own website the right way using HTML & CSS Ian lloyd
parkint — 2011-11-07T15:50:26-05:00 — #2
Is the file saved as ".html"? Windows has an annoying tendency to hide the actual file extension.
According to your post (if it was NOT simply a mistype when you posted the question)
barry360 — 2011-11-07T17:13:42-05:00 — #3
Thanks I changed the < as you said and it's gone. Solved!
parkint — 2011-11-08T08:04:42-05:00 — #4
I am glad to hear that.
Realize that a fundamental concept of HTML/XML is the format (or syntax) of the entities. You will begin to see this consistently but;
All HTML elements MUST BE contained within angle-brackets. They are intended to confine and delineate the element.
Inside that element there can be numerous attributes. Every element SHOULD contain a matching OPEN and CLOSE tag.
Some content here, which could be more HTML tags
Some content here
Finally, some tags which do not contain data are not required to have a matching CLOSING tag. However, they ARE REQUIRED to comply with a modified format. The most familiar example is the HTML 'image' tag:
<img src="the_source_is_metadata" style="style_modifiers_is_metadat" />
<hr /> This is another example
<br /> And so is this
Note the way this is self-closing
These are the "formal" requirements. However, many browsers will properly interpret (and interpolate) poorly structured HTML. In the world of XML there is much less tolerance, though.
I hope I have not bored you with TOO MUCH DETAIL.