HTML:Hyper Text Markup Language
eg:一个简单的HTML页面
HTML基本要素:标记,元素,内容,属性
HTML单标记元素
eg:
- <img src="a.jpg"width="100"height=“200”/>
tip:对于单标记元素,尽量在start tag的闭合之前加上/
HTML5可以不加,但XHTML强制需要
HTML全局属性(Global attributes)
accesskey class contentedi table context menu dir draggable dropzone hidden
id itemid itemprop itemref itemscope itemtype lang spellcheck style
tabbindex title translate
最常用的全局属性有:id,class,style,title