Carnival of HTML: Extra Credit
- Flair
- Carnival of HTML
- More Information
- Special tags
- There are other tags than these; any good XHTML/HTML book or web site will describe them. Commonly-used ones are <sup> and <sub> for superscript and subscript, <cite> for citations, and <br /> for line breaks. The line break tag doesn’t surround any text, so it appears as <br /> in XHTML and <br> in HTML.
- Meaningless markup
- Sometimes you’re marking up printed documents and you need to use print formatting, solely for replicating print formatting and not to impart any meaning. The underline tag is <u>, the italics tag is <i>, and the bold tag is <b>. There’s also a <strike> tag for striking a line through text. Normally, though, you’ll use the meaningful tags: if you want to emphasize text, use <em> or <strong>.…
- Why XHTML 1.0?
- The two real choices for HTML as I write this are HTML 4.0.1 and XHTML 1.0. Why do I use XHTML? Because XHTML is XML, and the tools for working with XML are more robust and reliable, in my experience, than the tools for working with HTML. When I write a program to take a full web page and return a snippet, I can safely break up the web page based on the XHTML tags starting and ending reliably. This isn’t something I can do with HTML.
- Extra Credit: HTML 4.0.1
- You can see an example of HTML 4.0.1 in the Samples folder, as “Carnival (HTML).html”. This is the same as the final “Carnival (Completed).html” but modified to conform to HTML 4.0.1. If you view both of those files side-by-side in your browser, they should display the same (I tested it in Safari 4 and Firefox 3.5).
- Blog comments
- One common use for HTML even for people who don’t write web pages is for marking up blog comments. If you’re commenting in a blog, and the blog says that it supports HTML, it will let you use HTML to emphasis text, add links, and sometimes even add images. Usually, this will mean the emphasis tags, the meaningless markup tags, and links.