What is the difference of the two groups of html code

Discussion in 'HTML & Website Design' started by justinlorder, Dec 15, 2008.

  1. #1
    Hello, dp member, What is the difference of the two groups of html code ?

    <meta name="keywords" content="search engine marketing" />
    <link rel="stylesheet" type="text/css" href="images/style.css" />
    <br />


    <meta name="keywords" content="search engine marketing">
    <link rel="stylesheet" type="text/css" href="images/style.css">
    <br>

    :D
    PS. I already know the answer . I would like to ask dp member to answer it bcoz if I reveal the answer at first, it would become a meaningless "copy+paste" thread .
    If I don't reveal the answer at first, it would be a good way to study something about html/css .

    Feel free to comment, my dear DPers .
     
    justinlorder, Dec 15, 2008 IP
  2. FaceJolt

    FaceJolt Guest

    Messages:
    495
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In the first one the tags aren't closed and in the second one they are, representing the requirements of XHTML and HTML respectively
     
    FaceJolt, Dec 15, 2008 IP
  3. satyamy

    satyamy Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    First One is XHTML
    Second is HTML
     
    satyamy, Dec 15, 2008 IP
  4. justinlorder

    justinlorder Peon

    Messages:
    4,160
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Good job ! You reveal the answer . :D
    Xhtml has more strcit code requirement than html coed . It require begin tag and close tag .
    For the tags that don't have close tag, it must end with slash. (it is the same to the close tag. Just like some examples above. Some other tag like <img src="images/logo.gif" /> and so on)
     
    justinlorder, Dec 15, 2008 IP
  5. SearchBliss

    SearchBliss Well-Known Member

    Messages:
    1,899
    Likes Received:
    70
    Best Answers:
    2
    Trophy Points:
    195
    Digital Goods:
    1
    #5
    So what exactly was the point of this thread? To quiz DP members? :rolleyes:
     
    SearchBliss, Dec 15, 2008 IP
  6. justinlorder

    justinlorder Peon

    Messages:
    4,160
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I would like to share some css knowledge with dp member . But I don't like the "copy and paste" threads .
    I would like to say it with examples , it is easy to remember . Don't you think so ?

    The second purpose is to quiz the dp members . :D
     
    justinlorder, Dec 15, 2008 IP
  7. myst729

    myst729 Peon

    Messages:
    289
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #7
    and also to increase meaningless number of posts...
     
    myst729, Dec 16, 2008 IP
  8. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #8
    Not quite true. You are comparing two different dialects. Each has ts own syntax, or grammar. Neither is more or less strict than the other&#8212;they're just different.

    cheers,

    gary
     
    kk5st, Dec 16, 2008 IP
  9. justinlorder

    justinlorder Peon

    Messages:
    4,160
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Buddy, you are wrong .
    I had started a thread about the difference of document type declaration here .
    http://forums.digitalpoint.com/showthread.php?t=936660

    The same (x)html markup and css code display differently in the same browser, if the document type are different . You should know that . So the document type declaration is easy to ignore by web developers but very important !

    There are still many people who can't tell out the difference of different document type .
    Learning by example is good way of study .
    Don't you think so ?
     
    justinlorder, Dec 16, 2008 IP
  10. madhu6386

    madhu6386 Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    the first code is XHTMl(adavanced version of HTML) ,the set of code is HTML.the html code requires a close tag
    without that it may not work
     
    madhu6386, Dec 16, 2008 IP