Home  >  Article  >  Web Front-end  >  Basic elements of html, allowing you to learn HTML from scratch

Basic elements of html, allowing you to learn HTML from scratch

寻∝梦
寻∝梦Original
2018-08-13 11:23:443056browse

First of all, what is HTML

## The full name of HTML is: Hypertext Marked Language, which is the most widely used language on the Internet. It is the main language that constitutes web page documents and is mainly used to control the structure of web pages. It is descriptive text consisting of its tags. Files described in HTML language need to be displayed through a WEB browser.

Secondly, the structure of HTML:

<html><!--开始-->
    <head>
        <!--头部信息,如<title>定义标题-->
    </head>
    <body>
        <!--主体信息,包含网页显示的内容-->
    </body>
</html><!--结束-->

Basically any HTML is composed of these three tags;

1. Document Several infrastructure tags:

Basic elements of html, allowing you to learn HTML from scratch

Test results:

Basic elements of html, allowing you to learn HTML from scratch## 2. Text format tag:

Basic elements of html, allowing you to learn HTML from scratch3. Text effect tags:

Basic elements of html, allowing you to learn HTML from scratchThere are also some other basic ones, such as:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PHP中文网测试</title>
</head>
<body>
	<b>网页的粗体</b>
	<em>网页的强调</em>
	<i>网页的斜体</i>
	<small>网页的小号字体</small>
	<strong>网页的强调文本,比em强调的更深一点</strong>
	<sub>网页的下标文本</sub>
	<sup>网页的上标文本</sup>
	<ins>网页中已经被插入文档中的文本</ins>
	<del>定义文档中已被删除的文本</del>
	<span>用来组合文档中的行内元素</span>
</body>
</html>

Test results, As shown in the picture:

Basic elements of html, allowing you to learn HTML from scratch4. Hyperlink label:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PHP中文网测试</title>
</head>
<body>
	<a href="http://www.php.cn">PHP中文网</a>
</body>
</html>

Test result:

Basic elements of html, allowing you to learn HTML from scratch A simple label element, I hope everyone can be familiar with it.

[Related recommendations]

Introduction and details of html5 table


Introduction and details of html5 list


The above is the detailed content of Basic elements of html, allowing you to learn HTML from scratch. 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