HTML4 Basics QuizS2C Home « HTML Basics Quiz

The questions in this first quiz on HTML4 are on the topics covered in the HTML4 Basics section of the site. The table below lists the lessons, a description of the lesson content and the the quiz question number range.

Lesson Summary

Click on a lesson in the table to go to that lesson for a refresher on the topics for that lesson.

HTML4 Basics Lessons Description Question Range
Lesson 1 - Starting OutGathering the tools we need to get started on our journey into the world of HTML 4.01.1 - 3
Lesson 2 - Basic HTML StructureWhat is the syntax and basic structure of a HTML page.4 - 9
Lesson 3 - HeadingsLearning about the six HTML Heading tags h1 - h6.10 - 15
Lesson 4 - Paragraph and Line BreaksLooking at seperating our content using paragraphs and line breaks.16 - 18
Lesson 5 - Emphasising TextLooking at text emphasis using HTML tags.19 - 21
Lesson 6 - Ordered and Unordered Lists How to create ordered and unordered lists in HTML.22 - 25
Lesson 7 - ImagesHow to enhance the look of web pages with images and how to do this using HTML.26 - 29
Lesson 8 - LinksGetting from A to B using hypertext links.30 - 32
Lesson 9 - HTML4 Basics SummaryBringing what we have learnt from these basic HTML4 lessons together.

HTML4 Quiz

The quiz below tests your knowledge of the material learnt in the HTML4 Basics section of the site.

Question 1 : To create web pages using HTML we need a special HTML editor?
- We can use any basic text editor to create web pages using HTML.
Question 2 : What must we ensure when saving files we want to view as web pages?
- We must use a suitable file extension such as <code>.htm</code> or <code>.html</code> to ensure browsers recognize this file as a hypertext document.
Question 3 : What happens if try to view a HTML document that contains only text and no HTML tags in a browser?
- The browser will insert the necessary HTML tags and render and display the text.
Question 4 : Which tag is also known as the 'Document Root' tag?
- The <code>html</code> tag is also known as the 'Document Root' tag.
Question 5 : A HTML element opening tag can be followed by 1 or more what?
- A HTML element opening tag can be followed by 1 or more attributes.
Question 6 : Why would a valid HTML element not have a closing tag?
- A valid HTML element not have a closing tag because the HTML element in question is a self-closing tag.
Question 7 : All HTML elements can contain element content between the start and end tag?
- All HTML elements can contain element content between the start and end tag is 'false' as self-closing tags allow no content.
Question 8 : To conform to W3C standards what must a <head></head> element contain?
- To conform to W3C standards a <code>head</code> element must contain a <code>title</code> element.
Question 9 : Where do we put the content of our web pages that we want users to view?
- We put viewable content within the <code>body</code> element.
Question 10 : How many HTML heading tags are available for our use?
- There are 6 HTML heading tags are available for our use.
Question 11 : What does a browser do when it encounters a heading tag?
- What a browser encounters a heading tag it uses a new line to display it on.
Question 12 : Which is the most prominent HTML heading tag?
- The <code>h1</code> tag is the most prominent HTML heading tag.
Question 13 : What is recommended when using <h1> tags?
- It is recommended when using <code>h1</code> tags to limit use to one per web page
Question 14 : As a rule of thumb which heading tag is generally the same size as regular text?
- The <code>h4</code> heading tag is generally the same size as regular text.
Question 15 : Which heading tag is used for sections of a page
- We use the <code>h2</code> heading tag for sections of a page.
Question 16 : What tag should we use to enclose paragraphs of text?
- We use the <code>p</code> tag to enclose paragraphs of text.
Question 17 : What tag should we use to create a carriage return in out HTML documents?
- We use the <code>br /</code> tag to create a carriage return in out HTML documents.
Question 18 : The <p> tag places the enclosed content on a new line?
- The <code>p</code> tag places the enclosed content on a new line and also adds a little space above and below it.
Question 19 : What HTML tag do we use to hightlight the enclosed content, making it bold in word processor parlance.
- We use the <code>strong</code> HTML tag do we use to hightlight the enclosed content, making it bold.
Question 20 : The <em> HTML tag underlines the enclosed content to emphasise it?
- The <code>em</code> HTML tag italicises the enclosed content to emphasise it.
Question 21 : Which tag italicises our text?
- We use the <code>em</code> HTML tag to italicise the enclosed content.
Question 22 : Why would we use a <ul> tag instead of an <ol> tag for a list?
- We use the <code>ul</code> HTML tag for lists when we are not concerned with ordering.
Question 23 : Which type of HTML tag do we use to generate a numbered list?
- We use the <code>ol</code> HTML tag to generate a numbered list.
Question 24 : Which HTML tag do we use to define the content of our ordered and unordered lists.?
- We use the <code>li</code> HTML tag to define the content of our ordered and unordered lists.
Question 25 : We can define a list within a list in HTML?
- Having lists within lists is perfectly acceptable in HTML.
Question 26 : What HTML tag is used to create an area on the page to hold the referenced image?
- We use the <code>img /</code> HTML tag to create an area on the page to hold the referenced image.
Question 27 : Which attribute specifies the URL of the image?
- The 'url' attribute specifies the URL of the image.
Question 28 : What are the mandatory attributes we need to use with the <img /> tag?
- The 'src' and 'alt' attributes must be specified when using the <code>img /</code> tag.
Question 29 : We can use the same image more than once on a web page?
- It's perfectly acceptable to use an image several times on the same page and we can even vary its size using the 'height' and 'width' attributes.
Question 30 : Which HTML tag is used to define a link?
- The <code>a</code> HTML tag is used to define a link?.
Question 31 : Anchors which point to another part of the current document are commonly known as links. What are anchors which point to another document commonly known as?
- Anchors which point to another document are commonly known as <em>hyperlinks</em>.
Question 32 : When anchoring to a HTML element on the current page what attribute is preferred within the target element?
- When anchoring to a HTML element on the current page the 'id' attribute is preferred within the target element although the 'name' attribute is also valid.
Quiz Progress Bar Please select an answer

What's Next?

In the next quiz we test our knowledge of the topics covered in the HTML4 Intermediate section of the site .

go to home page Homepage go to top of page Top