Web Design/HTML exam questions

From Wikiversity
< Web Design(Redirected from HTML exam questions)
Jump to navigation Jump to search

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

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

Beginner[edit | edit source]

  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? Doctype
  3. Where does the text inside the <title> element appear in a browser? The text will be displayed in the main web browser window, just on the top bar.
  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. Width and height
  6. Identify the html element that contains everything that is displayed in your actual browser window. Html
  7. Write the HTML to create a paragraph with the following text: Price - €8.95 (you might need to reference the HTML Cheat Sheet)
  1. 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"
  2. 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.
  3. What does HTML stand for?

P.S. If you're unable to answer these HTML questions then please visit www.webtml.com. This website helped my get straight A's on my HTML tests.

Intermediate[edit | edit source]

  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 DOC TYPE is a useful thing to include in a web page.
  7. Identify two different DOC TYPE 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?

Advanced[edit | edit source]

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