Posted By

r2cgroup on 02/10/11


Tagged

html page r2c


Versions (?)

R2C TextMate Bundle - HTML Page


 / Published in: HTML
 

I use this every time I start a fresh, blank page. This way I can guarantee consistency across all my pages (and it reminds me to put in all the appropriate meta tags that are often forgotten).

  1. //This snippet is custom made for use in a TextMate Bundle.
  2. //To appropriately use it, create a TextMate Bundle out of it.
  3. //After that you can assign it it's own shortcuts / key equivalents.
  4.  
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  8. <title>${1}</title>
  9.  
  10. <!-- Meta Tags -->
  11. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  12. <meta name="description" content="${2}" />
  13. <meta name="keywords" content="${3}" />
  14. <meta name="robots" content="index, follow" />
  15. <meta name="revisit-after" content="30 days" />
  16. <meta name="rating" content="Safe for kids" />
  17. <meta name="copyright" content="${4}" />
  18. <meta name="author" content="${5}" />
  19. <meta name="contact_addr" content="${6}" />
  20. <meta name="distribution" content="Global" />
  21. <meta name="resource-type" content="document" />
  22. <meta http-equiv="content-language" content="en" />
  23.  
  24. <!-- CSS -->
  25. <link rel="stylesheet" type="text/css" href="css/styles.css" />
  26.  
  27. <!-- JavaScript -->
  28. <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
  29.  
  30. </head>
  31.  
  32. ${1}
  33. </body>
  34. </html>

Report this snippet  

You need to login to post a comment.