This Week's Tags - Learn These! | ||
Beginning Tag | Ending Tag | Purpose |
<br /> | The <br /> (break) tag "breaks the line" or single spaces, pushing text to the next line. It is a single tag and does not have a separate closing tag. New in XHTML: Include a "/" at the end of the tag! | |
<center> | </center> | The <center> tag centers a block of text. It is a deprecated tag, which means that it will no longer be used in the next release of HTML. We will learn other ways to center text later. |
<p /> or <p> | </p> | The <p /> (paragraph) tag double spaces. If the <p> tag has attributes, it has a closing tag. If it does not have attributes, there is no separate closing tag, but it needs a "/" at the end of the tag. More on this next week. |
<hr /> or <hr> | </hr> | The <hr /> tag prints a horizontal rule (or line) across the web page and single spaces. If the <hr> tag has attributes, it has a separate closing tag. |
<h1> | </h1> | Heading tags (<h1> through <h6>) print bold text in large to small font sizes and double space. They are used for page and section headings. |
<ol> | </ol> | The ordered list tag begins and ends a numbered list. |
<ul> | </ul> | The unordered list tag begins and ends a bulleted list. |
<li> | </li> | The list item tag appears at the beginning of each item that appears in an ordered or unordered list. New in XHTML: All tags must have closing tags! |
<dl> | </dl> | The definition list tag begins and ends a definition list. New in XHTML: All tags must have closing tags! |
<dt> | </dt> | The definition term tag appears at the beginning of each term in a definition list. New in XHTML: All tags must have closing tags! |
<dd> | </dd> | The definition tag appears at the beginning of each definition in a definition list. New in XHTML: All tags must have closing tags! |