1.tag标签(一般成对出现包含元素):
1)h1(header)主标题,h2副标题,
2)p(paragraph)段落. support nesting
3)img(image)图片自封闭标签src="url" support width height ,border,alt property
4)input(输入框)自封闭 type="type"
text(输入框):placeholder(hint占位符,预定义文字),required定义必填项
radio(单选按钮):name(分组 关联的radio具有相同的name) checked默认选中
checkbox(复选按钮):name(分组 关联的checkbox具有相同的name) checked默认选中
5)label(标签)可以内嵌标签
6)button(按钮)type="type"(非自封闭) submit,reset
7) a(anchor)锚 href="url'' 固定链接#(hash符号)也叫死链接
8)ul(unorder list)无序列表,contain li(list item列表元素),对应于ol
9)form(表单) action="url/method"
10)div(division层) common container to place other elements.
4) <!-- -->注释标签
2.style样式:1)inline style内嵌样式 style="properyname:propertyvalue;",优先级高于style.
2)style:a.tag style tagname{propertyname