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 is the function of HTML?

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

Share

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

This article mainly introduces the role of HTML, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

HTML introduction

HTML is a language used to describe web pages.

HTML refers to the hypertext markup language: HyperText Markup Language

HTML is not a programming language, but a markup language

Markup language is a set of markup tags (markup tag)

HTML uses tag tags to describe web pages

The HTML document contains HTML tags and text content

HTML documents are also called web pages

Suffix name of the HTML document

.html

.htm

There is no difference between the above two suffix names, and both can be used.

HTML instance

Self-study course (lengyuezuixue.com) my first title

My first paragraph.

Case analysis

Declared as an HTML5 document

Element is the root element of the HTML page

Element contains the meta data of the document

Element describes the title of the document

Element contains visible page content

Element defines a supertitle

Element defines a paragraph

HTML tag

HTML tag tags are often referred to as HTML tags (HTML tag)

HTML tags are keywords surrounded by angle brackets, such as

HTML tags usually appear in pairs, such as and

The first tag in the tag pair is the opening tag, and the second tag is the closing tag.

Start and end tags are also known as open and closed tags

Content

HTML element

"HTML tag" and "HTML element" usually describe the same meaning.

Strictly speaking, however, a HTML element contains the opening and closing tags, as shown in the following example:

HTML element:

This is a paragraph.

HTML web page structure

Only the area (the white part) is displayed in the browser.

Statement

The declaration helps to display the web page correctly in the browser.

There are many different files on the web, and if you can correctly declare the version of HTML, the browser will be able to display the content of the page correctly.

Doctype declarations are case-insensitive and can be done in the following ways:

Usually declare

HTML 5HTML 4.01 Strict

This DTD contains all HTML elements and attributes, but does not include imagery or outdated elements (such as font). Framesets are not allowed.

HTML 4.01 Transitional

This DTD contains all HTML elements and attributes, including representational or outdated elements (such as font). Framesets are not allowed.

HTML 4.01 Frameset

This DTD is the same as the HTML 4.01 Transitional, but the frameset content is allowed.

XHTML 1.0 Strict

This DTD contains all HTML elements and attributes, but does not include imagery or outdated elements (such as font). Framesets are not allowed. The structure must be written in standard format XML.

XHTML 1.0 Transitional

This DTD contains all HTML elements and attributes, including representational or outdated elements (such as font). Framesets are not allowed. The structure must be written in standard format XML.

XHTML 1.0 Frameset

This DTD is the same as XHTML 1.0 Transitional, but allows the use of frameset content.

XHTML 1.1

This DTD is the same as XHTML 1.0 Strict, but allows you to add modules (such as ruby support for East Asian languages).

Be careful

You need to use declaration coding for Chinese web pages, otherwise garbled code will occur. Some browsers will set GBK as the default encoding, then you need to set it to

Thank you for reading this article carefully. I hope the article "what is the role of HTML" shared by the editor will be helpful to everyone? at the same time, I also hope that you will support and pay attention to the industry information channel, and more related knowledge is waiting for you to learn!

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