HTML exam questions
From Wikiversity
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
- What is a WYSIWYG editor and why should we learn html without them?
- What is the root element (ie. the first tag) of every html page?
- Where does the text inside the
<title>element appear in a browser? - Describe one benefit of separating your content (the information of your page) and your presentation (the way your page is displayed in the browser).
- Identify two attributes of the
<img>element and explain what they are used for. - Identify the html element that contains everything that is displayed in your actual browser window.
- Write the HTML to create a paragraph with the following text: Price - €8.95 (you might need to reference the HTML Cheat Sheet)
- Write the anchor tag required to link from the page links.html to the page contact.html when the files are organised as follows:
- Both in the same folder
- the contact.html page is located in a subfolder called "contactfiles"
- the links.html page is located in a subfolder called "otherfiles"
- 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
- Identify two html elements that you can use inside the
<head>element and describe what they're used for. - 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. - Identify the html element that is used to create divisions or sections within your page.
- Explain 3 reasons why HTML tables should be used for tabular data and not for laying out a page.
- List the html elements that you need to create a table and explain how each element is used.
- Explain why a DOCTYPE is a useful thing to include in a web page.
- Identify two different DOCTYPEs and explain why you would use one over the other.
- Explain why modern web browsers have both a "quirks" mode and a "standards" mode.
- Explain the difference between the alt attribute and the title attribute?
[edit] Advanced
- Identify and discuss the pro's and con's of HTML 5 vs XHTML 2