|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
<DEL> Type: Container Function: Contains text that has been deleted from the document. The tag is intended mainly for documents with multiple authors and/or editors who would want to see all the content in an original draft, even though it may have been deleted by a reviewer.
Syntax: <DEL CITE=url DATETIME=YYYYMMDDThh:mm:ss> ... deleted text goes here ... </DEL> Attributes: <DEL> can take two attributes:
Example: She just got a big<DEL>, huge</DEL> raise. In this example, the use of the word huge is redundant, so an astute copy editor would delete it. Related Tags: The <INS> tag has a similar function for inserted text. <DFN> Type: Container Function: Denotes the defining instance of a term. Internet Explorer will display text tagged with <DFN> in italic, whereas Netscape Navigator will not use any special formatting. Syntax: <DFN> ... term being introduced goes here ... </DFN> Attributes: None. Example: Freud proposed the idea of a <DFN>catharsis</DFN> - a release of psychic tension. <EM> Type: Container Function: Contains text to be emphasized. Most browsers render emphasized text in italic. Syntax: <EM> ... emphasized text goes here ... </EM> Attributes: None. Example: Please do <EM>not</EM> disturb the dog. <INS> Type: Container Function: Contains text that has been inserted into the document after its original draft. Syntax: <INS> ... inserted text goes here ... </INS> Attributes: Like <DEL>, <INS> can take two attributes:
Example: The New World was discovered by <DEL>Magellan</DEL> <INS>Columbus</INS> in 1492.
Related Tags: The <DEL> tag logically represents deleted text. <KBD> Type: Container Function: Contains text that represents keyboard input. Browsers typically render such text in a fixed-width font. Syntax: <KBD> ... keyboard input goes here ... </KBD> Attributes: None. Example: To begin, type <KBD>go</KBD> and press Enter. <Q> Type: Container Function: Contains a direct quotation to be displayed inline. Syntax: <Q CITE=URL_of_cited_document> ... quotation goes here ... </Q> Attributes: If youre quoting from an online source, you can set the CITE attribute equal to the sources URL. Also, you may wish to consider using the LANG attribute because quotes are denoted with different characters in many languages. Related Tags: The <BLOCKQUOTE> tag can also be used to denote quoted text, but block quotes are displayed with increased right and left indents and are not in line with the rest of the body text. <SAMP> Type: Container Function: Contains text that represents the literal output from a program. Such output is sometimes referred to as sample text. Most browsers will render sample text in a fixed-width font. Syntax: <SAMP> ... program output goes here ... </SAMP> Attributes: None. Example: A common first exercise in a programming course is to write a program to produce the message <SAMP>Hello World</SAMP>. <STRONG> Type: Container Function: Contains text to be strongly emphasized. Browsers typically render strongly emphasized text in boldface (see Figure 3.7). Syntax: <STRONG> ... strongly emphasized text goes here ... </STRONG> Attributes: None. Example: <STRONG>STOP!</STRONG> Do not proceed any further. Contact your system administrator.
<VAR> Type: Container Function: Denotes a variable from a computer program. Variables are typically rendered in a fixed-width font. Syntax: <VAR> ... program variable goes here ... </VAR> Attributes: None. Example: The <VAR>RecordCount</VAR> variable is set to the number of records that the query retrieved. Block-Level Formatting TagsBlock-level formatting tags are usually applied to larger content than the text-level formatting tags. As such, the block-level tags define major sections of a document, such as paragraphs, headings, abstracts, chapters, and so on. The tags profiled in this section are the ones to turn to when you want to define the block-level elements in a document youre authoring. <BLOCKQUOTE> Type: Container Function: Contains quoted text that is to be displayed indented from regular body text (see Figure 3.8).
Syntax: <BLOCKQUOTE CITE=URL_of_cited_document> ... quoted text goes here ... </BLOCKQUOTE> Attributes: If youre quoting from an online source, you can set the CITE attribute equal to the sources URL. Example: Fans of Schoolhouse Rock will always be able to recite the preamble of the United States Constitution: <BLOCKQUOTE> We, the people, in order to form a more perfect Union ... </BLOCKQUOTE> Related Tags: The <Q> tag is used to denote quoted text that is to be displayed in line with the body text.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |