search
HomeWeb Front-endHTML TutorialHTML5 text element parsing

HTML5 text element parsing

Feb 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
HTML as a Markup Language: Its Function and PurposeHTML as a Markup Language: Its Function and PurposeApr 22, 2025 am 12:02 AM

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

The Future of HTML, CSS, and JavaScript: Web Development TrendsThe Future of HTML, CSS, and JavaScript: Web Development TrendsApr 19, 2025 am 12:02 AM

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

HTML: The Structure, CSS: The Style, JavaScript: The BehaviorHTML: The Structure, CSS: The Style, JavaScript: The BehaviorApr 18, 2025 am 12:09 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The Future of HTML: Evolution and Trends in Web DesignThe Future of HTML: Evolution and Trends in Web DesignApr 17, 2025 am 12:12 AM

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

HTML vs. CSS vs. JavaScript: A Comparative OverviewHTML vs. CSS vs. JavaScript: A Comparative OverviewApr 16, 2025 am 12:04 AM

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTML: Is It a Programming Language or Something Else?HTML: Is It a Programming Language or Something Else?Apr 15, 2025 am 12:13 AM

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML: Building the Structure of Web PagesHTML: Building the Structure of Web PagesApr 14, 2025 am 12:14 AM

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

From Text to Websites: The Power of HTMLFrom Text to Websites: The Power of HTMLApr 13, 2025 am 12:07 AM

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6

Dreamweaver CS6

Visual web development 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

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment