SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Threaded View

  1. #1
    Designer
    Join Date
    Jun 2006
    Location
    Manila
    Posts
    590
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    To wrap or not to wrap? A semantic question

    Do you:

    Code:
    <a><h1>content</h1></a>
    Because you feel that the "header" is a link,

    or

    Code:
    <h1><a>content</a></h1>
    Because you feel that the content within, defined as a header, is the link?

    and why?

    ---------------------

    One thing I do vaguely remember is that block level elements should wrap around the anchor tags, while the anchor tags can/should wrap around inline elements.

    Anyone?
    Last edited by XLCowBoy; Jun 13, 2008 at 10:12. Reason: Added a comment


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
  •