Blogger Information
Blog 37
fans 0
comment 0
visits 34761
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
html的基本标签介绍
手机用户1607314868
Original
725 people have browsed it

html标签

页面中看到的内容都是由元素组成
元素是由标签描述,标签根据元素的类型分为双标签和单标签
每个元素的特征,由属性来描述,描述的属性写到起始标签中

  1. <h1>标题标签</h1>由1-6个由大到小
    内容标签<p></p>大段文本
    <a href="" target=""></a>
  2. a标签是链接标签,用来跳转网页。href是网页地址,target=”iframe内联框架的name值”
    1. <a href="https://www.baidu.com/" target="baidu"></a>
    2. <iframe name="baidu" width="400" height="400"></iframe>
  3. <img>图片标签,图片设置大小,只需要设置宽度或高度一项就可以,另一个会等比缩放。注意:一般都是在css中设置大小
    <img src="1.jpg" alt="你好" width="200px">
  4. 锚点
    1. <a href="#footer">底部</a>
    2. <!--创建锚点-->
    3. <div id="footer" style="margin-top:1000px"> 这是底部!!!!! </div>
    4. <a href="#">回到顶部</a>
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