Home > Web Front-end > Front-end Q&A > what is html tag

what is html tag

藏色散人
Release: 2023-01-05 16:12:12
Original
13526 people have browsed it

html markup contains several key parts such as tags and their attributes, character-based data types, character references, and entity references; html is a standard markup language used to create web pages; web browsers can read HTML files and render them into visual web pages.

what is html tag

The operating environment of this article: Windows 7 system, HTML5 version, DELL G3 computer.

Hypertext Markup Language (English: HyperText Markup Language, referred to as: HTML) is a standard markup language used to create web pages. HTML is a basic technology that is often used by many websites together with CSS and JavaScript to design the user interface of web pages, web applications, and mobile applications. Web browsers can read HTML files and render them into visual web pages. HTML describes the structural semantics of a website as clues are presented, making it a markup language rather than a programming language.

HTML markupContains several key parts such as tags (and their attributes), character-based data types, character references, and entity references. HTML tags are the most common and usually appear in pairs, such as

and

. Among these tags that appear in pairs, the first tag is the start tag and the second tag is the end tag. Between the two tags is the content of the element. Some tags have no content and are empty elements, such as .

Another important component of HTML is the document type declaration, which triggers standards mode rendering.

The following is an example of a classic Hello World program:

<!DOCTYPE html>
<html>
  <head>
    <title>This is a title</title>
  </head>
  <body>
    <p>Hello world!</p>
  </body>
</html>
Copy after login

The text between and describes the web page, and This is a title defines the browser's page title.

The document tag type is used in HTML5. If not declared, the browser will render using "weird mode".

For more detailed and interesting HTML knowledge, please visit the HTML video tutorial column!

The above is the detailed content of what is html tag. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template