Home >Web Front-end >HTML Tutorial >It is worth understanding the basic structure of html web pages while studying (summary)

It is worth understanding the basic structure of html web pages while studying (summary)

奋力向前
奋力向前Original
2021-08-10 16:33:393701browse

In the previous article "How to create a simple single-page layout with HTML (code sharing)", I introduced how to use HTML to create a simple single-page layout. The following article will take you through the basic structure of html web pages. Friends in need can refer to it. I hope it will be helpful to you.

It is worth understanding the basic structure of html web pages while studying (summary)

HTML is a language used to describe web pages

We are going to make an html page, and everything in the html Things are called tags Basically the structure is the same as this person. First there is a head called , <title>...</title> refers to a benefit of a prompt in the editor, you can write the name of this file.

Code example

<!DOCTYPE html>
<html>
<head>
<title>练习册</title>
</head>
<body>
how are you?
</body>
</html>

1、 Declaration

HTML document

2、< The ;html> element is the root element of the HTML page.

Starts from the tag and ends with the tag. The root element The function is to tell the browser.

3. The element contains the elements of the document.

The element and # The ## element is different. Its content will not be displayed in the browser. Its function is to save some metadata of the page.

4. The

element describes the title of the document. <strong></strong>Can define the title of the document. <p></p> <p>5. </p> Elements contain visible page content Content displayed in the web page, such as: text, hyperlinks, images, tables and lists, etc.

<code> Element code example</code><pre class="brush:php;toolbar:false"><title>练习册</title></pre>Code rendering<p><br></p> <p><img src="https://img.php.cn/upload/image/967/825/418/1628584181694590.jpg" title="1628584181694590.jpg" alt="It is worth understanding the basic structure of html web pages while studying (summary)">##Recommended learning: </p>Html video tutorial<p><a href="http://www.php.cn/course/list/11.html" target="_blank"></a></p>

The above is the detailed content of It is worth understanding the basic structure of html web pages while studying (summary). 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