search
HomeWeb Front-endHTML TutorialHTML5 text element parsing
HTML5 text element parsingFeb 14, 2017 pm 03:51 PM

1. represents keywords and product names

HTML5

Explanation: The actual function of the element is to make it bold. From a semantic point of view, it means marking a piece of text, but not particularly emphasizing its importance.


##2. Indicates important text


##HTML5

Explanation : The actual function of the element is the same as , which is to make it bold. From a semantic point of view, it means emphasizing an important text.

##3.
Force newlineSafe newline


Thisabc

dksdfsdf< ;wbr>sdfsf s a apple

Explanation: Typing
at any text position will be wrapped. When the English word is too long, using will be appropriate according to the appropriate width of the browser. Crop switch lines.


##4. Indicates foreign vocabulary or scientific and technological terms


HTML5


Explanation: The actual function of the element is to tilt. From a semantic point of view, it means to distinguish the surrounding content, which is not particularly emphasized or important.

#5, < ;em>To emphasize

HTML5

Explanation: The actual function of the element is the same as , which is to tilt: From a semantic point of view, Expresses emphasis on a piece of text.

##6. indicates inaccuracy or correction

HTML5


Explanation: < The actual function of the ;s> element is to strike through. From a semantic point of view, it means inaccurate deletion

##7. means deletion of text

HTML5 Element

Explanation: The actual function of the element is the same as , which is a strikethrough. From a semantic point of view, it means to delete text

8. means underlining the text


HTML5

Explanation:

##9. Add a piece of text

HTML5

Explanation: The element has the same function as . Adding an underline means adding a paragraph of text from a semantic point of view, which plays a role of emphasis.


10, HTML5

Explanation: The actual function of the element is to make the text one size smaller. From a semantic point of view, it is used Disclaimer, and clarification statement


##11, Add subscriptAdd superscript

5 sub>

5

Explanation: The actual functions of the and elements are subscripts and superscripts in mathematics

12. Indicates input and output

HTML5

HTML5> ;

HTML5

HTML5

