Blogger Information
Blog 13
fans 0
comment 0
visits 13146
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
默写HTML文本结构及HTML三大属性
小追
Original
1142 people have browsed it

默写HTML文本结构

  • <!DOCTYPE html> 告知浏览器这个文档是HTML文件;

  • <html></html> HTML根元素,所有文本都写在里面;

  • <head></head> 文档头部,设置默认属性,给浏览器看的;

  • <meta></meta> 设置语言等属性;

  • <title></title> 设置浏览器窗口的标题;

  • <body></body> 文档主体内容,给用户看的;

  • <h1-h6></h1-h6> 标题元素,数值越大标题字体越小;

  • <p></p> 段落元素;

  • <img src=""> 在文本中插入图片;

  • <a href=""> 插入链接;

  • <br /> 换行符;

  • <hr /> 添加横线;

  • <!--> 注释内容,可以标注自己编写的代码要用来干嘛,帮助理解代码;


HTML三大属性

  1. id属性,具有唯一性;

  2. class属性,给元素归到一类;

  3. style属性,元素行内样式,优先级较高。

  • 语法: <h2 id="title-id" class="title-class' style="red"></h2>

属性优先级比较

  • 元素<id属性<class属性<style属性。

Correcting teacher:WJWJ

Correction status:qualified

Teacher's comments:知识点总结到了,可以详细点,文档结构那块可以用代码块贴出来!
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post