Home > Web Front-end > HTML Tutorial > HTML basic summary recommendations (text format)

HTML basic summary recommendations (text format)

黄舟
Release: 2016-12-21 16:20:45
Original
1330 people have browsed it

HTML text formatting tag

Tag Description
Define bold text
Rendered as highlighted text
< ;i> define italic text
define small text
define important text
Define subscript
define superscript word
define insertion word
define deletion word

Usual tags Replace the bold tag with with the tag. However, the meanings of these tags are different: and define bold or italic text. or means that the text you are presenting is important, so highlight it. All major browsers today can render fonts in a variety of effects. However, future browsers may support better rendering. Text code example:

<html>  
  
<body>  
  
<b>This text is bold</b>  
  
<br />  
  
<strong>This text is strong</strong>  
  
<br />  
  
<big>This text is big</big>  
  
<br />  
  
<em>This text is emphasized</em>  
  
<br />  
  
<i>This text is italic</i>  
  
<br />  
  
<small>This text is small</small>  
  
<br />  
  
This text contains   
<sub>subscript</sub>  
  
<br />  
  
This text contains   
<sup>superscript</sup>  
  
</body>  
</html>
Copy after login

Default text

This example demonstrates how to use the pre tag to control empty lines and spaces</p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false"><!DOCTYPE html>  
<html>  
<body>  
  
<pre class="brush:php;toolbar:false">  
Text in a pre element   
is displayed in a fixed-width   
font, and it preserves   
both spaces and   
line breaks   
Copy after login

Note: According to the HTML 5 specification, the tag should be used as the last Select and use it only when no other tag is suitable. HTML 5 specification states: Titles should be represented by

-
tags, emphasized text should be represented by tags, important text should be represented by tags, marked or high Highlighted text should be represented by a tag. Tip: You can also set bold text using the CSS "font-weight" property. css temporary HTML "computer output" tag

tag description
define computer code
define keyboard code
< samp> define computer code sample
define variables
define preformatted text

HTML citations, quotations, and tag definitions

tag description
definition abbreviation
Define address
< bdo> define text direction
define long quotes
define short quotes
Definition reference, citation
Define a definition project

The above is the content of HTML basic summary recommendation (text format). For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


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