HTML Syntax |
|
created by Adam Watts July 2005 |
|
|
|
|
|
|
|
Questions / Comments: |
|
leveling@fnal.gov |
|
|
|
|
|
|
|
|
|
|
Mozilla Firefox |
|
|
|
|
|
|
|
Netscape |
|
|
|
|
|
|
|
Internet Explorer |
|
|
|
|
|
|
|
Safari |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Support |
Description |
Syntax |
End Tag |
Example |
Example Syntax |
Comments |
|
|
|
|
|
|
|
|
|
Bold |
<b> |
</b> |
Test text |
<b>Test text</b> |
Use lower-case tags for IE. |
|
|
|
|
|
|
|
|
|
Italic |
<I> |
</I> |
Test text |
<I>Test text</I> |
|
|
|
|
|
|
|
|
|
|
Underline |
<U> |
</U> |
Test text |
<U>Test text</U> |
|
|
|
|
|
|
|
|
|
|
Font Color |
<FONT COLOR="(color)"> |
</FONT> |
Test text |
<FONT COLOR="blue">Test text</FONT> |
Can be combined under
<FONT> with similar tags |
|
|
|
|
|
|
|
|
|
Font Face |
<FONT FACE="(font name)"> |
</FONT> |
Test text |
<FONT FACE="chiller">Test text</FONT> |
Can be combined under
<FONT> with similar tags |
|
|
|
|
|
|
|
|
|
Big Text |
<BIG> |
</BIG> |
Big Text Tag |
<BIG>Big<BIG>Text</BIG>Tag</BIG> |
Is cumulative, as seen in
example |
|
|
|
|
|
|
|
|
|
Small Text |
<SMALL> |
</SMALL> |
Small Text Tag |
<SMALL>Small<SMALL>Text</SMALL>Tag</SMALL> |
Is cumulative, as seen in
example |
|
|
|
|
|
|
|
|
|
Relative Font Sizing |
<FONT SIZE=+#> |
</FONT> |
Test text |
<FONT SIZE=+2>Test Text</FONT> |
Changes relative to base font |
|
|
|
|
|
|
|
|
|
Blinking Text |
<BLINK> |
</BLINK> |
|
<BLINK>Blinking Text</BLINK> |
|
|
|
|
|
|
|
|
|
Subscript |
<SUB> |
</SUB> |
H2O |
H<SUB>2</SUB>O |
|
|
|
|
|
|
|
|
|
|
Superscript |
<SUP> |
</SUP> |
3 x 108 |
3 x 10<SUP>8</SUP> |
|
|
|
|
|
|
|
|
|
|
Deleted Text |
<DEL> |
</DEL> |
Test text |
<DEL>Test text</DEL> |
One of several
"strike-out" tags |
|
|
|
|
|
|
|
|
|
Strikethrough |
<STRIKE> |
</STRIKE> |
Test text |
<STRIKE>Test text</STRIKE> |
2.0 strikeout standard |
|
|
|
|
|
|
|
|
|
|
Strikethrough |
<S> |
</S> |
Test text |
<S>Test text</S> |
3.0 strikeout standard |
|
|
|
|
|
|
|
|
|
|
HTML Ignore |
<XMP> |
</XMP> |
<U>Test text</U> |
<XMP><U>Test text</U></XMP> |
HTML code is printed instead of
interpreted by browser |
|
|
|
|
|
|
|
|
Comment |
<?--xxx--> |
none |
|
<?--Comment--> |
Comments are only seen in source
code, not printed by browser |
|
|
|
|
|
|
|
|
|
Centered Text |
<CENTER> |
</CENTER> |
Text |
<CENTER>Text</CENTER> |
|
|
|
|
|
|
|
|
|
|
|
Scrolling Marquee |
<MARQUEE LOOP="infinite"> |
</MARQUEE> |
|
<marquee
loop="infinite">WARNING!!!</marquee> |
Arguments in example:
BGCOLOR="(color)" and WIDTH="#" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Function |
ƒ |
none |
ƒ(5) = 25 |
ƒ(5) = 25 |
|
|
|
|
|
|
|
|
|
|
Greek Capital Letter |
&(Letter); |
none |
Δ |
Δ |
|
|
|
|
|
|
|
|
|
|
Greek Lowercase Letter |
&(letter); |
none |
δ |
δ |
|
|
|
|
|
|
|
|
|
|
Pi |
π |
none |
π |
π |
|
|
|
|
|
|
|
|
|
|
Micro (lowercase mu) |
µ |
none |
µ |
µ |
|
|
|
|
|
|
|
|
|
|
Cumulative Sum (sigma) |
∑ |
none |
∑ |
∑ |
|
|
|
|
|
|
|
|
|
|
Bullet |
• |
none |
• List |
• List |
|
|
|
|
|
|
|
|
|
|
Alef Symbol |
ℵ |
none |
ℵ |
ℵ |
|
|
|
|
|
|
|
|
|
|
Arrows |
&xarr; |
none |
↑←↓→↵↔ |
↑←↓&rarr↵↔ |
|
|
|
|
|
|
|
|
|
|
Double Arrows |
&xArr; |
none |
⇑⇐⇓⇒⇔ |
⇑⇐⇓⇒⇔ |
⇒ is also the
"implies" symbol |
|
|
|
|
|
|
|
|
"for all" Symbol |
∀ |
none |
∀ |
∀ |
|
|
|
|
|
|
|
|
|
|
Partial Differential |
∂ |
none |
∂ |
∂ |
|
|
|
|
|
|
|
|
|
|
"there exists" symbol |
∃ |
none |
∃ |
∃ |
|
|
|
|
|
|
|
|
|
|
Empty/Null Set |
∅ |
none |
∅ |
∅ |
|
|
|
|
|
|
|
|
|
|
Nabla |
∇ |
none |
∇ |
∇ |
|
|
|
|
|
|
|
|
|
|
"element of" symbol |
∈ |
none |
∈ |
∈ |
|
|
|
|
|
|
|
|
|
"not an element of" |
∉ |
none |
∉ |
∉ |
|
|
|
|
|
|
|
|
|
|
"contains as member" |
∋ |
none |
∋ |
∋ |
|
|
|
|
|
|
|
|
|
|
Radical Sign |
√ |
none |
√ |
√ |
|
|
|
|
|
|
|
|
|
|
"proportional to" |
∝ |
none |
∝ |
∝ |
|
|
|
|
|
|
|
|
|
|
Infinity symbol |
∞ |
none |
∞ |
∞ |
|
|
|
|
|
|
|
|
|
|
Angle |
∠ |
none |
∠B |
∠B |
|
|
|
|
|
|
|
|
|
|
Integral |
∫ |
none |
∫ |
∫ |
|
|
|
|
|
|
|
|
|
|
"therefore" symbol |
∴ |
none |
∴ |
∴ |
|
|
|
|
|
|
|
|
|
|
"varies with / similar to" |
∼ |
none |
∼ |
∼ |
|
|
|
|
|
|
|
|
|
|
"almost equal to" |
≈ |
none |
≈ |
≈ |
|
|
|
|
|
|
|
|
|
|
"not equal to" |
≠ |
none |
≠ |
≠ |
|
|
|
|
|
|
|
|
|
|
"equivalent to" |
≡ |
none |
≡ |
≡ |
|
|
|
|
|
|
|
|
|
|
"less-than or equal to" |
&le |
none |
≤ |
&le |
|
|
|
|
|
|
|
|
|
|
"greater-than/equal to" |
≥ |
none |
≥ |
≥ |
|
|
|
|
|
|
|
|
|
|
Vector product |
⊗ |
none |
⊗ |
⊗ |
|
|
|
|
|
|
|
|
|
|
Perpendicular |
⊥ |
none |
⊥ |
⊥ |
|
|
|
|
|
|
|
|
|
|
"much greater than" |
» |
none |
100».01 |
100».01 |
|
|
|
|
|
|
|
|
|
|
"much less than" |
« |
none |
.01«100 |
.01«100 |
|
|
|
|
|
|
|
|
|
|
Degree symbol |
° |
none |
98.6° |
98.6° |
|
|
|
|
|
|
|
|
|
|
"one-fourth" fraction |
¼ |
none |
2¼ |
2¼ |
|
|
|
|
|
|
|
|
|
|
"one-half" fraction |
½ |
none |
1½ |
1½ |
|
|
|
|
|
|
|
|
|
|
"three-fourths" fraction |
¾ |
none |
3¾ |
3¾ |
|
|
|
|
|
|
|
|
|
|
Plus/Minus symbol |
± |
none |
10±5% |
10±5% |
|
|
|
|
|
|
|
|
|
|
0 with a slash |
Ø |
none |
APØ |
APØ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Using <FONT> tag |
<FONT style="background-color:(color)"> |
</FONT> |
highlighted text |
<FONT
style="background-color:yellow">text</FONT> |
|
|
|
|
|
|
|
|
|
|
Using <SPAN> tag |
<SPAN style="background-color:(color)"> |
</SPAN> |
highlighted text |
<SPAN
style="background-color:yellow">text</SPAN> |
Newer standard |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Hyperlink |
<A HREF="(URL)"> |
</A> |
Fermi Lab |
<A HREF="https://www.fnal.gov">Fermi
Lab</A> |
Note: adding
target="_blank" argument will open a new window |
|
|
|
|
|
|
|
|
|
Email Hyperlink |
<A HREF="mailto:(address)"> |
</A> |
Mail
this page's keeper |
<A HREF="mailto:awatts@fnal.gov">Mail this
page's keeper</A> |
Note: example uses
?subject=(subject) after address to force mail subject |
|
|
|
|
|
|
|
|
|