HTML & CSS: Text Formatting |
|
Following are some HTML tags that format text. Click on "examples" for more info.
| HTML Formatting Tag | Examples from W3Schools |
| b (bold) | examples |
| blockquote | examples |
| br (break) | examples |
| em (emphasis) | examples |
| i (italic) | examples |
| h1 - h6 (heading) | examples |
| p (paragraph) | examples |
| q (quote) | examples |
| sub (subscript) | examples |
| sup (superscript) | examples |
| u (underline) | examples |
Below are listed some CSS properties that format text. Click on "examples" for more info.
| CSS Formatting Property | Examples from Mozilla |
| font-family | examples |
| font-size | examples |
| color | examples |
| font-weight (bold) | examples |
| font-style (italic) | examples |
| font | examples |
| margin | examples |
| text-transform (capitalize) | examples |
| text-decoration (lines) | examples |
| text-indent | examples |
Special Characters
Examples
Here are some examples of HTML formatting tags, done in Web Lab:
Here are some examples of CSS formatting properties:
 
Put together a page that includes: