Home > Article > Web Front-end > Detailed introduction to the basic concepts of HTML
This time I will bring you the basic concepts of HTMLdetailed introduction, what are the notes of the basic concepts of HTML, the following is a practical case, let’s take a look.
What is HTML?
HTML is a language used to describe web pages.
•HTML refers to Hyper Text Markup Language
•HTML is not a programming language, but a markup language
•Markup language is a set of markup tags
•HTML uses markup tags to describe web pages
HTML tag
HTML markup tag is usually called HTML tag (HTML tag ).
•HTML tags are keywords surrounded by angle brackets, such as 100db36a723c770d327fc0aef2ce13b1
•HTML tags usually appear in pairs, such as a4b561c25d9afb9ac8dc4d70affff419 and 0d36329ec37a2cc24d42c7229b69747a
•The first tag in the tag pair is the opening tag and the second tag is the closing tag
•The opening and closing tags are also known as opening tags and closing tags
HTML elements
## The #HTML element refers to all code from the start tag to the end tag. Note: The start tag is often called an opening tag, and the end tag is often called a closing tag. HTML element syntax•HTML elements start with a start tag•HTML elements end with an end tag
•The content of the element is the content between the start tag and the end tag
•Some HTML elements have empty content
•Empty elements are closed in the opening tag (end with the end of the opening tag)
•Most HTML elements can have the
attribute
<h1> 定义标题的开始。 <h1 align="center"> 拥有关于对齐方式的附加信息。TIY: Centered title Attribute example 2:
<body> 定义 HTML 文档的主体。 <body bgcolor="yellow"> 拥有关于背景颜色的附加信息。TIY: Background colorAttribute Example 3:
<table> 定义 HTML 表格。(您将在稍后的章节学习到更多有关 HTML 表格的内容) <table border="1"> 拥有关于表格边框的附加信息。HTML document = web page
•HTML 文档描述网页 •HTML 文档包含 HTML 标签和纯文本 •HTML 文档也被称为网页The role of the Web browser is to read HTML documents and display them in the form of web pages. Browsers do not display HTML tags, but use tags to interpret the content of the page.
<html><body><h1>My First Heading</h1><p>My first paragraph.</p></body> </html>Example explanation
•<html> 与 </html> 之间的文本描述网页 •<body> 与 </body> 之间的文本是可见的页面内容 •<h1> 与 </h1> 之间的文本被显示为标题 •<p> 与 </p> 之间的文本被显示为段落•When you save an HTML file, you can use either the .htm or the .html file suffix. We use .htm in our examples. This is just a long-standing habit, because many software in the past only allowed three-letter file suffixes. But for new software, there is no problem using .html. I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website! Related reading:
Detailed examples of HTML text formatting
Special characters of html-css3 content: "Special How to use the symbol "
h5How to implement input box prompt + normal text box prompt
The above is the detailed content of Detailed introduction to the basic concepts of HTML. For more information, please follow other related articles on the PHP Chinese website!