USEFUL HTML COMMANDS, 29 January 2008

Eric Rasmusen, erasmuse@indiana.edu This file is now at http://www.rasmusen.org/a/html-rasmusen.htm

This page contains HTML commands that I often need to look up. To see the commands themselves, use VIEW SOURCE. This page is not yet tidied up.


SYMBOLS

HTML Escape Sequences* To use one of these characters in an HTML document, you must enter its escape sequence instead. The semicolon is optional if you have a blank space after the character, but otherwise you need it to separate off the escape sequence character from the next character, e.g. "x &lt y and x&lt;y and x&lty" becomes "x < y and x<y and x<y"

&lt; the escape sequence for <
&gt; the escape sequence for >
&& the escape sequence for &
&quot; the escape sequence for "

&exist &exist &forall &forall; ∈ ∏ ∑ √ ∞ ∫ ∼ ≈ ≠ ≤ ≥ ′ • ∂

"±" "¹" "²" "³" "ℜ" from http://www.w3.org/TR/html401/sgml/entities.html

A &Alpha &Alpha &alpha &alpha alpha         B &beta beta         &Gamma &gamma gamma         &Delta &delta delta         E &epsilon epsilon        Z &zeta zeta        H &eta eta       

&Theta &theta theta        I &iota iota        K &kappa kappa        &Lambda &lambda lambda        M &mu mu        N &nu nu        &Xi &xi xi        &Omicron &omicron omicron       

&Pi &pi pi        P &rho rho        &Sigma &sigma sigma        T &tau tau        &Upsilon &upsilon upsilon        &Phi &phi phi        X &chi chi        &Psi &psi psi        &Omega &omega omega

THE HEBREW ALPHABET: אבגדהוז חטיכלמנסעפ צקרשת for tcdsvuzjyhfknbxgpmera, aleph א--- bethב--- gimel ג--- daleth ד--- he ה--- vav ו--- zayin ז--- chet ח---tet ט--- yod י--- kaph כ--- lamed ל--- mem מ---nun נ--- samech ס---ayin ע---pe פ--- tsadi צ---quph ק--- resh ר---shin ש--- tav ת Maybe I'll add the vowels here someday.

A list of symbols is at: http://www.htmlhelp.com/reference/html40/entities/symbols.html

Another way is to use the symbol font: l

"Ultimate Cool Characters" says Combining diacritical marks can be used to add a diacritical mark to a desired character. Type the number code for the desired mark immediately after the character you would like to add it to. For example, typing My name is B̃ob would appear as My name is B~ob. Note that this only works for the characters labeled as combining marks (combining grave, combining acute, combining tilde, combining hook above, and combining dot below).


Image Captions in HTML. "Image captions on Web pages" is good. It said "Sadly enough, there is no markup for image captions in HTML. What comes closest to semantically associating some text content with some image is putting them into a table so that the image is in one cell and the text is either in another cell or in a caption element." Here's an example, elaborated using commands from http://www.case.edu/help/wilbur/ch2.html(try VIEW SOURCE for the code):

FOR IMAGE CAPTIONS:
Eggs
It is useful to have a way to tell text to go on past the image. That is the next command.
Now we go on.


SEARCH ENGINES: The meta tag below for robots tells the robot to not index the webpage and to not follow any links ou of it. For more details, see http://www.kdwebpagedesign.com/tut_meta.asp. <meta name="robots" content="none"> STYLE Put this at the start to make the background color white, the first- choice of font trebuchet-ms, the second choice arial, and to set up two CLASS's, one superscript with small font size and the other red font.

<STYLE type="text/css"> BODY { background-color: white } body { font-family: trebuchet ms, arial} <!-- .verse-num{ vertical-align: super; margin-left: 0em;margin-right: -3pt; font-size:-4} .woc{color:red; } --> </STYLE>


this is an unindented paragraph.


INTERNAL LINKS

Here is where the internal link goes to

dfgsfgsgsfgsf

(return to that internal lnk location


Here is some red color


FOR PUTTING PARAGRAPH INDENTS IN THE ENTIRE DOCUMENT:


<STYLE TYPE="text/css"> <!-- P { text-indent: 2em } --> <
/STYLE>


TABLES

Presidential Election Data,
State Votes
Maine 4
Indiana12


LISTS

DL and DT are good for lists with headings. You can, in effect, delete the unnecessary extra vertical space that the ol and ul lists add automatically before and after the list. They are for "definition lists". I combine them with the usual ul li unordered list command below.

January 30. Introduction to Antitrust
To read:
For Reference:

LISTS: