Blogger Information
Blog 6
fans 0
comment 0
visits 5950
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
详解HTML元素标签属性之间的关系
好好学习
Original
2201 people have browsed it

一、html元素,标签和属性之间的关联与区别?

什么是html标签:

<p>,<div>等用尖括号包围起来的就是标签,标签通常是成对出现的,<h1></h1>第一个是开始标签,第二个是结束标签,当然也有单标签比如<br/>

什么是html属性:

<div style="height:100px"></div>,以”属性名=属性值”这种名值对的形式出现,height就是属性名,100px就是属性值。

什么是html元素

<p>这是元素内容</p>,标签里面的内容就是HTML元素,也叫单元素

通常情况下,元素是指标签,标签的属性与其包装在内的内容的总称。元素=标签+属性+内容,网页就是由一个个元素组成的。

二、为什么说html是结构化的文档?

因为我们看到的绝大数数网页,都是通过结构化的标签组合而成的,一层层的嵌套,从而形成了庞大的树目录结构,由于他的结构形成,所以我们称他为结构化文档。

三、表单控件中的name属性为什么非常重要?

因为name 属性用于对提交到服务器后的表单数据进行标识,只有设置了 name 属性的表单元素才能在提交表单时传递它们的值

四、为什么现在都不再使用表格进行页面布局了?

  • 代码的可读性
  • 对seo不友好
  • 效率慢

五、一个元素,最终呈现的样式,由几方面的因素决定的

  • 继承样式
  • 浏览器样式
  • 用户自定义样式
  • 行内样式
Correcting teacher:天蓬老师天蓬老师

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!