NEW
Font size
WorksheetsWeb Design Study Guide 1
Total questions: 22
Worksheet time: 11mins
What is the correct order of basic HTML structure?
<head> <title> <body>
<html> <head> <body>
<body> <head> <html>
<title> <html> <body>
How do you add an image to an HTML page?
<img src="image.jpg">
picture>image.jpg</picture>
<image>image.jpg</image>
<div>image.jpg</div>
Which of the following is NOT a part of the CSS Box Model?
Margin
Border
Padding
Content
What attribute specifies a unique identifier for an HTML element?
class
id
style
href
Which HTML tag is used to define an unordered list?
ul
ol
li
dl
What HTML tag defines a table cell?
td
tr
th
table
Which of the following is NOT a type of CSS?
External CSS
Inline CSS
Dynamic CSS
Internal CSS
Which CSS property is used to position an element relative to its normal position?
position: absolute;
position: relative;
position: fixed;
position: static;
How do you add a 2px solid black border to an element?
none
border-width: 2px; border-color: black;
border-style: solid; border-width: 2px; border-color: black;
border: 2px solid black;
What is the difference between a class and an ID in CSS?
Classes can be applied to multiple elements, IDs can only be applied to one.
Classes are used for styling, IDs are used for scripting.
IDs can be applied to multiple elements, classes can only be applied to one.
IDs are used for styling, classes are used for scripting.
How do you apply a CSS class named "myClass" to an HTML element?
<p style="myClass">
<p class="myClass">
<p id="myClass">
<p myClass>
What is a <div> element used for in HTML?
To define a table row
To define a table header
To define a division or section in an HTML document
To define a hyperlink
Which CSS property is used to set the background color of an element?
color
background
background-color
bgcolor
Which CSS pseudo-class is used to style an element when the mouse hovers over it?
hover
active
focus
link
How do you link an external CSS stylesheet to an HTML document?
<link rel="stylesheet" href="style.css">
<style src="style.css"></style>
<script src="style.css"></script>
<css>style.css</css>
How do you create a link to another webpage?
<a href="url">Link Text</a>
<link href="url">Link Text</link>
<url>Link Text</url>
<a url="url">Link Text</a>
Where is the <title> tag placed in an HTML document?
Inside the <body> tag
Before the <html> tag
Inside the <head> tag
none
What does HTML stand for?
Hyperlinks and Text Markup Language
Hyper Text Markup Language
Home Tool Markup Language
Hyper Text Markdown Language
What does CSS stand for?
Creative Style Sheets
Colorful Style Sheets
Computer Style Sheets
Cascading Style Sheets
What is an iframe?
A type of image format
A way to add JavaScript to a webpage
An inline frame that displays web content within a web page
A type of CSS layout
Which CSS property controls the space around an element's content?
padding
margin
border
width
How do you center an element horizontally using CSS?
margin: auto;
text-align: center;
display: flex; justify-content: center;
All of the above
Sources and related content
