- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘Other’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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
….it’s the same exact markup.
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
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
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.
Good question. Too many stress over it but really it’s not as important as some advocate.
I don’t necessarily agree with this article, however it was interesting to read:
@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.