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's goal is to: <q>Build a future where people live in harmony with nature.</q> We hope they succeed.</p>
<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>
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!