HTML and CSS Quiz
Show all answers
Hide all answers
Completion
- HTML stands for _____________ _____________ _____________.
Answer
Hypertext Markup Language
- XHTML stands for _____________ _____________ _____________ _____________.
Answer
Extensible Hypertext Markup Language
- CSS stands for _____________ _____________ _____________.
Answer
Cascading Style Sheets
Short answer
- What is HTML used for?
Answer
To describe the content of a web page so a browser can display it.
- What is CSS used for?
Answer
To specify styling for a web page.
- Write an HTML comment that contains the name of this course.
Answer
<!-- CIS 115 Internet Fundamentals -->
- Write the HTML code for a paragraph that contains the name of Chicago's NFL football team.
Answer
<p>The Chicago Bears</p>
- Write the HTML code for a large heading (h1 element) which displays the college's name.
Answer
<h1>Kishwaukee College</h1>
- Write the HTML code for a link which goes to the URL http://xkcd.com when the user clicks on the text: Cartoon
Answer
<a href="http://xkcd.com/">Cartoon</a>
- Write the HTML code to display an image stored in the file: landscape.jpg
Answer
<img src="landscape.jpg">
- Write the HTML code for a starting "div" tag with the class "intro".
Answer
<div class="intro">
- Write the HTML code for a starting "h3" tag with the id "extra".
Answer
<div id="extra">
- Write a CSS rule that will set the font-family property of all h1 elements to monospace.
Answer
h1 { font-family: monospace; }
- Write a CSS rule that will set the color property of all elements with a class of blue to #0000ff.
Answer
.blue { color: #0000ff; }
- Write a CSS rule that will set the text-indent property of all p elements with an id of first to 5em.
Answer
p#first { text-indent: 5em; }
- Write the HTML code for an ordered list that contains the following two items: "CIS", "115".
Answer
<ol><li>CIS</li><li>115</li></ol>
- Write the HTML code for an unordered list that contains the following two items: "CIS", "115".
Answer
<ul><li>CIS</li><li>115</li></ul>
- What language is usually used in a web browser to make a web page dynamic?
Answer
JavaScript