Blogger Information
Blog 10
fans 0
comment 0
visits 7417
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
html常用基础标签
 有料!
Original
686 people have browsed it

html基本文档结构

常见元素

序号 标签
1 < h1>-<h6> 标题:通过来划分标注内容的文本段落
2 <div></div> 区块:通用容器本身无任何语义,功能主要是用他的属性来描述
3 <span></span> 行内元素:>行内元素: 用于对文档中的行内元素进行组合。
4 <p></p> 段落:描述文字的标签>段落:描述文字的标签
5 <img> 图片:页面的图片显示>图片:页面的图片显示
6 <a> 链接:文本链接,地址链接
7 <br> 换行:常用文本换行
8 <hr> 分割线: 定义水平线。
9 <del></del> 删除线:定义加删除线的文本。

a标签常见用法

a标签基础用法

  1. <a href="baidu.com" target="_black"在新的页面跳转百度</a>
  2. <a href="baidu.com" target="_self"在当前页面跳转百度</a>

a 标签在当前页面显示内容

  1. <a href="https://j.map.baidu.com/3c/Vu" target="dianwo">在内联框架中显示页面</a>
  2. <iframe srcdoc="<em>点击上面的a标签</em>" name="dianwo">
  3. </iframe>

a标签常见跳转用法

  1. <a href="#dibu" target='_self'>点我跳转底部</a>
  2. <div id="dibu" style="marget-top=1000px;">
  3. <a href="#">我是底部,点我跳转顶部</a>
  4. </div>

img标签用法

img显示图片
一般图片都是在a标签使用,很少单独出现

  1. <img src='https://www.php.cn/static/images/course_index4.jpg' alt='这是php中文网的一张图'/>
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!