Headings range in size from h1 /h1 (the largest) to h6 /h6 (the smallest)
Empty Elements
In HTML and XHTML only a very few elements are declared as EMPTY. This means two things:
They do not contain any text. They are used simply as markers (and in some cases are used for whatever is contained in their attributes.
Empty attributes are not permitted to have an end-tag.
Common empty elements include.
• hr / Horizontal rule
• br / Line break
• img / Inline image
Wednesday, February 8, 2012
Lecture 4 Notes
The HTML Markup Language
• HTML is a language of tags. Think of tags as instructions written in a text document (ASCII) such as Notepad, SimpleText or Pico.
• Tags are always enclosed in angle brackets: <>.
• Tags can be thought of as 'containers', because there is usually an opening tag <> and a closing tag >.
• Some tags are not containers, though. They are empty elements. These stand-alone tags include the line break and the image tag.
html
head
title /title
/head
body
/body
/html
Paragraphs
p.../p
The blockquote tag
• Used for setting off quoted text from the surrounding text
• The text in the blockquote tags is indented and there is a space above and below the quoted text.
Character Formatting:
Bolding/Strong
b.../b
strong.../strong
Italics/Emphasis
i.../i
em.../em
• HTML is a language of tags. Think of tags as instructions written in a text document (ASCII) such as Notepad, SimpleText or Pico.
• Tags are always enclosed in angle brackets: <>.
• Tags can be thought of as 'containers', because there is usually an opening tag <> and a closing tag >.
• Some tags are not containers, though. They are empty elements. These stand-alone tags include the line break and the image tag.
html
head
title /title
/head
body
/body
/html
Paragraphs
p.../p
The blockquote tag
• Used for setting off quoted text from the surrounding text
• The text in the blockquote tags is indented and there is a space above and below the quoted text.
Character Formatting:
Bolding/Strong
b.../b
strong.../strong
Italics/Emphasis
i.../i
em.../em
Subscribe to:
Posts (Atom)