SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Mentor silver trophybronze trophy

    Join Date
    Feb 2008
    Location
    Preston, Lancashire
    Posts
    1,377
    Mentioned
    72 Post(s)
    Tagged
    1 Thread(s)

    Difference in Standards

    Even though I should know, I don't really. I am not sure what the difference is between standards. I know that in XHTML your suppose to close all the tags, and you generally follow a rule of closing them in order. Also block elements cannot go inside inline elements.

    I recently started questioning myself on standards when I struggled to validate something, the code is listen below.

    Code:
         <p class="width1">
          			 <a href="images/enlarge/chardesign_1.jpg" class="opa"><img src="images/thumb/storyboard/pictstory_1.jpg" alt="slide 1" /><span><u>Clements is toying with the leaf. He then hears something coming from the grooming room <i>(slightly frowns)</i></u></span></a>
    			</p>
    Any advice would be much appreciated.

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That won't validate as XHTML 1.0 Strict or XHTML 1.1, due to your use of the deprecated <u> tag. It should validate as XHTML 1.0 Transitional, though.
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Mentor silver trophybronze trophy

    Join Date
    Feb 2008
    Location
    Preston, Lancashire
    Posts
    1,377
    Mentioned
    72 Post(s)
    Tagged
    1 Thread(s)
    If it is depreciated it must mean that something is now being used in it's place. Can you explain?

  4. #4
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's presentational, so the replacement is to use CSS (in this case text-decoration:underline or border-bottom:1px solid).

    (And it's not depreciated, it's deprecated. )
    Birnam wood is come to Dunsinane

  5. #5
    SitePoint Mentor silver trophybronze trophy

    Join Date
    Feb 2008
    Location
    Preston, Lancashire
    Posts
    1,377
    Mentioned
    72 Post(s)
    Tagged
    1 Thread(s)
    Thanks AutisticCuckoo, I understand now.


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
  •