Required tags in the head tag of any html document


/ Published in: HTML
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.