Embed
Email

Computer Science 180 Web Design Topic Notes More HTML Elements ...

Document Sample

Shared by: yaoyufang
Categories
Tags
Stats
views:
0
posted:
12/14/2011
language:
pages:
2
Computer Science 180

Web Design

Siena College

Fall 2011



Topic Notes: More HTML Elements

Before we move on to other topics, we will look at several more HTML elements that you may

find useful as you develop documents.

You are likely to use some of these quite often, while for others you will probably not have a reason

to use them.





Definition Lists

We have seen ordered () and unordered () lists. There is also a list called a definition

list, which consists of a collection of terms and their definitions. Three elements are used:



• ... defines the list itself.



• ... specifies a term to be defined in the list.



• ... specifies a definition of a term in the list.







Presentation Elements

We have seen a few presentation elements: (, , ). There are a few others worth

mentioning.



• The ... and ... elements request a larger or smaller

font, respectively, for the enclosed text.



• The ... and ... elements request that the contents be

rendered as a superscript or subscript, respectively.





Phrase Elements

The presentation elements above give guidance to a browser about changing font sizes or typefaces.

However, they do not give any meaning for why the changes are being requested, nor do they

translate well to alternate user agents (perhaps a screen reader for visually impaired).

The following phrase elements do add such meaning:



• ... – emphasized text, usually drawn in italics

CS 180 Web Design Fall 2011







• ... – strongly emphasized text, usually rendered as bold



• ... – a definition term, usually rendered as italics



• ... – computer code, usually rendered as a fixed-width font



• ... – computer program output, usually rendered as a fixed-width font



• ... – keyboard text to be entered into a computer program, usually rendered

as a fixed-width font



• ... – a variable name (as in a computer program), usually rendered as a

fixed-width font



• ... – a citation, usually rendered as italics



Two other phrase elements provide more complete information when an abbreviation or acroynm

are used: ... and ... . In each case, a title

attribute is required to define the full form of the abbreviation or acronym.



If you work for NASA, you should know your abbreviations

like km

and kg.



Most browsers display the text in the title attribute when the mouse pointer hovers over the

element.



Other Elements

A few others worth mentioning:



• ... – specifies contact information for a page’s author, usually

rendered as italics



• ... – specifies a large segment of quoted material,

usually rendered with extra indentation on both left and right



• ... and ... specify deleted and inserted text, respectively.

Deleted text is typically shown as crossed out, inserted as underlined.









2



Related docs
Other docs by yaoyufang
Data Warehouse Developer
Views: 1  |  Downloads: 0
Expanding efforts to combat viruses at UofL
Views: 0  |  Downloads: 0
ELRHA-seedfunding-guidelines
Views: 0  |  Downloads: 0
hants_aiming_high_-_targeted_offer-2
Views: 0  |  Downloads: 0
RESULTS - THE RACKING IMAGE
Views: 3  |  Downloads: 0
TNAobesityHIroles
Views: 0  |  Downloads: 0
Stamp Location List - The Capitol Collection
Views: 0  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!