Font size
WorksheetsHTML and CSS Mastery
Total questions: 40
Worksheet time: 20mins
What is the biggest heading tags?
(a)
What tags start and end a paragraph tag?
<p> </p>
</pa> </p>
<pa> </pa>
</p> <p>
What is the smallest heading tags?
(a)
What is the first tag that you put in a html document?
< >
**hint just type in the word portion
(a)
What is the last tag in an html document?
</html>
<html>
</body>>
</footer>
The ____ tag creates a paragraph.
<pr>
<p>
<para>
<par>
Which character is used to create an end or closing tag?
*
<
/
^
Specify an alternate text for the image.
The alternate text should say "Smiley".
Alternate text is useful when the image cannot be displayed, like when the page is read by a screen reader.
<img src="smiley.gif" alt="Smiley">
<img ="smiley.gif" alt="Smiley">
<img src="smiley.gif" alt:"Smiley">
<img src="smiley.gif" alt:Smiley>
Which is the correct HTML tag for creating an unordered list?
<ul>
<uline>
<u>
<under>
When coding an ordered or unordered list, each separate item in the list uses this tag:
<li></li>
<list></list>
<item></item>
The 7th grade students want to make a list of the winners of a race using numbers They would use which HTML tag?
<ul></ul>
<ol></ol>
<list></list>
What is the code for a style sheet?
style.css
style.html
style.ccs
style.ssc
The stylesheet is used to
code the css page.
link css to the html page.
add css to notepad++
link java script to the html page.
What is the proper CSS format for background color?
back-ground color:orange:
backgroundcolor-orange;
background:color:orange;
background-color:orange;
p {color: red;}
Code this using CSS:
A pink title thats aligned to the center.
H1 {color:pink;
text-align: center;}
h1 {color:pink;
text-align: center;}
li {color:pink;
text-align: center;}
h1 {color:pink;
textalign: center;}
Code this using CSS:
A paragraph with the font size of 35px and aligned to the right.
p {fontsize 35px
text-aligned:right;}
p {font-size: 38px;
text-aligned:right;}
h1 {font-size: 35px;
text-aligned:right;}
p {font-size: 35px;
text-aligned:right;}
What is the difference between HTML and CSS?
HTML codes the style of a webpage. CSS codes the structure of a webpage.
Cascading Style Sheets
HTML codes the structure of a webpage. CSS codes the style of a webpage.
Cascading Style
Systems
in CSS, what is the unit of measurement for font-size?
in
px
ft
mm
What CSS property is used align text?
font-center
text-align
font-size
color
What CSS property is used adjust the font size?
font-center
text-align
font-size
color
What CSS property is used to adjust the color?
font-center
text-align
font-size
color
Select all of the closing tags
<p>
</h1>
</li>
</ul>
<ol>
All of the webpage content goes in between the...
<head> </head>
<h1> </p>
<ol> </ol>
<body> </body>
This tag permits to establish of one section in an HTML document.
<style> </style>
<div></div>
.div
#div
Which is the correct (and most specific) CSS selector statement to change the text color of the first <li> element to red in the following code block.
.redtext { color: red; }
#redtext { color: red; }
li > redtext { color: red; }
redtext{color:red};
To create a dotted border around the page
border-style
border-width
border-color
width
sets the element to one side of the page
margin
width
float
height
sets the color of words in a paragraph
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
What does a class do?
adds color to words
adds style to specific elements
adds style to a whole page
adds a lot more work
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;
}
Which selector will change the font of the text?
font-size
text-align
font-famiy
text-decoration
This is a picture of a ____.
CSS Rule
HTML Rule
Tags
Coding
What symbol should you use to target a class names in css?
#
()
.
class
Kareb wants to begin a new line within a paragraph of text on a webpage. Which code should she use?
<li>
<h1>
<hr>
<br>
