computer_knowledge_notes/Languages/HTML/html.md

26 lines
832 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

来源:[w3school](http://www.w3school.com.cn)
* meta标签提供页面元信息(必须出现在head内部必须以值/标签的形式成对传递)
content定义与 http-equiv 或 name 属性相关的元信息
http-equiv把content属性关联到http头部
name把content属性关联到一个名称
scheme定义翻译content属性值的格式
* img标签只设置宽度不设置高度可等比例缩放图片。
```html
<!-- 把图片img.png缩放为原来的30% -->
<img src="img.png" width="30%">
```
* link标签连接一个样式表(只能出现在head内部)
href规定被链接文档的位置
rel规定前文档与被链接文档的关系
* div标签把文档分区或分节
* ul标签定义无序列表
* li标签定义列表项目