HTML/CSS Study Guide
What extension is used when a style sheet is saved as a separate file?
.css
Which tag tells the browser that the document file contains HyperText Markup Language?
.html
Write the proper code for a comment in a CSS file?
/* comment */
Which tag tells the browser that the document file contains HyperText Markup Language?
<HTML>
Give an example of a valid e-mail link?
<a href="mailto:[email protected]">
Write the HTML that allows you to open a link in a new tab/browser window?
<a href="url" target="_blank">
Which of the following is a valid HTML hyperlink?
<a href="www.example.com">Example</a>
What is the correct HTML tag for inserting a line break?
<br>
After a CSS rule is defined, what HTML tag is the rule applied to when creating a CSS page layout?
<div>
What are two HTML tags that can be used to make a text bold?
<em> and <b>
What does CSS stand for?
Cascading Style Sheets
Most web pages are created using a markup language called
HTML (Hyper Text Markup Language)
What does HTML stand for?
Hypertext Markup Language
Which application is used to view HTML documents that have been published to a web server?
Web Browser
What type of list is a set of items where each item is equally important?
a bulleted list; <ul>
A set of declarations that can be applied to different tags is called a
a class
Which CSS property is used to change the background color?
background-color
How do you display a border like this: The top border = 15 pixels The bottom border = 2 pixels The left border = 10 pixels The right border = 1pixel?
border-width: 15px 1px 2px 10px;
Which CSS property is used to change the text color of an element?
color
Give an example of correct CSS syntax?
example { font-size:12px; background: img/exampleimg.jpg; background-color: blue; }
Give an example of a valid style sheet?
example.css
Which property is used to change the font of an element?
font-family font
Which CSS property controls the text size?
font-size
Write the appropriate CSS to make the text bold?
font-weight: bold;
How do you add a background color for all <h1> elements?
h1{background-color: #000000;}
Which CSS property is used to change the left margin of an element?
margin-left
What is the proper HTML to create a numbered list?
ordered list;<ol>
What is the correct CSS syntax for making all the <p> elements bold?
p{ font-weight: bold; }
Style sheets cascade, which means
rules from one style sheet can be applied in addition to those in another style sheet
What should a designer consider when choosing colors for a web site? How they will show up on other monitors.
216 web safe colors high contrast
What heading tag has the largest font size?
<h1>
What is the correct HTML tag for the largest heading?
<h1>
The link to an external style sheet should appear in the of an HTML document?
<head> section
What are the four structure tags?
<html> <head> <title> <body>
What is the correct HTML for inserting an image?
<img src= "image.gif" alt="MyImage">
What is the correct HTML for making a text input field?
<input type="text">
What is the correct HTML to link an external style sheet named default.css?
<link type="text/css" rel="stylesheet" href="default.css">
Which HTML tag is used to define an internal style sheet?
<style>
What modifies an HTML element and is comprised of a selector and declarations?
a rule
How do you display hyperlinks without an underline?
a { text-decoration: none; }