htmlItalic bold tags are tags and tags respectively. The tag is used to define a part that is different from the rest of the text and present this part of the text. is italicized text; the tag is used to define bold text.
The operating environment of this article: Windows 7 system, HTML5 version, Dell G3 computer.
First of all, you need to understand the bold and italic codes in hypertext markup language (html). The bold mark is b and the italic mark is i. In html, marks generally appear in pairs. of.
For example XXXX. A basic web page is contained between and . Specific examples are as follows:
<html> <head> <title>此处显示页面标题</title> </head> <body > <h1>一级标题</h1> <h2><b>加粗显示二级标题</b></h2> <h3><i>斜体显示三级标题</i></h3> </body> </html>
Running effect:
Tag introduction:
Tag Definition A portion of the text that is different from the rest of the text and renders it in italics.
Tags are used to represent scientific terms, idioms in other languages, ideas, spacecraft names, etc.
Use the element when no other element with appropriate semantics can be used. Other semantic elements are as follows:
(emphasized text)
(important text)
(marked of/highlighted text)
(title of work)
(a definition item)
Define bold text.
According to the HTML 5 specification, the tag should be used as a last resort and only used when no other tag is suitable. HTML 5 specification states: Titles should be represented by -
tags, emphasized text should be represented by tags, important text should be represented by tags, marked or high Highlighted text should be represented by a tag.
【Recommended learning: html video tutorial, CSS video tutorial 】
The above is the detailed content of What is html italic bold tag?. For more information, please follow other related articles on the PHP Chinese website!