USEFUL HTML COMMANDS, 23 April 2009

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 tidied up.


VIEWING FIREFOX BROWSER IN LARGE FONT The best way to make the font larger when viewing a webpage in Firefox is to hold down the CTRL button and scroll up using the mouse wheel. This is very useful when showing a web page to a class using a projector. (Source: RF in G492)
BLOGGER (NOT HMTL, but I"ll Put it here)
  • A page on how to use Haloscan to add incoming and outgoing trackbacks to Blogger blogging software.


    INSERTING PDF FILES INTO HTML FILES I finally found this-- I'd cite the link but I didn't note it down. This worked for me-- at least the first part did. The last part is an alernative for readers with browsers that don't support the IFRAME command. <iframe src="http://rasmusen.org/t/images-2008/names.pdf" title="your_title" target="Message" scrolling="auto" width="100%" align="top" frameborder="0" height="620"> <br><!-- Alternate content for non supporting browsers --><br><p align="center">Please click <a href="http://rasmusen.org/t/images-2008/names.pdf">here </a>.</p><br> </iframe>
    HIDDEN AREA TOGGLE

    <!-- javascript for hidden area toggle added October 9a, 2007 --> <script type="text/javascript"> <!-- function toggle_visibility(id) { var e = document.getElementById(id); if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } //--> </script>


    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: HERE IS THE CODE FOR THE NEXT PICTURE:

    <table class="image" align="left"> <tr><td><img src= "http://rasmusen.org/t/images-2008/eggs.JPG" align= left width= "360" hspace="30" ></td></tr> <tr><td class="caption"> Eggs</td></tr> </table>

    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.


    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 >
    &amp; the escape sequence for &
    &quot; the escape sequence for "

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

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

    THE GREEK ALPHABET
    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).


    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: