Results 1 to 7 of 7
  1. #1
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Question on semantics

    I have just been doing some self-revision and decided to take the online test at W3C for XHTML. The question was:

    All elements in XHTML must be closed

    I answered False as my answer and was wrong. My reason for giving that answer was:

    the does not have an opening tag so therefore it does not have to be closed or am I just being overly critical for getting 19/20 <img src=/S/clever.gif border=0 alt=clever width=15 height=15>
    Jerry

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Question on semantics

    <P ID="edit" class=small>(Edited by jscher2000 on 14-Dec-05 16:29. Lounge munged things...)</P><code><tag /></code> is an abbreviation for <code><tag></tag></code>

    For tags such as and <hr /> and <meta /> and <input /> the abbreviated form is customary.

    Note that the space before the / is essential.

    Still, if that's the only one you missed, you did great.

  3. #3
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Question on semantics

    Weeeeelll I never knew about the abbreviation thingy, I just took it as read, thanks.

    <img src=/S/whisper.gif border=0 alt=whisper width=29 height=17>I am one of those people who hate to fail by 1 mark, it's so infuriating <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Jerry

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Question on semantics

    <hr>I am one of those people who hate to fail by 1 mark<hr>
    Then XHTML is gonna infuriate you to no end, because it's very strict!
    -Mark

  5. #5
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Question on semantics

    Tell me about it......saying that though I did validate my recent site I developed(hand coded) as Strict and got it validated immediately...... <img src=/S/thumbup.gif border=0 alt=thumbup width=15 height=15>
    Jerry

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Question on semantics

    I've decided to use HTML 4.01 Strict for now. The "x" stuff doesn't seem to add anything I need. Of course, all my most recent books are for xhtml, but it's fairly easy to spot the x-specific stuff.

  7. #7
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Question on semantics

    Sounds fair enough but I have to try and keep on top of the game at the moment as I have had three more teaching contracts on the subject and every time I attend the College the academics have decided to change yet another aspect to the course [ggggrrrr smiley]. Their latest crusade is on browsers and CSS, anyway keeps me young <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Jerry

Posting Permissions

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