HTML & CSS: Text Formatting

Following are some HTML tags that format text. Click on "examples" for more info.

 

HTML Formatting TagExamples from W3Schools
  
b (bold)examples
blockquoteexamples
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 PropertyExamples from Mozilla
  
font-familyexamples
font-sizeexamples
colorexamples
font-weight (bold)examples
font-style (italic)examples
fontexamples
marginexamples
text-transform (capitalize)examples
text-decoration (lines)examples
text-indentexamples

 

Special Characters


This website lists various special characters (like ¢ © π) that you can make with HTML.

 

Examples

Here are some examples of HTML formatting tags, done in Web Lab:

Here are some examples of CSS formatting properties:

 

Exercise

Put together a page that includes: