title: doctype location - wordpress
body: <p>So I have a site created via  wordpress. My problem is that the doctype is declared after a div which is  I think is wrong. but since I'm using wordpress I put the doctype tag on my header but my header is inside a div.</p>
  
  <p><a href="http://prntscr.com/53if2y" rel="nofollow">header content</a> </p>
  
  <pre><code>&lt;div class="row" &gt;
      &lt;?php get_header(); ?&gt; // &lt;-- doctype loads here
          &lt;div id="content"&gt;
              &lt;div class="twelve columns clearfix"&gt;
                  &lt;section class="nine columns clearfix" itemprop="articleBody" style="border-right: 1px solid #a79c7f;  min-height:450px !important;"&gt;
                      &lt;?php if ( have_posts() ) : ?&gt;
                      &lt;?php query_posts('category_name=post da');  while ( have_posts() ) : the_post(); ?&gt; 
  &lt;a href="&lt;?php the_permalink(); ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"target="_blank" &gt;&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;
                          &lt;?php the_excerpt(); ?&gt;&lt;/a&gt;
                      &lt;hr&gt;
                      &lt;?php endwhile; ?&gt;
                  &lt;/section&gt; 
                      &lt;?php if (function_exists('page_navi')) { // if expirimental feature is active ?&gt;
                          &lt;?php page_navi(); // use the page navi function ?&gt;
                      &lt;?php } else { // if it is disabled, display regular wp prev &amp; next links ?&gt;
                          &lt;nav class="wp-prev-next"&gt;
                              &lt;ul class="clearfix"&gt;
                                  &lt;li class="prev-link"&gt;&lt;?php next_posts_link(_e('&amp;laquo; Older Entries', "bonestheme")) ?&gt;&lt;/li&gt;
                                  &lt;li class="next-link"&gt;&lt;?php previous_posts_link(_e('Newer Entries &amp;raquo;', "bonestheme")) ?&gt;&lt;/li&gt;
                              &lt;/ul&gt;
                          &lt;/nav&gt;
                      &lt;?php } ?&gt;      
                      &lt;?php else : ?&gt;
                      &lt;?php endif; ?&gt;
                      &lt;?php get_sidebar(); ?&gt;
              &lt;/div&gt; &lt;!-- end #main --&gt;
          &lt;/div&gt; &lt;!-- end #content --&gt;
      &lt;?php get_footer(); ?&gt;
  &lt;/div&gt; &lt;!-- end .row--&gt;
  </code></pre>
  
  <p>Now I know this can be resolve by removing the doctype tag inside the header and placing it before </p>
  
  <p><code>&lt;div class="row" &gt;</code></p>
  
  <p>but it will be redundant to put it on every template that I create. is there anything I can do to other than putting my doctype to every page like the way I'm using with the header but in a correct order.</p>
  
  <p>I can't exchange the place of the header to my row because the design will break.</p>
  
  <hr>
  
  <p>ANOTHER QUESTION: Is it possible to start a div from my header and not placing the closing tag to the header but placing it on the footer. will that work? so i can place the starting div row after the doctype tag on the header instead of placing it before the whole header.</p>