Worth: 10% of your final grade. There are eight questions in this closed-book quiz, worth a total of 22 marks.
Time: You have 15 minutes to complete this quiz.
Note: Code written must be valid and work in order to achieve full marks.
For full recreation of quiz conditions, it is suggested that you print out this page and write your answers on the page. The quiz key will print out separately.
Write the correct DOCTYPE for an HTML5 page. (2 marks)
Write a form text input that will be required to be filled out by a user before they can submit the form in an HTML5-compatible browser. (Only the input markup is required) (2 marks)
Name three form input types that are new and exclusive to HTML5 (1 mark for each correct answer, for a total of three marks).
The words “next Saturday” in the body copy sentence “I’ll see you next Saturday” should be marked up with what HTML5 tag? (2 marks)
Rather than traditional descriptive meta tags in the
<head>, HTML5 works best with (circle one, for one mark).
- <link />
- 1, 4 & 3
- 1 & 3
Write a valid link to a stylesheet using the minimal amount of HTML possible. (2 marks)
What is wrong with the following code? (You can assume that the rest of the page is correct). (2 marks)
<article> <header>Umbrella Corporation</header> <p>Article content</p> <sidebar>Footnotes</sidebar> </article>
Name two codecs supported by browsers for the HTML5 <video> or <audio> tag. (2 marks each, for a total of 4 marks)
- Question 1
<!DOCTYPE html>more info
- Question 2
<input type="text" name="firstname" id="firstname" required>more info
- Question 3
- Question 4
- Question 5
- Question 6
<link rel=stylesheet href=styles.css>more info
- Question 7
No such tag as
<aside>should be used instead. more info
- Question 8
OGG, H264, VP8 more info
Enjoy this piece? I invite you to follow me at twitter.com/dudleystorey to learn more.