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 tagsReplace the bold tagwithwith thetag. However, the meanings of these tags are different:anddefine bold or italic text.ormeans 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:
This text is bold
This text is strong
This text is big
This text is emphasized
This text is italic
This text is small
This text contains subscript
This text contains superscript
Default text
This example demonstrates how to use the pre tag to control empty lines and spacesText in a pre element is displayed in a fixed-width font, and it preserves both spaces and line breaksCopy after loginNote: According to the HTML 5 specification, thetag 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 bytags, important text should be represented bytags, marked or high Highlighted text should be represented by atag. 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 (m.sbmmt.com)!