Explanation: represents a computer code fragment, represents a variable in a coding language. <samp> represents the output of a program or computer: <kdb> represents the user's input. Since this is in the English category, lang='en' must be used to reflect the effect<p></p> <p></p> <p>13. <abbr> represents an abbreviation </abbr></p> <p></p> <abbr>HTML5</abbr><p></p>Explanation: The <abbr> element has no practical effect, from a semantic point of view It is the abbreviation of a piece of text <p><br></p> <p><br>14. <dfn> indicates the definition term</dfn></p> <p></p> <dfn>HTML5</dfn> <p> </p>Explanation: The <dfn> element is a general slant. From a semantic point of view, it means a piece of text that explains a word or phrase.<p><br></p> <p><br>##15. <q>Quoting content from elsewhere</q></p> <p> <q>HTML5</q> </p> <p>Explanation: The actual function of the <q> element is to add a pair of double quotes, from the semantics Seen above, it means quoting content from other parties. <br></q></p> <p><br></p> <p></p>##16. <cite>Citing titles of other works<p></p> <cite>HTML5</cite> <p></p>Explanation: The actual function of the <cite> element is to make it bold. From a semantic point of view, it indicates the title of citing other works <p><br></p> <p>##17, <ruby elements></ruby></p> <ruby><p></p> <p> 饕<rp>(</rp><rt>tao</rt>)</p> <p> 餮<rp>(</rp>&gt ;<rt>tie</rt>)</p> <p></p></ruby><p>Explanation: <ruby> is used for non-Western languages provide support. <rp><rt>It is used to help readers master the correct pronunciation of ideographic language characters, for example: </rt></rp></ruby></p> <p> Hanyu Pinyin is above the text, but Muqiao FireFox does not support <br></p> <p><br></p> <p>18. <bdo>Set text direction</bdo></p> <p><bdo dir="rt1">HTML5</bdo> </p> <p>Explanation: <bdo> You must use the attribute dir to set it. There are two values ​​in total, rtl from left to right, and ltr (from left to left). The general setting is ltr, and there is also a <bdi> element that also handles direction. Since it is a special effect in a special language and is not supported by mainstream browsers, ignore</bdi></bdo></p> <p><br></p> <p>19 and <mark>highlight text</mark></p> <p><mark></mark></p> <p>Explanation: The actual function of <mark> is to add a yellow background and black words. From a semantic point of view, it is context-related and prominent text. Used for notation </mark></p> <p><br></p> <p>20, <time> represents date and time<br></time></p> <p><time>207-2-12</time> <br></p> <p>Explanation: The <time> element has no practical effect and semantically represents date and time. </time></p> <p><br></p> <p>21, <span> represents General text<br></span></p> <p><span>HTML5</span></p> <p>Explanation: has no practical effect, semantically represents a piece of text, and is often used to set CSS and other operations</p> <p><br></p> <p><br></p> <p>Example: </p><pre class='brush:php;toolbar:false;'>&lt;!DOCTYPE html&gt; &lt;html lang=&amp;#39;en&amp;#39;&gt; &lt;head&gt; &lt;meta charset=&amp;#39;utf-8&amp;#39;&gt; &lt;title&gt;基本&lt;/title&gt; &lt;/head&gt; &lt;body&gt; b元素,这是&lt;b&gt;HTML5&lt;/b&gt;教程&lt;br&gt; strong元素,这是&lt;strong&gt;HTML5&lt;/strong&gt;教程&lt;br&gt; wbr元素,这里填充一下:Thisisaasdfsdddddddddddddddddd&lt;wbr&gt;dddddddf&lt;wbr&gt;asdfasd is apple&lt;br&gt; i元素,这是&lt;i&gt;HTML5&lt;/i&gt;教程&lt;br&gt; em元素,这是&lt;em&gt;HTML5&lt;/em&gt;教程&lt;br&gt; s元素,这是&lt;s&gt;HTML5&lt;/s&gt;教程&lt;br&gt; del元素,这是&lt;del&gt;HTML5&lt;/del&gt;教程&lt;br&gt; u元素,这是&lt;u&gt;HTML5&lt;/u&gt;教程&lt;br&gt; ins元素,这是&lt;ins&gt;HTML5&lt;/ins&gt;教程&lt;br&gt; small元素,这是&lt;small&gt;HTML5&lt;/small&gt;教程&lt;br&gt; sub元素,这是&lt;sub&gt;5&lt;/sub&gt;教程&lt;br&gt; sup元素,这是&lt;sup&gt;5&lt;/sup&gt;教程&lt;br&gt; code元素,这是&lt;code&gt;HTML5&lt;/code&gt;教程&lt;br&gt; var元素,这是&lt;var&gt;HTML5&lt;/var&gt;教程&lt;br&gt; samp元素,这是&lt;samp&gt;HTML5&lt;/samp&gt;教程&lt;br&gt; kdb元素,这是&lt;kdb&gt;HTML5&lt;/kdb&gt;教程&lt;br&gt; abbr元素,这是&lt;abbr&gt;HTML5&lt;/abbr&gt;教程&lt;br&gt; dfn元素,这是&lt;dfn&gt;HTML5&lt;/dfn&gt;教程&lt;br&gt; q元素,这是&lt;q&gt;HTML5&lt;/q&gt;教程&lt;br&gt; cite元素,这是&lt;cite&gt;HTML5&lt;/cite&gt;教程&lt;br&gt; ruby元素, &lt;ruby style=&quot;font-size: 50px;&quot;&gt; 饕&lt;rp&gt;(&lt;/rp&gt;&lt;rt&gt;tao&lt;/rt&gt;&lt;rp&gt;)&lt;/rp&gt;餮&lt;rp&gt;(&lt;/rp&gt;&lt;rt&gt;tie&lt;/rt&gt;&lt;rp&gt;)&lt;/rp&gt;&lt;/ruby&gt;&lt;br&gt; bdo元素,这是&lt;bdo dir=&amp;#39;rtl&amp;#39;&gt;HTML5&lt;/bdo&gt;教程&lt;br&gt; mark元素,这是&lt;mark&gt;HTML5&lt;/mark&gt;教程&lt;br&gt; time元素,这是&lt;time&gt;2017-2-12&lt;/time&gt;教程&lt;br&gt; span元素,这是&lt;span&gt;HTML5&lt;/span&gt;教程&lt;br&gt; &lt;/body&gt; &lt;/html&gt;</pre><p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn//upload/image/923/270/519/1487058506806656.png?x-oss-process=image/resize,p_40" class="lazy" title="HTML5 text element parsing" alt="HTML5 text element parsing" style="max-width:90%" style="max-width:90%"></p> <p>For more articles related to HTML5 text element analysis, please pay attention to PHP Chinese net! </p></cite></cite></dfn></abbr></kdb></samp>
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
Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update?Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update?Mar 04, 2025 pm 12:32 PM

The official account web page update cache, this thing is simple and simple, and it is complicated enough to drink a pot of it. You worked hard to update the official account article, but the user still opened the old version. Who can bear the taste? In this article, let’s take a look at the twists and turns behind this and how to solve this problem gracefully. After reading it, you can easily deal with various caching problems, allowing your users to always experience the freshest content. Let’s talk about the basics first. To put it bluntly, in order to improve access speed, the browser or server stores some static resources (such as pictures, CSS, JS) or page content. Next time you access it, you can directly retrieve it from the cache without having to download it again, and it is naturally fast. But this thing is also a double-edged sword. The new version is online,

How do I use HTML5 form validation attributes to validate user input?How do I use HTML5 form validation attributes to validate user input?Mar 17, 2025 pm 12:27 PM

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

What are the best practices for cross-browser compatibility in HTML5?What are the best practices for cross-browser compatibility in HTML5?Mar 17, 2025 pm 12:20 PM

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

How to efficiently add stroke effects to PNG images on web pages?How to efficiently add stroke effects to PNG images on web pages?Mar 04, 2025 pm 02:39 PM

This article demonstrates efficient PNG border addition to webpages using CSS. It argues that CSS offers superior performance compared to JavaScript or libraries, detailing how to adjust border width, style, and color for subtle or prominent effect

What is the purpose of the <datalist> element?What is the purpose of the <datalist> element?Mar 21, 2025 pm 12:33 PM

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

What is the purpose of the <meter> element?What is the purpose of the <meter> element?Mar 21, 2025 pm 12:35 PM

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

How do I use the HTML5 <time> element to represent dates and times semantically?How do I use the HTML5 <time> element to represent dates and times semantically?Mar 12, 2025 pm 04:05 PM

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

What is the purpose of the <progress> element?What is the purpose of the <progress> element?Mar 21, 2025 pm 12:34 PM

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment