/ 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).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//This snippet is custom made for use in a TextMate Bundle. //To appropriately use it, create a TextMate Bundle out of it. //After that you can assign it it's own shortcuts / key equivalents. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- Meta Tags --> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="description" content="${2}" /> <meta name="keywords" content="${3}" /> <meta name="robots" content="index, follow" /> <meta name="revisit-after" content="30 days" /> <meta name="rating" content="Safe for kids" /> <meta name="copyright" content="${4}" /> <meta name="author" content="${5}" /> <meta name="contact_addr" content="${6}" /> <meta name="distribution" content="Global" /> <meta name="resource-type" content="document" /> <meta http-equiv="content-language" content="en" /> <!-- CSS --> <link rel="stylesheet" type="text/css" href="css/styles.css" /> <!-- JavaScript --> </head> <body> ${1} </body> </html>