The HTML Tagging LanguageWeb pages are created using HTML hypertext markup language. HTML works on a simple principle: turning something on and then turning it off. For instance, you can start and end:
HTML turns something on or off using tags. A tag consists of a command surrounded by left and right angle brackets. For instance, the tag for starting the body of an HTML document is <BODY>. The tag for ending the body is </BODY>. The forward slash ( / ) is a critical part of an ending tag in HTML. It distinguishes an ending tag from a starting tag. Selected HTML TagsFirst-Level Heading: <H1> and </H1> Second-Level Heading: <H2> and </H2> Third-Level Heading: <H3> and </H3> Paragraphs: <P> and </P> Emphasized (usually italicized) Text: <EM> and </EM> Strong (usually bold) Text: <STRONG> and </STRONG> Bold Text: <B> and </B> Italicized Text: <I> and </I> Underlined Text: <U> and </U> Subscripted Text: <SUB> and </SUB> Superscripted Text: <SUP> and </SUP> Many tags can be modified using attributes. The <BODY> tag, for instance, can be modified with attributes that control the appearance of the page background, the color of text on the page, and the color of links on the page. A <BODY> tag using attributes might appear as follows:
<BODY BGCOLOR="White" TEXT="Black" LINK="#3366FF" VLINK="#003399" ALINK="#0000FF" BACKGROUND="niftyimage.jpg">
|
Copyright © 1993-2009 Colorado State University and/or this site's authors, developers, and contributors. Some material displayed on this site is used with permission.