When you are creating a document, you frequently want parts of your text to stand out from other parts. Maybe you want to bold a key phrase, or italicize a book title. Literal text defines how that text should be displayed, and includes the following HTML elements:
<B></B> | Bolded text |
<I></I> | Italicized text |
<U></U> | Underlined text |
<TT></TT> | Teletype text (manuscript font) |
<S></S> |
Let's start by reformatting the opening paragraph to the Declaration of Independence:
When in the Course of human events, it becomes necessary for one people to dissolve the political bands which have connected them with another, and to assume among the powers of the earth, the separate and equal station to which the Laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation.
The HTML markup is as follows (with HTML elements highlighted for easier visibility):
<I>When in the Course of human events,</I> it becomes necessary for <U> one people to dissolve the political bands </U> which have connected them with another, and to assume among the powers of the earth, the separate and equal station to which the Laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind <B> requires that they should declare the causes </B> which impel them to the separation.
Now let's take a look at teletype and strike-through. Using the same opening paragraph from the Declaration of Independence, I've combined the wording of a draft of the Declaration of Independence with the final version approved by Continental Congress on July 4, 1776. In fact, this is an excellent example of why you would want strike-through text...to maintain an exact record of changes:
When
,in the Course of human events, it becomes necessary foraone people toadvance from that subordination in which they have hitherto remained,dissolve the political bands which have connected them with another, and to assume among the powers of the earth, theequal and independentseparate and equal station to which thelaws of nature and of nature's godLaws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to thechangeseparation.
The HTML markup is as follows (with HTML elements highlighted for easier visibility):
<TT>When<s>,</s> in the Course of human events, it becomes necessary for <s>a</s> one people to <s>advance from that subordination in which they have hitherto remained, </s> dissolve the political bands which have connected them with another, and to assume among the powers of the earth, the <s>equal and independent</s> separate and equal station to which the <s>laws of nature and of nature's god</s> Laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the <s>change</s> separation.</TT>
Copyright © 2001 Michael J. Doyle
All Rights Reserved.
Designed & Developed by Mike Doyle
using Macromedia Dreamweaver & CourseBuilder
See Mike's Training Schedule for
HTML, Dreamweaver, & CourseBuilder Courses
Email Mike Doyle