Displaying Data in Lists
Displaying Data in Lists
Type <BLOCKQUOTE> in front of the text you want to turn into a block quote.
The web browser displays the block quote as inset text on the document page.
<BLOCKQUOTE> But soft! What light through yonder window breaks? It is the East and
Juliet is the sun! Arise fair sun and kill the envious moon. It is the east, and Juliet is the sun."
</BLOCKQUOTE>
----Displays----
But soft! What light through yonder window breaks? It is the East and Juliet is the sun!
Arise fair sun and kill the envious moon. It is the east, and Juliet is the sun."
Adding a Comment
Comments are important parts of your webpage. They do not appear on the webpage itself, but
are reminders for you in your code. For example, you might leave a comment about a future
editing task, or leave a note to other web developers viewing your HTML code.
To add a comment:
The web browser does not display the comment on the page.
Creating Lists
Lists are easy ways to stay organized on your page. You can use numbered lists in your web
page to display all kinds of ordered lists. For example, you can use numbered lists to show steps
or prioritize items.
Type <OL> above the text you want to turn into a numbered list
Type <LI> in front of each item in the list
Type </LI> after each list item
Type </OL> after the list text
For example for Roman Numerals you would type <OL TYPE=I>
The numbered list would show Roman numerals on your web page.
If you want to start with a different number, you must add a START attribute to the <OL>
Type <UL> above the text you want to turn into a list
Type <LI> in front of each item in the list
Type </LI> after each list item
Type </UL> after the list text
Definition List
You can use a definition list in your document to set apart text in the format of a glossary or
dictionary.
Type <DL> above the text you want to set as a definition list
Type <DT> in front of each term and </DT> after each term
Type <DD> in front of each definition and </DD> after each definition
Guided Practice
Create a new HTML Document: LISTABC.html (replacing “ABC” with your initials.)
Directions:
Ordered List
Unordered List
Definitions
Lower cost
The new version of this product costs significantly less than the previous one!
Easier to use
We've changed the product so that it's much easier to use!
Safe for kids
You can leave your kids alone in a room with this product and they won't get hurt
(not a guarantee).