HTML5 text formatting

不言
Release: 2018-05-03 15:15:07
Original
2215 people have browsed it

This article mainly introduces HTML5 text formatting, which has certain reference value. Now I share it with everyone. Friends in need can refer to it

Text formatting:

: Bold text

: Italic text

: Used for emphasis, effect and Same

: used for emphasis, the effect is the same as .

: used to enlarge text

: used to reduce text

: subscript

< ;sup>: Superscript

Pre-formatted text:

: Pre-formatted text, the text can be formatted and displayed as it is. </p>
<p><span style="font-family:SimHei;color:#FF0000;">Computer output tag: </span><br></p>
<p> <code>: Computer output</p>
<p> <kbd>:Keyboard input</p>
<p> <tt>: Typewriter text</p>
<p> <samp>:Computer code sample</p>
<p> <var>: Computer variable</p>
<p><span style="font-family:SimHei;color:#FF0000;">Address:</span></p>
<p> <address>:Address tag</p>
<p><span style="font-family:SimHei;color:#FF0000;">Abbreviation tag: When you move the mouse over an abbreviated word, title can be used to display the full version of the expression. </span><br></p>##                                                                                              < Netscape 6.2 works for both abbr and acronym elements. <p></p><p></p><p><span style="font-family:SimHei;">Text direction: <span style="color:#000099;"></span></span></p><p>#​ <p><bdo dir="rtl ">The text of this paragraph is displayed from right to left. </bdo></p> <span style="font-family:SimHei;"><span style="color:#FF0000;"></span><br></span>## The text here is displayed from right to left. <p><span style="font-family:SimHei;"><br></span>Block quote: </p>
<p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false;"><p>WWF&#39;s goal is to: 
<q>Build a future where people live in harmony with nature.</q>
We hope they succeed.</p>
Copy after login
Result: WWF's goal is to: We hope they succeed.

The effect of deleting and inserting words:

<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>
Copy after login
Result: My favorite color is

blue


red

!

Related recommendations:HTML text formatting

The above is the detailed content of HTML5 text formatting. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!