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

奋力向前
Release: 2021-08-10 17:52:45
Original
3561 people have browsed it

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 tagsBasically the structure is the same as this person. First there is a head called, ...refers to a benefit of a prompt in the editor, you can write the name of this file.

Code example

   练习册 
how are you?
Copy after login

1、Declaration

HTML document

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

Starts from thetag and ends with thetag. 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. Theelement describes the title of the document.

Can define the title of the document.

5.Elements contain visible page content

Content displayed in the web page, such as: text, hyperlinks, images, tables and lists, etc.

Element code example

练习册
Copy after login
Code rendering


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

Html video tutorial

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!

Related labels:
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
Latest Articles by Author
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!