CIS 2336 Test 1
How do you insert a comment in a CSS file?
/* this is a comment */
Choose the correct HTML tag for the largest heading
<h1>
Choose the correct HTML tag to make a text italic
<i>
What is the correct HTML for inserting an image?
<img src="image.gif" alt="MyImage">
What is the correct HTML for making a checkbox?
<input type="checkbox">
What is the correct HTML for making a text input field?
<input type="text">
What is the correct HTML for referring to an external style sheet?
<link rel="stylesheet" type="text/css" href="mystyle.css">
How can you make a numbered list?
<ol>
What is the correct HTML for making a drop-down list?
<select>
Which HTML tag is used to define an internal style sheet?
<style>
Which of these tags are all <table> tags?
<table><tr><td>
What is the correct HTML for making a text area?
<textarea>
How can you make a bulleted list?
<ul>
What does HTML stand for?
Hyper Text Markup Language
Where in an HTML document is the correct place to refer to an external style sheet?
In the <head> section
In HTML, inline elements are normally displayed without starting a new line.
True
Which property is used to change the background color?
background-color
Which is the correct CSS syntax?
body {color: black;}
How do you display a border like this: The top border = 10 pixels The bottom border = 5 pixels The left border = 20 pixels The right border = 1pixel?
border-width:10px 1px 5px 20px;
What is the correct CSS syntax for making all the <p> elements bold?
p {font-weight:bold;}
Which HTML attribute is used to define inline styles?
style
How do you make each word in a text start with a capital letter?
text-transform:capitalize
What is the correct HTML for creating a hyperlink?
<a href="http://www.w3schools.com">W3Schools</a>
How can you create an e-mail link?
<a href="mailto:xxx@yyy">
How can you open a link in a new tab/browser window?
<a href="url" target="_blank">
Choose the correct HTML tag to make a text bold
<b>
What is the correct HTML for inserting a background image?
<body background="background.gif">
What is the preferred way for adding a background color in HTML?
<body style="background-color:yellow;">
What is the correct HTML tag for inserting a line break?
<br>
Which property is used to change the font of an element?
Both font-family and font can be used
What does CSS stand for?
Cascading Style Sheet
When using the padding property; are you allowed to use negative values?
No
Who is making the Web standards?
The World Wide Web Consortium
How do you display hyperlinks without an underline?
a {text-decoration:none;}
Which CSS property is used to change the text color of an element?
color
Which CSS property controls the text size?
font-size
How do you make the text bold?
font-weight:bold;
How do you add a background color for all <h1> elements?
h1 {background-color:#FFFFFF;}
How do you make a list that lists its items with squares?
list-style-type: square;
Which property is used to change the left margin of an element?
margin-left