HTML/CSS Quiz
The head element
contains information for scripts, meta data and references to style sheets.
What is the correct HTML element for inserting a line break?
* a. <br> b. <break> c. <breakline> d. <linebreak>
What is the correct HTML for inserting an image?
* a. <img src="image.gif" alt="MyImage"> b. <image src="image.gif" alt="MyImage"> c. <img alt="MyImage">image.gif</img> d. <img href="image.gif" alt="MyImage">
What is the correct HTML for making a text input field?
* a. <input type="text"> b. <input type="textfield"> c. <text> d. <box>
How can you make an ordered list?
* a. <ol> b. <orderedlist> c. <list type="ordered"> d. <li>
HTML attribute values are case-sensitive
* a. TRUE b. FALSE
HTML comments start with <!-- and end with -->
* a. true b. false
What is the root element of an html page?
<html>
What is the correct html for referring to an external style sheet?
<link rel="stylesheet" type="text/css" href="mystyle.css">
Where in an HTML document is the correct place to refer to an external style sheet?
In the <head> section
HTML attribute values must be inside quotation marks.
TRUE
HTML5 was published by
* a. W3C b. Mozilla c.Microsoft d. Sun Systems
Select all h1 elements in CSS
* a. h1 { } b. h1.all{ } c. all.h1{ } d. Not possible
HTML is a programming language.
a. TRUE * b. FALSE
Which tag is used to define CSS inside of an HTML document?
* a. style b. head c. form d. script
Which of the following is correct DOCTYPE for HTML 5?
a. !DOCTYPE * b. !DOCTYPE html c. !DOCTYPE xhtml
What is the correct HTML for creating a hyperlink?
a. <a name="">A</a> b. <a>B</a> * c. <a href="http://www.example.com">example</a> d. <a url="http://www.example.com">example</a>
Choose the correct HTML element for the largest heading:
a. <head> * b. <h1> c. <h6> d. <heading>
What does HTML stand for?
a. Hyper Text Markup Language * b. Hyperlinks and Text Markup Language c. Home Tool Markup Language d. Hyper Tool Markup Language
How do you insert a comment in a CSS file?
a. This is a comment b. // this is a comment * c. /* this is a comment */ d. // this is a comment //
How can you make an unordered list?
* a. <ul> b. <unorderedlist> c. <list type="unordered"> d. <li>
What elements do you need for a bare bones HTML page?
* a. Document declaration, html, head and body elements b. Document Declaration, head, and body elements c. Document Declaration and html element d. Document Declaration and body element
What does the hexadecimal number (#FA0AB1) represent in CSS?
*a. hex color code b. byte code c. text code d. None of the above
Which element allows you to add a title to an html page?
<title>
Which CSS property controls the text size?
a. font-style * b. font-size c. text-style d. text-size