Home >Web Front-end >HTML Tutorial >HTML basic summary recommendations (text format)
HTML text formatting tag
Tag | Description |
a4b561c25d9afb9ac8dc4d70affff419 | Define bold text |
907fae80ddef53131f3292ee4f81644b | Rendered as highlighted text |
< ;i> | define italic text |
d015d241ae6d34c34210679b5204fe85 | define small text |
8e99a69fbe029cd4e2b854e244eab143 | define important text |
b96cac025db4031319c29e1eb68f19d6 | Define subscript |
2cdea26b4c3988e37d674b56660962a7 | define superscript word |
426be984ffbbb815d7d88e3543a85d91 | define insertion word |
823db3943044a0a9a620ada8d4b1d965 | define deletion word |
Usual tags8e99a69fbe029cd4e2b854e244eab143 Replace the bold tag a4b561c25d9afb9ac8dc4d70affff419 with 907fae80ddef53131f3292ee4f81644b with the 5a8028ccc7a7e27417bff9f05adf5932 tag. However, the meanings of these tags are different: a4b561c25d9afb9ac8dc4d70affff419 and 5a8028ccc7a7e27417bff9f05adf5932 define bold or italic text. 8e99a69fbe029cd4e2b854e244eab143 or 907fae80ddef53131f3292ee4f81644b 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>
Default texte03b848252eb9375d56be284e690e873This example demonstrates how to use the pre tag to control empty lines and spaces
<!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