标准,标准,什么都有标准
你听说过html5吗?这是一个新版本,当然也有新标准
我只准备了一个文件
以下是代码
1 <!doctype html> <!--告诉浏览器这是一个html文件--> 2 <html> 3 <head> 4 <meta charset = "utf-8"> <!--web页面指定的编码是utf-8--> 5 <title>test</title> 6 <style> 7 h2.myh2{ 8 color: red; 9 } 10 </style> 11 </head> 12 <body> 13 <h1>html5</h1> 14 <a href = "http://validator.w3.org/" title = "w3c验证网址" target = "_blank"><h2 class = "myh2">w3c验证</h2></a> 15 </body> 16 </html>
它的页面并没和html有什么不同
关于w3c验证,它是根据标准判断你的代码正确与否,但是html的容错性强
//本系列教程基于《head first html与css(第二版)》,此书国内各大购物网站皆可购买
转载请注明出处 by:m_zphr
最后修改时间:2019-01-17
如对本文有疑问, 点击进行留言回复!!
清除新版Google Chrome浏览器中表单控件(input,button...)默认的黑色边框
荐 20200714——git/mac配置/项目运行步骤/一些报错
antd 菜单组件 使用时报错:Cannot read property ‘isRootMenu‘ of undefined
CSS|div的style=“background-image: url(img/a.bmp)图片显示不出来
硬件仪表盘账号建立指导(一) --WHQL认证测试结果提交账号(一)
cookie的规范Cookie的不可跨域名性或Cookie与域名的关系
网友评论