Font size
WorksheetsHTML & CSS
Total questions: 60
Worksheet time: 1hrs 7mins
<p ---------="About W3Schools">W3Schools is a web developer's site.</p>
title
class
head
<p>WWF's mission is to stop the ------degradation-------- of our planet's natural environment.</p>
ADD EXTRA IMPORTANCE TO DEGRADATION
<strong>
</strong>
<mark>
</mark>
<html>
<body style="------------:yellow;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Use CSS to set the background color of the document to yellow.
bg-color
background-color
background-colour
Add the correct HTML attribute to display the"smiley.png" image
<img=----------------->
src="smiley.png"
source="smiley.png"
image="smiley.png"
alt="smiley.png"
Add a line break in the middle of the paragraph:
<p>My Bonnie lies----------over the ocean.</p>
<img>
<br>
<hr>
<html>
Set the top padding of <h1> element to 30px;
<style>
h1 {
------ : 30px;
}
</style>
padding-left
padding-top
padding-bottom
padding-right
In CSS rem stands for
1rem equals the font size of the html element
1rem equals the font color of the html element
1rem equals the font-family of the html element
HTML is what type of language?
Markup language
Scripting language
Programming language
Who is known as the father of World Wide Web (WWW)?
Tim Thompson
Tim berners Lee
Charles Darwin
Which tag is used to display pre-formatted text?
<pre>......</pre>
<p>....</p>
<prefor>......</prefor>
How to embed audio files in HTML?
<embed src = “audio.mp3” width = “50” height = “10”>
<embed sound = “audio.mp3” width = “50” height = “10”>
<embed audio = “audio.mp3” width = “50” height = “10”>
<embed music = “audio.mp3” width = “50” height = “10”>
What is iframe used for in HTML?
To display a web page within a web page.
To display a web page with an animation effect.
To display a web page without a browser.
All the answers are true
The nav bar defines the_______
nav link
Navigation link
In the form below, add an input field with the type "button" and the value "OK".
<form>
<------------->
</form>
<input type="button" value=ok>
<input type="button" value="OK">
Use CSS to display an iframe with no borders.
<iframe src="https://www.w3schools.com"
style="--------">
</iframe>
border: none;
Border;None:
Use the correct HTML attribute to display uppercase roman numbers.
<ol--------->
<li>Coffee</li>
<li>Tea</li>
li>Milk</li>
</ol>
type="A"
type="I"
Type="i"
Type="a"
How to align text in HTML?
text-align: center;
align-text: left;
What are void elements in HTML?
<img>
<br>
<hr>
All the above
Disable the input field below.
<form action="/action_page.php">
<input type="text"------------>
</form>
corrected
disabled
checked
Highlight the word "FUN" in the text below.
<p>HTML is ------FUN------ to learn!</p>
<highlight.
</highlight>
<mark>
</mark>
Add extra importance to the word "degradation" in the paragraph below.
<p>WWF's mission is to stop the --------degradation ---------------of our planet's natural environment.</p>
<strong>
</strong>
<b>
</b>
Use an HTML element to add quotation marks around the letters "cool".
<p>I am so -----cool.-----</p>
<Q>
</Q>
<q>
</q>
Use the correct HTML attribute, and CSS, to set the color of the paragraph to "blue".
<p ="----- ;-------">This is a paragraph.</p>
style="color:blue;"
style="colour:blue;"
Set the max numbers of characters allowed in the input field to 40.
<form action="/action_page.php">
<input type="text"------>
</form>
max length=40
maximum length=40
Add a list item with the text "Coffee" inside the <ul>
<ul>
----Coffee---
</ul>
<li>
</li>
<LI>
</LI>
Change the border size of the body or image
border-style
border-width
border-color
width
What css rule creates a flexbox container?
flex: box
display: flexbox
flex: container
display: flex
What are the two options for flex-direction?
row
vertical
column
horizontal
Which css value forces flex items onto a new line once the width of the container has been filled?
newline
wrap
continue
float
Which flexbox properties aligns items on the same axis as the flex-direction?
justify-content
align-items
align-content
justify-items
The CSS overflow property controls what happens to content that is too big to fit into an area.
True
False
Which of the following values does not belong to the overflow property?
visible
hidden
scroll
invisible
p {color: red;}
In CSS, colors can also be specified using RGB values, HEX values, HSL values, RGBA values, and HSLA values.
True
False
