content"; common double tags include html, head, body, body , body, div, p. 2. Single tag refers to a tag that can completely describe a certain function with one tag symbol. The syntax is ""; common single tags include br, hr, img, input, link, and meta."/> content"; common double tags include html, head, body, body , body, div, p. 2. Single tag refers to a tag that can completely describe a certain function with one tag symbol. The syntax is ""; common single tags include br, hr, img, input, link, and meta.">

Home  >  Article  >  Web Front-end  >  What two types of tags does HTML5 contain?

What two types of tags does HTML5 contain?

青灯夜游
青灯夜游Original
2022-07-29 17:03:238531browse

Two types of tags in HTML5: 1. Double tags refer to tags composed of two tag symbols: start and end. The syntax is "1489d7a824a6a327ea356625ebbfd251content313ec86217575972f09783f4ac3a87d2"; common Double tags include html, head, body, body, body, div, and p. 2. Single tag refers to a tag that can completely describe a certain function with one tag symbol. The syntax is "0259a79470b2cc993e4bccf1072db081"; common single tags include br, hr, img, input, link, and meta.

What two types of tags does HTML5 contain?

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

Hypertext Markup Language (foreign language abbreviation: HTML) markup tags are often called HTML tags. HTML tags are the most basic unit in the HTML language. HTML tags are HTML (an application under the Standard Universal Markup Language) The most important component.

HTML tags are keywords surrounded by angle brackets, such as 100db36a723c770d327fc0aef2ce13b1.

According to the composition characteristics of tags, HTML tags are usually divided into two categories, namely "double tags" and "single tags". Their specific introduction is as follows.

1. Double tags

Double tags are also called "body tags", which are composed of two tag symbols: start and end. tags (opening and closing tags are also called opening and closing tags). The basic syntax format of double tags is as follows. ,

<标签名>内容</标签名>

For example, 100db36a723c770d327fc0aef2ce13b1 and 73a6ac4ed44ffec12cee46588e518a5e, 6c04bd5ca3fcae76e30b72ad730ca86d and 36cc49f0c466276486e50c850b7e4956 in the previous document structure are all double tags.

html5Common double tags

##Tag categoryCommon tagsDouble tags100db36a723c770d327fc0aef2ce13b1 (define HTML document), 93f0f5c25f18dab9d176bd4f6de5d30e (define document header), b2386ffb911b14667cb8f0f91ea547a7 (define document title), 6c04bd5ca3fcae76e30b72ad730ca86d, 5075f39a195bf17e6a1215ad1be57931, b6c5a531a458a2e790c1fd6421739d1c, 45a2772a6b6107b401db3c9b82c049c2, e388a4556c0f65e1904146cc1a846bee, ff9c23ada1bcecdd1a0fb5d5a0f18437, 4a249f0d628e2318394fd9b75b4636b1, c1a436a314ed609750bd7c7d319db4da, 684271ed9684bde649abda8831d4d355, 3f7b3decd2dcafb07b84d2d3985d9f40, 4add249b3fa2e716b3dfc621fd73cb3c, 273238ce9338fbb04bee6997e5552b95, c9ccee2e6ea535a969eb3f532ad9fe89, a4b561c25d9afb9ac8dc4d70affff419, 88f336217b3880082bb52d49b5de60a5, 8e99a69fbe029cd4e2b854e244eab143, 5a8028ccc7a7e27417bff9f05adf5932, dc6dce4a544fdca2df29d5ac0ea9906b, 3499910bf9dac5ae3c52d5ede7383485, c0f51ecb6aace5df2a7ec813b0942e56##

2、单标签

单标签也被称为“空标签”,是指用一个标签符号即可完整的描述某个功能的标签

  • 因为它们是没有内容的 HTML 标签元素,它们是在开始标签中就关闭的元素,不存在成对的情况。

其基本语法格式如下。

<标签名 />

例如,在HTML中还有一种特殊的标签——注释标签,该标签就是一种特殊功能的单标签。如果需要在HTML文档中添加一些便于阅读和理解,但又不需要显示在页面中的注释文字,就需要使用注释标签。注释标签的基本写法。

<!-- 注释语句 -->

需要注意的是,注释内容不会显示在浏览器窗口中,但是作为HTML文档内容的一部分,注释标签可以被下载到用户的计算机上,或者用户查看源代码时也可以看到注释标签。

注:在HTML中,在空标签上使用闭标签是无效的,例如:0b9f73f8e206867bd1f5dc5957dbcb38。这样的情况是无效的HTML。

html单标签有

  • 0c6dc11e160d3b678d68754cc175188a:可插入一个简单的换行符。

    0c6dc11e160d3b678d68754cc175188a 标签是空标签(意味着它没有结束标签,因此这是错误的:0c6dc11e160d3b678d68754cc175188a0b9f73f8e206867bd1f5dc5957dbcb38)。在 XHTML 中,把结束标签放在开始标签中,也就是 df250b2156c434f3390392d09b1c9563。

  • f32b48428a809b51f04d3228cdf461fa:定义 HTML 页面中的主题变化(比如话题的转移),并显示为一条水平线。

  • 03fc64e1e502d5ba947b3a9af06d2d2a:定义图像映射内部的区域(图像映射指的是带有可点击区域的图像)。

  • dde6fb694e6711ae5e6f381704c04ae4:为页面上的所有链接规定默认地址或默认目标。

  • a1f02c36ba31691bcfe87b2722de723b:定义 HTML 页面中的图像。

  • d5fd7aea971a85678ba271703566ebfd:规定了用户可以在其中输入数据的输入字段。

  • 2cdf5bf648cf2f33323966d7f58a7f3f:定义文档与外部资源的关系,最常见的用途是链接样式表。

  • e8e496c15ba93d81f6ea4fe5f55a2244:提供了 HTML 文档的元数据。元数据不会显示在客户端,但是会被浏览器解析。

    META元素通常用于指定网页的描述,关键词,文件的最后修改时间,作者及其他元数据。

    元数据可以被使用浏览器(如何显示内容或重新加载页面),搜索引擎(关键词),或其他 Web 服务调用。

  • abd1d7fe556b8a5c1c26946ca234394a:定义文档中所有文本的默认颜色、大小和字体。

  • 0c68fef83818661b6da588c77ca3985e:允许您为插入 XHTML 文档的对象规定 run-time 设置,也就是说,此标签可为包含它的 273238ce9338fbb04bee6997e5552b95 或者 082dedeb30a00d0e6e2cdb74a392fac3 标签提供参数。

  • 581cdb59a307ca5d1e365becba940e05:规定了 879b49175114808d868f5fe5e24c4e0b 元素内部的每一列的列属性。通过使用 581cdb59a307ca5d1e365becba940e05 标签,可以向整个列应用样式,而不需要重复为每个单元格或每一行设置样式。

  • 04a0d55efbbfd646a993fbc01f262c57:定义 frameset 中的一个特定的窗口(框架)。frameset 中的每个框架都可以设置不同的属性,比如 border、scrolling、noresize 等等。

  • d8e2720730be5ddc9c2a3782839e8eb6:定义了一个容器,用来嵌入外部应用或者互动程序(插件)。

  • aa983b9eb8086376f1f6481364a02e5a规定用于表单的密钥对生成器字段。

  • e02da388656c3265154666b7c71a8ddc:为媒介元素(比如 39000f942b2545a5315c57fa3276f220 和 b97864c2e0ef2353a16c4d64c7734e92)定义媒介资源。

【推荐课程:HTML5视频教程web前端

The above is the detailed content of What two types of tags does HTML5 contain?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn