Home  >  Article  >  Web Front-end  >  Basic format of html tags

Basic format of html tags

无忌哥哥
无忌哥哥Original
2018-06-29 09:45:403357browse

1.元素:页面中可以看见的内容,都是元素,元素是用标签来表示的

2.标签:用来描述元素的,根据元素的不同,标签也有很多种类,例如文本,图像等

3.根据标签描述的对象不同,分为双标签和单标签二类。

4.如果标签中有文本或者子标签的话,一般采用双标签来描述,例如e388a4556c0f65e1904146cc1a846beef5d188ed2c074f8b944552db028f98a1...

5.如果标签中的内容来自外部资源,如图像,文件等,大多使用单标签,如a1f02c36ba31691bcfe87b2722de723b2cdf5bf648cf2f33323966d7f58a7f3f

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>标签的基本格式</title>
</head>
<body>
<!--<h2>标签中有用户输入的文本,所以是双标签 -->
<h2>PHP中文网第二期线上培训班开课啦~~</h2>
<!-- <img>标签中的内容来自一个外部文件,所以使用单标签来表示 -->
<img src="../images/6.jpg">
<!-- 这时你会看到图像非常大,不必担心,一会我们会给<img>标签属性来解决这个问题 -->
    
   
</body>
</html>

The above is the detailed content of Basic format of html tags. 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