{"id":75,"date":"2005-02-08T02:24:42","date_gmt":"2005-02-08T00:24:42","guid":{"rendered":"http:\/\/www.maratz.com\/blog\/archives\/2005\/02\/08\/the-problems-with-the-headings\/"},"modified":"2005-04-03T16:27:56","modified_gmt":"2005-04-03T14:27:56","slug":"the-problems-with-the-headings","status":"publish","type":"post","link":"http:\/\/www.maratz.com\/blog\/archives\/2005\/02\/08\/the-problems-with-the-headings\/","title":{"rendered":"The Problems with the Headings"},"content":{"rendered":"<p>The project i\u2019m currently working on, requires me to re-think\/redo structure of the headings  in a way somewhat different than i did it before. Searching through my usual resources (<a href=\"http:\/\/w3.org\/\"><acronym title=\"World Wide Web Consortium\">W3C<\/acronym><\/a> and some usual standardista\u2019s blogs) left me with no answer, but with question or two more.<!--more--><\/p>\n<p>I\u2019ve found that there is at least 4 major philosophies when applying headings:<\/p>\n<ol>\n<li>headings for structure<\/li>\n<li>headings for content<\/li>\n<li>headings for Google<\/li>\n<li>hybrid headings<\/li>\n<\/ol>\n<p>Each of these have some cons and pros, which i\u2019ll try to summarize. For easier following, let\u2019s say we are dealing with an online version of some daily newspaper. This newspaper has its\u2019 name for example \u201dDaily Sports\u201d, and has some categories about football, basketball and skiing. The home page contains hot stuff, and in general gives a quick overview about what\u2019s going on inside the web site. The category page gives an overview of articles within it. The article page contains headlines, images and text, but  every article is in some way connected to a few others, so at every article page, there\u2019s a list of related stories. So, we have 3 types of layouts, with the same common elements like navigation, logotype and the usual stuff.<\/p>\n<h3>Headings Layout A<\/h3>\n<p>In these layouts, headlines are supposed to be styled with CSS to pull user\u2019s attention when viewed in graphical user agent. This means that the article page\u2019s <code>&#60;h3><\/code> can be the biggest of all on that particular page.<\/p>\n<h4>Home Page<\/h4>\n<pre>&#60;body>\r\n   <strong>&#60;h1>Daily Sports&#60;\/h1><\/strong>   \r\n   &#60;p>some content&#60;\/p>\r\n      &#60;div>\r\n      <strong>&#60;h2>Hot News Overview&#60;\/h2><\/strong>\r\n         &#60;div>\r\n            <strong>&#60;h3>Hot News One&#60;\/h3><\/strong>\r\n            &#60;p>news text&#60;\/p>\r\n         &#60;\/div>\r\n         ...\r\n      &#60;\/div>\r\n&#60;\/body><\/pre>\n<h4>Category Page<\/h4>\n<pre>&#60;body>\r\n   <strong>&#60;h1>Daily Sports&#60;\/h1><\/strong>   \r\n   &#60;p>some content&#60;\/p>\r\n      &#60;div>\r\n      <strong>&#60;h2>Category Title&#60;\/h2><\/strong>\r\n         &#60;div>\r\n            <strong>&#60;h3>Category News One&#60;\/h3><\/strong>\r\n            &#60;p>news text&#60;\/p>\r\n         &#60;\/div>\r\n         ...\r\n      &#60;\/div>\r\n&#60;\/body><\/pre>\n<h4>Article Page<\/h4>\n<pre>&#60;body>\r\n   <strong>&#60;h1>Daily Sports&#60;\/h1><\/strong>   \r\n   &#60;p>some content&#60;\/p>\r\n      &#60;div>\r\n      <strong>&#60;h2>Category Title&#60;\/h2><\/strong>\r\n         &#60;div>\r\n            <strong>&#60;h3>Article Title&#60;\/h3><\/strong>\r\n            &#60;p>news text&#60;\/p>\r\n         &#60;\/div>\r\n         ...\r\n      &#60;\/div>\r\n&#60;\/body><\/pre>\n<h3>Headings Layout B<\/h3>\n<p>Headings are related to importance of the content headings. Here the <code>&#60;h1><\/code> wraps the main title at the current page.<\/p>\n<h4>Home Page<\/h4>\n<pre>&#60;body>\r\n   <strong>&#60;h1>Daily Sports&#60;\/h1><\/strong>   \r\n   &#60;p>some content&#60;\/p>\r\n      &#60;div>\r\n      <strong>&#60;h2>Hot News Overview&#60;\/h2><\/strong>\r\n         &#60;div>\r\n            <strong>&#60;h3>Hot News One&#60;\/h3><\/strong>\r\n            &#60;p>news text&#60;\/p>\r\n         &#60;\/div>\r\n         ...\r\n      &#60;\/div>\r\n&#60;\/body><\/pre>\n<h4>Category Page<\/h4>\n<pre>&#60;body>\r\n   <strong>&#60;div>Daily Sports&#60;\/div><\/strong>   \r\n   &#60;p>some content&#60;\/p>\r\n      &#60;div>\r\n      <strong>&#60;h1>Category Title&#60;\/h1><\/strong>\r\n         &#60;div>\r\n            <strong>&#60;h2>Category News One&#60;\/h2><\/strong>\r\n            &#60;p>news text&#60;\/p>\r\n         &#60;\/div>\r\n         ...\r\n      &#60;\/div>\r\n&#60;\/body><\/pre>\n<h4>Article Page<\/h4>\n<pre>&#60;body>\r\n   <strong>&#60;div>Daily Sports&#60;\/div><\/strong>   \r\n   &#60;p>some content&#60;\/p>\r\n      &#60;div>\r\n      <strong>&#60;div>Category Title&#60;\/div><\/strong>\r\n         &#60;div>\r\n            <strong>&#60;h1>Article Title&#60;\/h1><\/strong>\r\n            &#60;p>news text&#60;\/p>\r\n         &#60;\/div>\r\n         ...\r\n      &#60;\/div>\r\n&#60;\/body><\/pre>\n<h3>Headings Layout C<\/h3>\n<p>Previous example is quite inaccessible, so mostly the two mentioned before are combined to satisfy some accessibility requirements (i.e. providing headings for the sections of the page) and to emphasize importance of particular content. However, these layouts are usually improperly outlined by markup validator.<\/p>\n<h4>Home Page<\/h4>\n<pre>&#60;body>\r\n   <strong>&#60;h1>Daily Sports&#60;\/h1><\/strong>   \r\n   &#60;p>some content&#60;\/p>\r\n      &#60;div>\r\n      <strong>&#60;h2>Hot News Overview&#60;\/h2><\/strong>\r\n         &#60;div>\r\n            <strong>&#60;h3>Hot News One&#60;\/h3><\/strong>\r\n            &#60;p>news text&#60;\/p>\r\n         &#60;\/div>\r\n         ...\r\n      &#60;\/div>\r\n&#60;\/body><\/pre>\n<h4>Category Page<\/h4>\n<pre>&#60;body>\r\n   <strong>&#60;h3>Daily Sports&#60;\/h3><\/strong>   \r\n   &#60;p>some content&#60;\/p>\r\n      &#60;div>\r\n      <strong>&#60;h1>Category Title&#60;\/h1><\/strong>\r\n         &#60;div>\r\n            <strong>&#60;h2>Category News One&#60;\/h2><\/strong>\r\n            &#60;p>news text&#60;\/p>\r\n         &#60;\/div>\r\n         ...\r\n      &#60;\/div>\r\n&#60;\/body><\/pre>\n<h4>Article Page<\/h4>\n<pre>&#60;body>\r\n   <strong>&#60;h3>Daily Sports&#60;\/h3><\/strong>   \r\n   &#60;p>some content&#60;\/p>\r\n      &#60;div>\r\n      <strong>&#60;h2>Category Title&#60;\/h2><\/strong>\r\n         &#60;div>\r\n            <strong>&#60;h1>Article Title&#60;\/h1><\/strong>\r\n            &#60;p>news text&#60;\/p>\r\n         &#60;\/div>\r\n         ...\r\n      &#60;\/div>\r\n&#60;\/body><\/pre>\n<h3>The <code>&#60;title><\/code>  Element<\/h3>\n<p>The <code>&#60;title><\/code> element holds actual name and\/or description of the document. It describes what this particular sub-page is about. According to W3C: <\/p>\n<blockquote cite=\"#\"><p>\u201cAuthors should use the TITLE element to identify the contents of a document. Since users often consult documents out of context, authors should provide context-rich titles. Thus, instead of a title such as \u201cIntroduction\u201d, which doesn&#8217;t provide much contextual background, authors should supply a title such as \u201cIntroduction to Medieval Bee-Keeping\u201d instead.\u201d<\/p><\/blockquote>\n<p>The <code>&#60;title><\/code> element is usually containing something like \u201cWebsite\u2019s name > Category > Article Title > Article description\u201d.<\/p>\n<h3>The Google Aspect<\/h3>\n<p>The algorithm by which Google indexes web pages is still quite a mystery. However, extensive usage of headings and <code>&#60;title><\/code> element seems to help in gaining higher page rank. Needless to say, applying too many words and phrases into <code>&#60;h1><\/code> and <code>&#60;title><\/code> may position a web site higher at Google, but is not contextually appropriate. Many authors believe that the real and constantly refreshed content can provide more than adequate feed for the Google , without obsolete <acronym title=\"Search Engine Optimization\">SEO<\/acronym> (Search Engine Optimization) trickery.<\/p>\n<h3>Headings in a Book<\/h3>\n<p>If you compare a book  and a web site, there is certain similarity\u2013at least as i see it: The <code>&#60;h1><\/code> of  a book is it\u2019s title, for example \u201cWeb Standards Book\u201d, <code>&#60;h2><\/code>s are titles of the chapters\u2013\u201cMarkup\u201d, \u201cStyling\u201d and \u201cScripting\u201d, <code>&#60;h3><\/code>s are titles of the particular stories\u2013\u201cHTML\u201d, \u201cXML\u201d and \u201cXHTML\u201d in the \u201cMarkup\u201d chapter; \u201cCSS\u201d and \u201cXSL\u201d in the \u201cStyling\u201d chapter; \u201cDOM\u201d and \u201cECMA\u201d in the \u201cScripting\u201d chapter&#8230; you got the point. The way i see it\u2013the <code>&#60;title><\/code> is that small text in the upper-left (or upper-right) corner telling you the title of a story, chapter or the of a book. Or am i wrong?<\/p>\n<h3>The Questions<\/h3>\n<ol>\n<li>Which of the three simplified layouts is the most correct?<\/li>\n<li>Is the separation of the presentation and structure also a separation of presentation and context (or context and structure)?<\/li>\n<\/ol>\n<h3>Related reading<\/h3>\n<ul>\n<li><a href=\"http:\/\/www.w3.org\/TR\/REC-html40\/struct\/global.html#h-7.5.5\">The global structure of an HTML document (w3.org)<\/a><\/li>\n<li><a href=\"http:\/\/www.htmldog.com\/guides\/htmlbeginner\/headings\/\">HTML headings (htmldog.com)<\/a><\/li>\n<li><a href=\"http:\/\/meyerweb.com\/eric\/thoughts\/2004\/07\/21\/\">Pick a Heading (meyerweb.com)<\/a><\/li>\n<li><a href=\"http:\/\/jogin.com\/weblog\/archives\/2004\/07\/19\/hierarchy\">Hierarchy (Jogin.com)<\/a><\/li>\n<\/ul>\n<h3>Update<\/h3>\n<p>I\u2019ve just read this morning an excellent entry by Andy Budd <a href=\"http:\/\/www.andybudd.com\/archives\/2005\/02\/heading_elements_semantics_and_the_spec\/\">Heading Elements, Semantics and the Spec<\/a>. If i read that before, my questions would be answered : ).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The project i&#8217;m currently working on, requires me to re-think\/redo structure of the headings  in a way somewhat different than i did it before. Searching through my usual resources (<a href=\"http:\/\/w3.org\/\"><acronym title=\"World Wide Web Consortium\">W3C<\/acronym><\/a> and some usual standardista&#8217;s blogs) left me with no answer, but with question or two more.<\/p>\n<p>I&#8217;ve found that there is at least 4 major philosophies when applying headings:<\/p>\n<ol>\n<li>headings for structure<\/li>\n<li>headings for content<\/li>\n<li>headings for Google<\/li>\n<li>hybrid headings<\/li>\n<\/ol>\n<p>&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/posts\/75"}],"collection":[{"href":"http:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":0,"href":"http:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}