Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Semantics?

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #35201
    cnwtx
    Member

    Just out of curiosity, which of the following is normally considered more semantic?




    heading number 1




    heading number 2




    heading number 3




    Or

    heading number 1

    heading number 2

    heading number 3

    #90779
    chrisburton
    Participant

    ….it’s the same exact markup.

    #90780
    TheDoc
    Member

    Chris is right, it’s the exact same markup so neither would be considered ‘more’ semantic than the other. In terms of preference, though, mine would look something like this:



    heading number 1



    heading number 2



    heading number 3




    #90781

    The first option is more readable. Semantics is related to the elements used and both examples are using the same elements. I, like @TheDoc, would have markup looking like this:


    heading number 1


    heading number 2


    heading number 3



    #90782
    standuncan
    Member

    White space doesn’t affect semantics outside tags. Inside tags it usually only accepts two spaces and anything more than that still only accounts for two, unless you add  ’s or something of that nature. The white space could affect file size though. And also if you are importing .txt files into Flash and other odd cases white space will affect the outcome.

    I mark mine up just like @joshuanhibbert showed.

    #90820
    chrisburton
    Participant

    Good question. Too many stress over it but really it’s not as important as some advocate.

    #90863
    standuncan
    Member

    I don’t necessarily agree with this article, however it was interesting to read:

    Our Pointless Pursuit Of Semantic Value

    #90873

    @cnwtx Semantics matter for those that may not be as fortunate as us. Accessibility is always something that should be on your mind and a sound semantic structure helps screen readers and therefore those that use screen readers.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Other’ is closed to new topics and replies.