Thursday, October 27, 2011

HTML Elements

  1. What is an HTML element? An HTML element is everything from the start tag to the end tag.
  2. What is another name for a start tag?The start tag is often called the opening tag.
  3. What is another name for a end tag?The end tag is often called the closing tag.
  4. When are HTML elements closed in a start tag?Empty elements are closed in the start tag.
  5. Why are HTML Documents nested?HTML documents consist of nested HTML elements.
  6. Write the beginning tag, end tag and definition of each tag.
    • p <p>, </p>,This is a paragraph
    • body <body>,</body> this a body
    • HTML <HTML>.</HTML> ,The <HTML> element defines the whole HTML document.
    • br <br />
  7. What could happen if you do not include the end tag? Many HTML elements will produce unexpected results and/or errors if you forget the end tag .
  8. What is the proper way to close an empty XHTML and XML tag?Adding a slash inside the start tag, like <br />, is the proper way of closing empty elements in XHTML (and XML).
  9. Why are lowercase tags preferred? W3Schools use lowercase tags because the World Wide Web Consortium (W3C) recommends lowercase in HTML 4, and demands lowercase tags in XHTML.


No comments:

Post a Comment