标签:html5
<!DOCTYPE html> <html lang="en"> <head> </head> <body> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name> <title>这是文档的标题</title> </head> <body> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <base href="http://www.baidu.com/img/"> </head> <body> <!-- http://www.baidu.com/img/a.jpg --> <img src="a.jpg"> <!-- 如果带协议头,则忽略 base 指定的基URL --> <!-- http://www.baidu.com/img/b.jpg --> <img src="http://www.baidu.com/img/b.jpg"> <!-- 省略协议头但保留"//",仍然会忽略 base 指定的基URL --> <!-- 这也是谷歌前端编码规范推荐使用的一种方式 --> <!-- http://www.baidu.com/img/c.jpg --> <img src="//www.baidu.com/img/c.jpg"> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="css/style.css"> </head> <body> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <!-- 常用的几个 --> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no"> <meta name="author" content=""> <meta name="keywords" content=""> <meta name="description" content=""> </head> <body> </body> </html>
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title></title> <style> #div { width: 100px; height: 100px; } </style> </head> <body> </body> </html>
标签:html5
原文地址:http://blog.csdn.net/wozaixiaoximen/article/details/45157439