Blogger Information
Blog 29
fans 0
comment 0
visits 19816
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1208作业
手机用户1576673622
Original
605 people have browsed it

元素

元素是由标签和属性共同描述的,标签分为双标签和单标签。元素的特征由属性描述,属性写在起始标签中。


标签

html中的所有内容,想要写到html文档中,必须使用一个标签。

  • 标题标签:h1—h6
  • 内容标签:p
  • 链接标签:a
  • 内联框架标签:iframe
  • 通用容器标签:div
  • 图片标签:img

锚点

用来在页面内任意位置跳转。
锚点使用id属性创造,a标签链接


图片

图片很少单独使用,往往用在链接上
调整大小建议使用css


实例

“`<!DOCTYPE html>

<html lang="zh-CN" <head>
<meta charset="UTF-8"/>
<title>四大名著</title>
</head>
<body>

  1. <p>三国 水浒 红楼梦 西游记</p>
  2. <h1>四大名著</h1>
  3. <h2>四大名著</h2>
  4. <h3>四大名著</h3>
  5. <img src="https://bkimg.cdn.bcebos.com/pic/91529822720e0cf34afbed840746f21fbe09aa45?x-bce-process=image/resize,m_lfit,w_268,limit_1/format,f_jpg" alt="">
  6. <a href="https://baike.baidu.com/item/%E5%9B%9B%E5%A4%A7%E5%90%8D%E8%91%97/8376?fr=aladdin" target="book">四大名著</a>
  7. <iframe src="" name="book"></iframe>
  8. <a href="#footer">最下方</a>
  9. <div id="footer" style="margin-top: 1000px">世界尽头</div>
  10. <a href="#">回去</a>
  11. </body>

</html>`”

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