history - Why are h1-h6 different tag names in HTML? -
why h1
through h6
different tags in html, rather having syntax <heading level="1">
? i'd interested know history behind decision (and same different lists, ol
, ul
rather common list).
so far, research hasn't turned up. w3c spec groups them "headings", describing them jointly. asked similar question on stack overflow once before, discussion value of semantics , not reasoning particular language design choice.
edit: i'm not asking seo implications of 1 or other, i'm looking answers around why creators of html chose syntax did.
edit 2: question can elicit lot of opinion there exists factual answer, , found jukka in comments below: http://infomesh.net/html/history/early/. assumed opinion part of discussion had when html first created, , looking rather trying rehash debate.
why h1 through h6 different tags in html, rather having syntax
<heading level="1">
?
because that's how defined in 1993:
headings 6 levels of heading supported. (note hypertext node within hypertext work tends need less levels of heading work structure given nesting of headings.) heading element implies font changes, paragraph breaks before , after, , white space (for example) necessary render heading. further character emphasis or paragraph marks not required in html. h1 highest level of heading, , recommended start of hypertext node. suggested the text of first heading suitable reader browsing in related information, in contrast title tag should identify node in wider context. heading elements <h1>, <h2>, <h3>, <h4>, <h5>, <h6>
you must realize there minimal attribute usage in original html spec. each element served specific purpose toward marking documents emphasis on being easy write , easy read. can assume tag along lines of <heading>
have been flat-out rejected because long type, , in way of content of page.
the usage predates concept of external stylesheets, selectors not have played role in decision naming convention.
once elements defined, there no reason rename them cause backwards compatibility issues.
Comments
Post a Comment