Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the tags for the basic document structure of html5

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "what are the tags of the basic html5 document structure?" in the actual case operation process, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!

Html5 basic document structure of the three tags: 1, "" tag, used to inform the browser that it is an HTML document; 2, "" tag, contains the document's metadata, provides the browser with information about the document content and tags; 3, "" tag, contains the content that visitors can see.

The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.

HTML (Hypertext Markup Language, Hypertext markup language) was born in the early 1990s to specify the elements that build web pages. Most of these elements are used to describe web content, such as headings, paragraphs, lists, links to other web pages, and so on. HTML5 is the latest version of HTML, most of its content is compatible with old and new browsers, and a large number of new features have been added. HTML5 also introduces native audio and video playback capabilities.

Introduction to HTML5

HTML5 is actually a general term for a series of related technologies used to produce modern rich Web content, the three of which are the HTML5 core specification, CSS (Cascading Style Sheets, cascading style sheets) and JavaScript.

1) the HTML5 core specification defines the elements used to mark up the content and defines its meaning.

2) CSS is used to control the appearance of tagged content in front of users.

3) JavaScript is used to manipulate the contents of HTML documents and respond to user actions.

At the same time, HTML5 introduces native multimedia support, and introduces programmable content (canvas element, must use JavaScript) and semantic Web.

To learn more about the history of HTML5, you can refer to Wikipedia

Basic structure of HTML document

"an HTML document is a description of a document, which has a fixed structure and is divided into many parts, each of which contains one or more elements. Some elements are used to describe the basic information of the document, and some describe the structure of the document. Here is the structure of a basic HTML document:,

Your page title.

The HTML document describes a blank page, and these basic components determine the outline of the HTML document and the initial environment of the browser.

DOCTYPE element

The DOCTYPE element can be omitted, and most browsers can still display the contents of the document correctly, but it's not a good habit to rely on the browser's performance. This element tells the browser two things:

It deals with HTML documents

The version to which the HTML used to mark the content of the document belongs, and the above writing indicates that HTML5 is used.

Note: the doctype declaration does not belong to the HTML tag.

Html element

The html element is the root element, which tells the browser that it is itself an HTML document. The lang attribute specifies the default language of the page content, for example: en for English, es for Spanish, and so on.

Head element

The head element contains the metadata of the document, provides the browser with information about the content and markup of the document, and can also contain scripts and references to external resources, such as CSS stylesheets.

Body element

The body section of the document contains content that visitors can see.

With this basic structure, we can gradually add other elements of HTML, constantly enrich the document, and finally get the page we want.

This is the end of the content of "what are the tags for the basic document structure of html5". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report