Close

Results 1 to 1 of 1
  1. #1
    DF VIP Member graham.edmon's Avatar
    Join Date
    May 2001
    Location
    Edinburgh
    Posts
    263
    Thanks
    0
    Thanked:        0
    Karma Level
    290

    Default (X)HTML standards

    i have to say one thing I notice on DF when it comes to web design or primarily HTML is that people are still using the old HTML standards. This isn't a problem at the moment, but we are all getting closer to the point where it is going to be a problem, where browsers start to ignore certain malformed HTML tags because although perfectly correct until HTML 4.2 they are not valid under strict XHTML 1.0.

    So I thought, since I dont want to go to bed.. I would write a wee quick overview of XHTML for all your raw HTML coders out there.


    basically (VERY basic)

    every tag MUST be ended

    for example

    PHP Code:
     <HR
    is invalid, it is not ENDED, therefor under XHTML is SHOULD READ

    PHP Code:
     <hr /> 
    two things to notice here....
    1. the tag is in lower case.. this should ALWAYS be the case under XHTML, this includes attributes too, i.e.

    PHP Code:
     <a href="mpage.htm">goto</a
    on the anchor tag
    PHP Code:
     <a...></a
    then the tag is actually ended by the
    PHP Code:
     </a
    which is correct.

    as illustrated above for some other tags that don't (under HTML) need an end tag (
    PHP Code:
     <BR>,<HR
    , etc) should be ended in the
    PHP Code:
     <tag[space]/>   i.e. <br /> or <hr /> 
    notation.

    When it comes to quoting attibutes, then it should ALWAYS be using the "rabbit ears" " notation, and never the ' single quote.

    this allows the web page to become a well formed (strict,formal and transient (if I remember) which are different forms of XHTML).

    so if you all want to give XHTML a try, you can easily check it using IE, since i will render HTML as XML if you request it to do so, and will report errors on any incorrect (not well formed) syntax.

    you can refer to this http://www.w3schools.com/xhtml/
    Last edited by graham.edmon; 1st February 2003 at 02:23 AM.

Similar Threads

  1. North Korea + USA Double standards
    By Robbo in forum The Dog and Duck
    Replies: 27
    Last Post: 25th April 2003, 12:22 PM
  2. Humax Standards
    By swanside in forum Digital Satellite TV
    Replies: 1
    Last Post: 6th January 2003, 06:10 PM
  3. Palm os + html editor
    By digidump in forum PC Software
    Replies: 0
    Last Post: 20th November 2002, 02:15 PM
  4. html question
    By p i m p in forum The Dog and Duck
    Replies: 27
    Last Post: 17th October 2002, 08:52 AM
  5. iSO Standards
    By iceNhower in forum Forum Suggestions & Feedback
    Replies: 12
    Last Post: 10th October 2002, 05:19 PM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •