Tag: XHTML

  • Nested Lists in XHTML

    Quick Overview If you want to nest lists in HTML, you probably did something like the following (although you may not have done the indenting) &lt;ul&gt;<br /> &nbsp;&nbsp;&lt;li&gt;List Item 1&lt;/li&gt;<br /> &nbsp;&nbsp;&lt;ul&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Sublist Item 1&lt;/li&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Sublist Item 2&lt;/li&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Subsublist Item 1&lt;/li&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Sublist Item 3&lt;/li&gt;<br /> &nbsp;&nbsp;&lt;/ul&gt;<br /> […]

  • XHTML Compatible Image Flip

    Quick Overview Many sites nowadays (this one included) use an image flip for links. That is, an image displays one thing before it’s clicked, and a different image when the mouse is hovering over it. The classic implementation is not valid XHTML 1.1, however, as it uses depreciated JavaScript. Here’s how to do it properly. […]