首页 > 代码库 > sublime text2 emmet 快速生成HTML头部信息Emmet

sublime text2 emmet 快速生成HTML头部信息Emmet

html:4t

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html lang="${lang}">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=${charset}">
  5. <title>Document</title>
  6. </head>
  7. <body>
  8. ${child}
  9. </body>
  10. </html>

html:4s

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html lang="${lang}">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=${charset}">
  5. <title>Document</title>
  6. </head>
  7. <body>
  8. ${child}
  9. </body>
  10. </html>

html:xt

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${lang}">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=${charset}" />
  5. <title></title>
  6. </head>
  7. <body>
  8. ${child}
  9. </body>
  10. </html>

html:xs

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${lang}">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=${charset}" />
  5. <title>Document</title>
  6. </head>
  7. <body>
  8. ${child}
  9. </body>
  10. </html>

html:xxs

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${lang}">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=${charset}" />
  5. <title>Document</title>
  6. </head>
  7. <body>
  8. ${child}
  9. </body>
  10. </html>

html:5

  1. <!doctype html>
  2. <html lang="${lang}">
  3. <head>
  4. <meta charset="${charset}">
  5. <title>Document</title>
  6. </head>
  7. <body>
  8. ${child}
  9. </body>
  10. </html>

 

sublime text2 emmet 快速生成HTML头部信息Emmet