The content of this article is to introduce what are the phrase tags in HTML? What? Let everyone understand the role of important phrase tags in HTML. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
What are phrase tags in HTML?
In HTML, phrase tags are specialized tags used to indicate that a block of text has structural meaning and perform specific operations similar to text formatting tags. Such as highlighting text in web pages, adding quotes, and more.
What are the phrase tags in HTML? What is the use?
Now we will introduce to you some important phrase tags and their functions in HTML:
tag
... em> Anything that appears within an element is displayed as emphasized text, typically in italics.
Example:
<p>PHP中文网的网站为:<em>www.php.cn</ em></p>
Rendering:
#Tag
... Any content within the element will be displayed as important text, usually in bold.<p>PHP中文网的网站为:<strong>www.php.cn</ strong></p>
Mark text label
... mark> Any content appears marked with yellow ink<p>PHP中文网的网站为:<mark>www.php.cn</mark></p>
We can do this by placing the text at the beginning abbreviate text within the tag and the closing tag. If the tag is present, the title attribute must contain this full description and no other content.
<p><abbr title = "超文本标记语言">html</abbr>语言</p>
The element allows you to indicate and Currently, major browsers do not change the appearance of the content of the element. ... element represents bidirectional rewriting , used to override the current text direction. If you want to quote a passage from another source, you should put it in <p>本篇文章给大家介绍<acronym>HTML</acronym>里的短语标签.</p>
<p>此文本是从左到右。</p>
<p><bdo dir = "rtl">此文本将从右到左。</bdo></p>
tag
Marked between shallow.
Text within an element is usually indented from the left and right edges of the surrounding text, sometimes using an italic font.Short citation tag<p>p标签:以下是测试文字</p> <blockquote>这里是blockquote标签的测试文字测试文字</blockquote>Copy after loginUse
......<p>测试文字, <q>测试文字</q>.</p>Copy after login##
Tag
Users can use < code> ... The code> tag places the coding portion of the web page. Typically, the content of the
element is displayed in a fixed-width font, like code in most programming books.
<p>常规文字。 <code>代码:padding:10px;</code>常规文字。</p>Copy after loginTag
Sometimes users need to use the keyboard to enter some text, the text should be saved in ... tag and highlighted by the browser.
<p>常规文字。 <kbd>这是在KBD元素内部。</kbd>常规文字。</p>Copy after loginProgramming variables
Programming variables with
or <code> elements Used together to represent the content of an element as a variable. <br/><pre class="brush:html;toolbar:false"><p><code>document.write("<var>user-name</var>")</code></p>Copy after login标签
标签用于包含任何地址。<address>388A, Road No 22, Jubilee Hills - Hyderabad</address>Copy after login总结:以上就是本篇文章的全部内容,希望能对大家的学习有所帮助。
The above is the detailed content of What is the phrase tag in HTML? What?. For more information, please follow other related articles on the PHP Chinese website!