Font size
WorksheetsHTML,CSS
Total questions: 50
Worksheet time: 25mins
How is document type initialized in HTML5.?
</DOCTYPE HTML>
</DOCTYPE>
<!DOCTYPE HTML>
</DOCTYPE html>
How many heading tags are there in HTML5?
2
4
6
8
Which of the following attributes is used to add link to any element?
Src
Link
Href
Newref
Which of the following is the correct way of creating an hyperlink in HTML?
<a>www.geeksforgeeks.org <Geeksforgeeks /a>
<a href=“www.geeksforgeeks.org” Geeksforgeeks /a>
<a href= “www.geeksforgeeks.org”>Geeksforgeeks
</a>
<a link=“www.geeksforgeeks.org” Geeksforgeeks> </a>
Which of the following is the correct way to add background color in HTML?
<body color = “green”>
<body bg-color = “green”>
<body style = “background-color=green”>
<body style = “background-color: green;”>
Which among the following is correct HTML code for making a checkbox?
<checkbox>
<input type="checkbox">
<check>
<input type="check">
1) CSS stands for -
Color style sheets
Color and style sheets
Cascading style sheets
None of the above
Which of the following is the correct syntax for referring the external style sheet?
<style src = example.css>
<style src = "example.css" >
<stylesheet> example.css </stylesheet>
<link rel="stylesheet" type="text/css" href="example.css">
The property in CSS used to change the background color of an element
bgcolor
color
background-color
All of the above
Are the negative values allowed in padding property?
Yes
no
May be
12) Which of the following property is used as the shorthand property of margin properties?
margin-left
margin-right
margin
none of the above
Which of the following is the correct syntax to select all paragraph elements in a div element?
div p
p
div#p
div ~ p
The CSS property used to control the element's font-size is -
text-size
font-size
text-style
none of the above
Choose the correct HTML element for the largest heading:
<h6>
<h>
<largest>
none of the above
What is the correct HTML element for inserting new line in the paragraph?
<line>
<break>
<br>
all of the above
What is the correct HTML for adding a background to the page?
<body style='background-color=#000000'>
<body style='background-image=url()'>
<body style='background-color=black'>
all the above
Set the size of the image to 250 pixels wide and 400 pixels tall. (choose two answer)
<img src="apple.jpg" width="250px" height="400px">
<img src="apple.jpg" style=''width:250px ; height:400px">
<img src="apple.jpg" width :"250px" height : "400px">
<img src="apple.jpg" size='250 * 400 px>
Which of these elements are all <table> elements?
<table><tr><td>
<table><td><tr>
<table><tr></tr><td>
<table></table>
Inline elements are normally displayed without starting a new line.
True
False
block elements are normally displayed without starting a new line.
True
False
HTML uses
User defined tags
Pre-specified tags
Fixed tags defined by the language
Tags only for linking
How can you make a list with numbers?
<dl>
<ol>
<list>
<ul>
which attribute use to define the link address ?
link
href
hrf
herf
Which HTML element defines the head of a document?
title
head
<meta>
<hd>
The content of the web (such as your pictures, text, links) will show up here.
Head
body
style
folder
The tag will not show up on your webpage but at the top of a browser.
title
body
<br>
<table>
Which of the following is a font property?
Color
size
family
all the above
What is the purpose of HTML
the structure of the web page
the style of the page
all dynamic web site
all of the above
Multimedia can be embedded in an HTML document.
True
False
may be
Google Chrome is an example of a what?
website
browser
url
meta
Which language is used to enhance a webpage, e.g. change background colour?
HTML
CSS
JavaScript
SQL
Change the border size of the body or image
border-style
border-width
border-color
width
sets the element to one side of the page
float
height
alignment
position
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;
}
What will this rule set create?
h1 {
text-decoration: underline overline dotted red;
}
red waves under the heading
red dots over and under the heading
red waves over and under the heading
red dots over the heading
which has the highest priority in this case
<link href='style.css' rel='stylesheet>
<style>
body
{
background:pink;
}
internal style
external style
which has the highest priority in this case
<style>
body
{
background:pink;
}
<link href='style.css' rel='stylesheet>
internal style
external style
Which item refers to the start tag, the end tag and everything in between?
HTML Element
HTML Tag
HTML Attribute
style
Which tag defines the visible content of a web document?
<head>
<meta>
<title>
<body>
_____is a text file that contains CSS formatting instructions to define the font, color and position of elements used on any markup page(s) to which you attach the style sheet.
<DOCTYPE!>
An external CSS file, or style sheet
<main>
HTML
Name an element which doesn't have a closing tag.
<img>
<head>
<body>
<p>
If you want to have more than one property for a CSS selector, what character separates them?
comma
semi-colon
colon
dash
Which is correct CSS syntax?
{ body; color=black;}
body: color= black
body {color:black;}
(body color is black)
The code for the comment tag in CSS is
<!-- comment -->
<!-- comment >
/* comment /*
/* comment */
What unit of measurement does CSS use for size?
px
%
em
All work
which has the highest priority
inline style
id in in internal
id in external
selector in external
What symbol should you use to target a class name in css?
.
#
selector
class
choose the correct syntax for all types css
style=background:black;
color:white
style="background:black;
color:white"
style="background:black,
color:white"
<style>
background:black,
color:white
<style>
Style tag will come inside head for
inline
internal
extranl
none of them
