Text Modification
This is a minimal web page so that you can examine its underlying HTML without distractions. Try Ctrl-U!
WARNING! I'm far from a web wizard. There may well be better methods than those I describe.
- Underlined text
this is underlined is rendered
this is underlined
- Bold text
this is bold is rendered
this is bold
- Italicized text
this is italized is rendered
this is italized
- Headers
Header 1
Header 2
Header 3
is rendered
Header 1
Header 2
Header 3
- Font size
Size 1 Size 2 Size 3 is rendered
Size 1 Size 2 Size 3
- Font color
Black Red Blue is rendered
Black Red Blue
- New lines
What you see is not what you get.
'This is
not two lines' is rendered
'This is
not two lines'
To get a new line, use the break tag:
'This IS
two lines', producing:
'This IS
two lines'
To get a new paragraph (with a preceding blank line), use
- Centered lines
centered line is rendered
centered line
A more modern way is
centered line
- Indented text
More what you see is not what you get. Browsers collapse spaces, so
This is not indented text is rendered
This is not indented text
To get indentation, try this:
Line 1 is not indented
Line 2 is indented
So is line 3
But line 4 is not. is rendered
Line 1 is not indented
Line 2 is indented
So is line 3
But line 4 is not.
- Subscripts and superscripts
X1 and X2 are rendered
X1 and X2
- Subscripts and superscripts
X1 and X2 are rendered
X1 and X2
- non-breaking space
Sometimes you want to fill a cell with an invisible space or ensure that the browser does not separate two words. Non-breaking spaces will do this. They're also non-collapsable
a b c d e is rendered
a b c d e