NEW
Font size
WorksheetsMDEXM WD
Total questions: 60
Worksheet time: 3600secs
What does CSS stand for?
Computer Style Sheets
Cascading Style Sheets
Colorful Style Sheets
Creative Style Sheets
How many ways can CSS be added to HTML documents?
1
2
3
4
Which CSS method is used to apply a unique style to a single HTML element?
External CSS
Internal CSS
Inline CSS
Embedded CSS
What property defines the text color to be used in CSS?
font-family
color
background-color
font-size
Which attribute of the element is the most important for defining a hyperlink?
href
rel
target
link text
What does the target attribute of a link specify?
Link's behavior
Link's destination
Link's style
Link's color
How can you add a background image to an HTML element?
Using the background-color property
Using the background-image property
Using the text-align property
Using the font-size property
What property is used to define a border around an HTML element?
background
border
padding
margin
How can you avoid having double borders in a table?
Set border property to none
Set border property to 0
Set border-collapse property to collapse
Set border-collapse property to separate
HTML Elements
The basic building blocks of web pages, describe each piece of content on a web page
Used to describe the main heading of the page
Used to introduce body text on a page, like in an article
Used to create links
CSS Rule
The element inside of which each item in a list is placed
Allows certain elements to be styled different ways
Uses rules to style HTML elements. Starts with a selector
These can be used to select the color of an object
Which is the correct CSS syntax?
body {color: yellow;}
body:color=yellow;
{body:color= yellow;}
{body;color: yellow;}
Select the rule set to make all the text in your web page blue and centered.
p {
color: blue;
}
body {
text-align: left;
color: blue;
}
p {
text-align: center;
color: blue;
}
body {
text-align: center;
color: blue;
}
How can you change the width and height of elements in CSS?
Using the `width` and `height` properties
Using the `color` property
Using the `text-align` property
Using the `margin` property
Which CSS property allows you to control the space inside an element, between its content and its border?
margin
padding
border
width
How can you make a background image cover the entire container in CSS?
background-size: contain;
background-size: cover;
background-size: 100%;
background-size: auto;
What is the purpose of the <head> tag in HTML?
The purpose of the
tag in HTML is to define the navigation section of the HTML document.The purpose of the
tag in HTML is to define the footer section of the HTML document.The purpose of the
tag in HTML is to define the head section of the HTML document.The purpose of the
tag in HTML is to define the body section of the HTML document.Extension name used for creating external CSS file.
css
Html
htm
scc
What is the correct CSS syntax for adding a background color?
color-background: red;
background-color: blue;
background-color: green;
background-color: red;
What is the correct CSS syntax for changing the font color?
font-color: value;
color-value: value;
text-color: value;
color: value;
Which CSS selector selects all elements with the class name 'example'?
.example
#example
example
*example
What is the proper code to insert an image named "tevitol.jpg"?
<img src="tevitol" width="104" height="142">
<img="tevitol.jpg" width="104" height="142">
<img src="tevitol.jpg" width="104" height="142">
<img ="tevitol" width="104" height"142">
What does the term "Digital Footprint" refer to?
A) The exclusive legal right to print, publish, perform, film, or record material
B) The text and images on a website
C) The collected information about an individual across multiple websites on the Internet
D) A title or summary for a document or section of a document
What does the Font Family Property in CSS set?
The horizontal alignment of text in an element
The size of a font
The font value of an HTML element's text
The color of text
Which CSS property is used to define the width of all four sides of an element's border?
Padding Width Property
Margin Width Property
Border Width Property
Outline Width Property
What are the possible values for the Border Style Property in CSS?
solid, dashed, dotted, double, groove, inset, outset
block, inline, flex, grid
none, static, relative, absolute
The correct syntax to connect an external style sheet to a Web page
<style rel="stylesheet" type="text/css" href="file.css" />
<link rel="stylesheet" type="text/css" href="file.css" />
<attach rel="stylesheet" type="text/css" href="file.css" />
<a rel="stylesheet" type="text/css" href="file.css" />
You are trying to apply the same style to several different elements in a block, with line breaks before and after. Which tag should you use?
<span>
<div>
<style>
<src>
What is the area between the content and the border?
padding
margin
height
width
What is the outermost area of the CSS Box Model?
margin
padding
border
width/height
Which of the following is NOT a border property?
type
style
width
color
p {color: red;}
How can you add styles to an element when the mouse is hovered on it?
:hover
:focus
::hover
:active
Which CSS selector selects all elements with a specific class?
#class
.class
class
%class%
How can you avoid having double borders in a table in HTML?
Set border-collapse property to initial
Set border-collapse property to separate
Set border-collapse property to collapse
Set border-collapse property to inherit
Which CSS method is used to apply a unique style to a single HTML element?
Embedded CSS
Inline CSS
Internal CSS
External CSS
Which is the correct form for html style attributes?
value="property:style"
style="value:property"
style="property:value"
None of the above
Which code below is correct for a hyperlink
<a>
"https://google.com"
Click Me
</a>
<a>Click Me>
"https://google.com"
</a>
<a herf="https://google.com">
Click Me
</a>
<a href="https://google.com">
Click Me
</a>
What is the correct syntax for defining a hyperlink in HTML?
<a href=”url”> Link text </a>
<a href=”url”> Link text <a>
<a=”url”> Link text <a>
<ref=”url”> Link text <a>
Which element divides a table into rows?
<table>
<th>
<tr>
<td>
<style>
Which attribute allows the user to span a cell along a horizontal row?
colspan
rowspan
border
background
th
one cell in a row of headers
one data cell
one row of headers
one column of headers
B has the dimension 300 * 80.
What does 300 refer to?
width
height
B has the dimension 300 * 80.
What does 80 refer to?
width
height
What should be the HTML code for the 3rd row?
C, H, M
C, H
What should be the HTML code for the 2nd row?
B
B, M
Which of the following is correct?
<td colspan=2> A </td>
<td rowspan=2> A </td>
Which of the following is correct?
<td colspan=6> M </td>
<td rowspan=6> M </td>
Which of the following is correct?
<td width=200 height=100> K <td>
<td width=100 height=200> K <td>
Which of the following is correct?
td is enclosed within tr
tr is enclosed within td
Which attribute is used to specify the width of the borders around table cells?
D. cellspacing
C. cellpadding
B. width
A. border
Which attribute is used to add space within each cell, separating the cell content from the cell border?
A. cellpadding
B. cellspacing
C. align
D. bgcolor
Which attribute is used to merge cells horizontally or vertically in an HTML table?
A. colspan
B. rowspan
C. headers
D. scope
Which CSS property is used to change the text color of an element?
text-color
color
font-color
