HTML exam questions

From Wikiversity

Jump to: navigation, search

The following questions are to help you identify where you need more work or...

The questions are divided into beginner, intermediate and advanced sections.

[edit] Beginner

  1. What is a WYSIWYG editor and why should we learn html without them?
  2. What is the root element (ie. the first tag) of every html page?
  3. Where does the text inside the <title> element appear in a browser?
  4. Describe one benefit of separating your content (the information of your page) and your presentation (the way your page is displayed in the browser).
  5. Identify two attributes of the <img> element and explain what they are used for.
  6. Identify the html element that contains everything that is displayed in your actual browser window.
  7. Write the HTML to create a paragraph with the following text: Price - €8.95 (you might need to reference the HTML Cheat Sheet)
  8. Write the anchor tag required to link from the page links.html to the page contact.html when the files are organised as follows:
    1. Both in the same folder
    2. the contact.html page is located in a subfolder called "contactfiles"
    3. the links.html page is located in a subfolder called "otherfiles"
  9. If you have a div on your page such as <div id="contactus">, write the anchor link required to scroll your page directly to the Contact Us information.

[edit] Intermediate

  1. Identify two html elements that you can use inside the <head> element and describe what they're used for.
  2. Every element has an opening and closing tag. For example, <p>...</p>. Identify two html elements that combine the opening and closing tag into one single tag.
  3. Identify the html element that is used to create divisions or sections within your page.
  4. Explain 3 reasons why HTML tables should be used for tabular data and not for laying out a page.
  5. List the html elements that you need to create a table and explain how each element is used.
  6. Explain why a DOCTYPE is a useful thing to include in a web page.
  7. Identify two different DOCTYPEs and explain why you would use one over the other.
  8. Explain why modern web browsers have both a "quirks" mode and a "standards" mode.
  9. Explain the difference between the alt attribute and the title attribute?

[edit] Advanced

  1. Identify and discuss the pro's and con's of HTML 5 vs XHTML 2