Webpages use special markers, called "tags", to do effects. Tags are written using less-than < and greater-than > symbols, and most tags have a <start> and a </stop>.
Tags can make text bold or italic, and tags
can add lines and underlines.
Because less-than and greather-than symbols mean tags, you have to use special patterns, called entities, to include these symbols in your web page.
Here are a list of some tags and entities you might want to use when writing web pages.
| tag/entity | what you write | how it looks |
|---|---|---|
| paragraph | <p>abc def</p> <p>xyz uvw</p> |
abc def xyz uvw |
| italic | abc <i>xyz</i> uvw | abc xyz uvw |
| bold | abc <b>xyz</b> uvw | abc xyz uvw |
| underline | abc <u>xyz</u> uvw | abc xyz uvw |
| strike | abc <s>xyz</s> uvw | abc |
| superscript | abc <sup>xyz</sup> uvw | abc xyz uvw |
| subscript | abc <sub>xyz</sub> uvw | abc xyz uvw |
| line break | abc <br> xyz | abc xyz |
| horizontal rule (line) | abc <hr> xyz | abc xyz |
| less-than | < | < |
| greater-than | > | > |
| ampersand/and | & | & |
You can also combine them, you just have to remember to close them in the reverse order:
| what you write | how it looks |
|---|---|
| something <i>italic and <u>underlined</u> a</i> bit | something italic and underlined a bit |
| this part <b><i><u>has it all</u></i></b> (just about) | this part has it all (just about) |