Posted By

jaymanpandya on 06/24/10


Tagged

css javascript html script tags conditional head stylesheet href meta description charset keywords


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

designflex
seloh77
LeeRJohnson


Required tags in the head tag of any html document


 / Published in: HTML
 

The bare minimum required tags in the head tag of any HTML doc...

  1.  
  2. <title>Add your title here</title>
  3.  
  4. <!-- meta tags -->
  5. <meta charset="utf-8" />
  6. <meta name="keywords" content="" />
  7. <meta name="description" content="" />
  8.  
  9. <!-- css references -->
  10. <link rel="stylesheet" type="text/css" href="foldername/filename.css" media="screen" />
  11.  
  12. <!-- conditional css references -->
  13. <!--[if IE6]>
  14. <link rel="stylesheet" type="text/css" href="foldername/filename.css" media="screen" />
  15. <![endif]-->
  16. <!--[if IE7]>
  17. <link rel="stylesheet" type="text/css" href="foldername/filename.css" media="screen" />
  18. <![endif]-->
  19.  
  20. <!-- linked client side-scripts -->
  21. <script type="text/javascript" src="foldername/filename.js"></script>
  22.  
  23. </head>

Report this snippet  

You need to login to post a comment.