Home > Web Front-end > HTML Tutorial > Basic format of html tags

Basic format of html tags

无忌哥哥
Release: 2018-06-29 09:45:40
Original
3437 people have browsed it

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

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

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

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

...

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

<!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>
Copy after login

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!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template