Blogger Information
Blog 18
fans 3
comment 3
visits 16204
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
html文档的基本结构 html元素的三大通用属性 内联选择器,类选择器,id选择器不同级别的样式规则
刹那永恒个人博客
Original
901 people have browsed it

html文档的基本结构

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>这里是标题</title>
  6. </head>
  7. <body>
  8. <p>这里是一个标签</p>
  9. </body>
  10. </html>

html元素的三大通用属性

  • id:获取页面中的唯一元素

  • class(类):获取页面中的一类元素

  • style(内联样式):设置某个元素的具体样式


内联选择器,类选择器,id选择器不同级别的样式规则

  • 内联选择器样式权重高于id选择器

  • id选择器样式权重高于类选择器

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