Grow your CSS skills. Land your dream job.

non-semantic ans presentational elements of XHTML

  • # March 23, 2009 at 3:32 am

    Which are the non-semantic ans presentational elements of XHTML and should not be never used in markup ?

    Rob
    # March 23, 2009 at 6:34 am

    42?

    # March 23, 2009 at 8:57 am

    My understanding is that XHTML doesn’t have any "non-semantic" elements. You can still use non-semantic HTML4 elements in XHTML Transitional mode, but they are not part of XHTML per se. The following list is off the top of my head, so I have probably missed some but the main ones to avoid are listed.

    b i tt u strike big small sub sup center font

    # March 23, 2009 at 3:37 pm

    what is the opinion about

    BR and HR

    # March 23, 2009 at 3:57 pm

    IMHO I can’t imagine why you would use <br /> tags unless maybe you were generating content dynamically with PHP.
    <hr /> is fine when used properly and not just as decoration.

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".