Advanced Block and Inline Elements
This lesson is an extension of the previous lesson on basic block and inline elements. The same rules apply for advanced elements this is just an extension of what was previously learned.
Advanced Block Elements
The <blockquote> tag is used to display a long quote and has a default indentation to the left.
This is an example of how the blockquote is used.
The <dl> tag is used to create a definition list.
The <dt> tag is used to create an item in a definition list
<dd> is used to describe the item in the definition list
This is an example of how definition tags are used:
- - Hypertext Markup Language
- - Cascading Style Sheet
The <pre> tag creates preformatted text. Text in <pre> tags are displayed in a fixed-width font (usually Courier), and keeps spaces and line breaks.
Example of preformatted text.
Advanced Inline Elements
The <q> tag is used for quotes. It simply adds ” around the text.
The <abbr> tag stands for abbreviation and is used to shorten phrases and is useful for search engines and spellcheck to understand the abbreviation. If you scroll over the abbreviation you can view the actual phrase it stands for.
This is an example: HTML
The <acronym> tag is used to define an acronym. It is simliar to the <abbr> tag in that it also shows the phrase when scrolled over.
This is an example: LOL
The <cite> tag stands for citation.
This is an example of citation
The <code> tag is used to display code text.
This is an example of how code tags are used.
The <sub> tag is used to create subscript text.
This is an example of subscript text
The <sup> tag is used to create superscript text.
This is an example of superscript text