treehouse : what would you like to learn today?
Web Design Web Development iOS Development

need expert commnt on some XHTML elements

  • I need a expert comments on these XHTML 1.0 Strict element. should be use or not ? and how to use semantically?


    [list]address or microformat[/list:u]

    [list]b or strong[/list:u]

    [list]base[/list:u]

    [list]big or span class=big[/list:u]

    [list]blockquote or q[/list:u]

    [list]br [/list:u]

    [list]i or em[/list:u]

    [list]small or span class=small[/list:u]

    [list]hr[/list:u]
  • Semantics is all about the intended meaning of the content you're wishing to mark up. It has nothing to do with style. big is a visual attribute, therefore it's a style, so has no place in your html. <b> is also style, so should not be used. If your wish to emphasise a portion of text, you will wrap it in <em> if you wish to strongly emphasise text, you'll wrap it in <strong>. The best thing you can do is read the intended uses of those tag's that you're unsure about at W3Cschools is a good place to start.
    Using Microformats is a matter of personal choice and one which I advocate, but the alternative is not <address>. As I mentioned in another post, the <address> element in HTML is NOT for marking up your street address in a contact section.
  • box see this article once for <address> http://www.seomoz.org/blog/5-html-elements-you-probably-never-use-but-perhaps-should