Home  >  Article  >  Web Front-end  >  Why is html called hypertext markup language?

Why is html called hypertext markup language?

下次还敢
下次还敢Original
2024-04-21 13:18:21341browse

HTML is called Hypertext Markup Language because it has both hypertextuality (can create links between documents) and markup language (the use of markup code to define the document structure). HTML documents are composed of DTD, HTML tags, attributes and content. Tags can be nested and are widely used in web page creation.

Why is html called hypertext markup language?

Why is HTML called Hypertext Markup Language?

The full name of HTML is Hypertext Markup Language, Chinese translated as hypertext markup language. It is called Hypertext Markup Language because it has the following characteristics:

  • Hypertext (Hypertext): HTML allows the creation of links in documents that users can Clicking on a link jumps to other related documents or websites, thus forming a network structure, that is, hypertext.
  • Markup Language (Markup Language): HTML is a markup language that uses specific markup codes to define the structure and content of the document. These tags don't appear in the final displayed document, but they tell the browser how to format and render the content.

Composition of HTML

HTML document consists of the following parts:

  • DTD (Document Type Declaration ): Specifies the document type, such as HTML 4.01, HTML 5, etc.
  • HTML tag: Code surrounded by angle brackets, such as <html>, <head>, < body>etc. These tags define different sections and content elements of the document.
  • Attributes: Additional information added to the tag, such as src in <img src="image.jpg"> Attributes.
  • Content: Text or other content between tags.

HTML tags can be nested to form complex structured documents. For example:

<code class="html"><html>
<head>
  <title>我的第一个网页</title>
</head>
<body>
  <h1>欢迎访问我的网站</h1>
  <p>这个是一个段落。</p>
</body>
</html></code>

Application of HTML

HTML is widely used to create web pages. It provides the basic structure and format for web pages and allows the addition of text, images, videos, Links, etc. With HTML, we can create interactive, information-rich websites and web pages.

The above is the detailed content of Why is html called hypertext markup language?. 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