Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter digitalruse

    (@digitalruse)

    *sigh* it made the anchor tags actually link even with code tags…

    -DR

    Avenir

    (@avenir)

    Well, img tags aren’t bad, it’s just that you need to close them. XHTML requires that all tags be closed, even ones that didn’t have closing tags in HTML. So, you now have to write an image tag like this:

    <img src="image.jpg" alt="image" />

    Notice the space and slash at the end of the tag. This is required in XHTML for validation. Also notice the alt attribute. This is required as well.

    Furthermore, XHTML demands that all tags be in lower case. Notice that I wrote my tag in lower case. This is the only valid way.

    I don’t think <center> is a valid tag in XTHML anymore. I’m not sure though. I don’t think inline styling such asborder or width are allowed anymore either. They should be specified with CSS.

    Similarly to the img tag, <br> must now be written as <br />.

    Root

    (@root)

    And you could ditch the tables and use a list – if you wanted.

    Thread Starter digitalruse

    (@digitalruse)

    Okay I went back and changed the img tags and some of the other stuff and got it from 56 errors to 22. I am sure it will just take more fidilling on my part. And it seems that some of the plugin generated god is to blame too. :/

    Aside from that, when using a horzontal nav menu, would there be a way to have it so that it appeared below the banner images, and still using DIV/CSS? I like the idea of the text in the navbar changing on mouse over, I just want it to be where I want it! >.<

    -DR

    Thread Starter digitalruse

    (@digitalruse)

    Oy… I think I just accidentally figured out the menu thing…

    -DR

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Images, CSS, and XHTML compliance.’ is closed to new replies.