6b. HTML Formatting
Text formatting
-
What does this example demonstate?This text is bold
-
How can you format text in an HTML document? HTML uses tags like <b> and <i> for formatting output, like bold or italic
text.
Preformatted text
-
What does this example demonstate?<pre></pre>
-
Why would you use preformatted text?It preserves both spaces and line breaks.
"Computer output" tags
-
What does this example demonstate?Defines computer code text
-
What are "computer output" tags used to display? <code>
Address
-
What does this example demonstate?
-
Type your address in an HTML document.
Abbreviations and acronyms
-
What does this example demonstate?to define contact information for the author/owner
of an HTML document.
-
What is an acronym?An acronym can be spoken as if it were a word, example NATO, NASA, ASAP, GUI.
-
What attribute is used for Abbreviations and acronyms?<abbr>
-
Write an example of an acronym. <abbr title="Introduction">Intro.</abbr>
Text direction
-
What does this example demonstate?If your browser supports bi-directional override
-
Why would you ever want to change text direction? If you want the new direction to be the default for new documents
Quotations
-
What does this example demonstate?<blockquote></blockquote>
-
How would you handle a long quotation in HTML? A short quotation in HTML?The browser inserts quotation marks around the short quotation.The browser inserts white space before and after a blockquote element. It also inserts margins.
Deleted and inserted text
-
What does this example demonstate?Notice that browsers will strikethrough deleted text and underline inserted text.
-
What happens to deleted text in most browsers?the word would get crossed out.
-
What happens to inserted text in most browsers?the word would be in front of the crossed out word.
-
Describe how you would view HTML source code in a web browser? <del>blue</del> <ins>red</ins>
No comments:
Post a Comment