Font size
WorksheetsWS301 - Quiz
Total questions: 70
Worksheet time: 35mins
The raw text, images, and other elements included in a web page.
Website Content
Website Structure
Website Tags
Website
<!Doctype html> creates an element known as the DOCTYPE ______, which lets user agents know that the document contents are written in HTML.
property
declaration
attribute
element
Choose the correct HTML element to define emphasized text.
<emphasize>
<em>
<italic>
<e>
HTML is what type of language ?
Scripting Language
Markup Language
Network Protocol
Programming Language
Name an element which doesn't have a closing tag.
<img>
<body>
<p>
<head>
The purpose of different pieces of content in a web page, used to help the computer determine how that content should be displayed
Website structure
Website content
Intellectual property
Copyright
To make your site available to anyone with access to the web, you need to copy the files to a web _______, which is a computer optimized to store and share the documents and that has an extremely high-speed Internet connection.
portal
server
publisher
client
What is the correct HTML element for inserting a line break?
<break>
<endline>
<br>
<newline>
Which heading HTML elements will create the smallest font size on a website?
<h1>name</h1>
<h2>name</h2>
<h7>name</h7>
<h5>name</h5>
The content of the web (such as your pictures, text, links) will show up here.
Head
Body
Style
Footer
Which tag is used to create a hyperlink?
<a>
<href>
<src>
<b>
How do you center text?
text-align: true;
text-align: center; true;
text-align: center;
text: align center;
What is will the highlighted tag do?
<p>My favourite colour is blue<br>I support Southend United.
</p>
it will make the text bold
it add one space between the words
it will emphasize the blue color
it will place the text on another line
Which code will make your background red?
<body style=background-color:red;>
<body style="background-color:yellow;">
<body style="background-color:red;">
<body colormybg="background-color:red;">
Which word is not used in HTML structure?
footer
body
head
arm
Which is NOT a web browser?
Chrome
Yahoo
Firefix
Safari
HTML Language uses
Tabs
Tags
Punctuation
Quotations
What does HTML stands for?
How To Make Lumpia
Hyperlink Markup Language
Hypertext Markdown Language
Hypertext Markup Language
Who is making the Web standards?
Mozilla
The World Wide Web Consortium
Bill Gates
These are the programs which allow editing in a written text, hence to create a web page we need to write our code in these programs.
Web Browsers
HTML
Text Editors
IDE's
In HTML this provides extra information about the element, and it is applied within the start tag.
Tag
Syntax
Element
Attribute
Which of the following is the correct syntax of declaring an attribute.
<tag name attr_value= " attribute_name"> content </ tag name>
<tag name> attribute_name= " attr_value"</ tag name>
<tag name properties= " attr_value"> content </ tag name>
<tag name attribute_name= " attr_value"> content </ tag name>
In an HTML file, everything written within tags are termed as HTML ____________.
Elements
Tag
Syntax
properties
What is the difference between HTML and CSS?
CSS is one type of HTML
HTML gives a webpage structure. CSS provides styling.
CSS structures a webpage. HTML strictly provides styling.
There is no difference.
How can you make a numbered list?
<list>
<ol>
<dl>
<ul>
What does CSS stand for?
Computer Style Sheets
Cascading Styling Sheets
Control Style Sheets
Cascading Style Sheets
To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values?
Yes
No
Which HTML tag is used to define an internal style sheet?
style
css
script
head
An application of CSS where all CSS property is define in a separate .css file, and then include the file with HTML file using tag in section.
Inline CSS
Internal or Embedded CSS
External CSS
style
An application of CSS where all CSS property is define using <style> tag in <head> section.
Inline CSS
Internal or Embedded CSS
External CSS
Style css
It is used to specify a single or multiple class names for an HTML element.
HTML Attributes
HTML Class
HTML Elements
HTML Properties
It is used to specify the unique ID for an element of the HTML document. It allocates the unique identifier which is used by the CSS and the JavaScript for performing certain tasks.
ID Attribute
Class Attribute
Style Attribute
Value Attribute
in CSS declaration Identify No. 1
Declaration
Selector
Element
Attribute
in CSS declaration Identify No. 2
Declaration
Selector
Element
Property
in CSS declaration Identify No. 3
Declaration
Selector
Element
Value
in CSS declaration Identify No. 4
Declaration
Selector
Element
Value
How do you display a margin like this: top margin is 25, left margin is 100px, right margin is 50, bottom margin is 75px.
margin: 25px 50px 75px 100px;
margin: 50px 25px 75px 100px;
margin: 25px 100px 50px 75px;
margin: 25px 75px 50px 100px;
Which CSS property controls the text size?
text-size
text-color
font-size
font-style
How do you insert a comment in a CSS file?
*this is a comment ' this is a comment
/*this is a comment*/ /*this is a comment*/
//this is a comment// /this is a comment
/this is a comment // this is a comment
Which is the correct CSS syntax?
{body:color=black(body}
{body;color:black}
body:color=black
body {color: black}
To create a dotted border around the page
border-style
border-color
border-width
width
sets the color of words in a paragraph
h1 {
color: pink;
}
img {
color: pink;
}
p {
color: pink;
}
body {
color: pink;
}
What does a class do?
adds color to words
adds style to a whole page
adds style to specific elements
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;
}
body {
text-align: center;
color: blue;
}
p {
text-align: center;
color: blue;
}
Which rule set would change the font size to 24?
font-size: 24
size: 24;
font-size: 24;
font size: 24;
What is the correct syntax to change the background color with css?
background-color: purple;
background-color = "purple";
backgroundcolor=orange
change-background-color: purple
Where should you put the link tag to connect your CSS and HTML file?
Between the <head> </head> in HTML
Between the <body> </body> in HTML
Between the <title> </title> in HTML
None of the above.
Which of the following is the correct CSS link tag?
<link rel="styles" href="stylesheet.css">
<link href="stylesheet">
<link rel="stylesheet" src="styles.css">
<link rel="stylesheet" src="styles.css">
Which is the value in this CSS?
p {color: red;}
p
red
color
{}
If you want to have more than one declaration in a CSS rule, what character separates them?
comma ,
semi-colon ;
equals =
colon :
What is the proper code to insert an image named "frog.jpg"?
<img src="frog" width="104" height="142">
<img src="frog" width="104" height="142">
<img src="frog" width="104" height="142">
<img src="frog" width="104" height="142">
What symbol should you use to target an id in CSS?
.
id
#
+
What symbol should you use to target a class name in css?
.
#
()
class
TRUE OR FALSE: HTML is used to style web pages.
TRUE
FALSE
What is missing from this HTML skeleton?
<!DOCTYPE html>
<html>
<head></head>
<body>
</body>
</html>
<head></head>
<title></title>
<img></img>
<div></div>
What tag do you use to make a numbered list?
<list>
<ol>
<li>
<ul>
TRUE OR FALSE: All tags require a closing tag.
TRUE
FALSE
TRUE OR FALSE: HTML is used to add content to web pages.
TRUE
FALSE
What symbols go around the properties for each CSS selector?
< >
{ }
[ ]
( )
Which is the selector for a link?
a href { }
a { }
link { }
href { }
What is the difference between HTML and CSS?
CSS is one type of HTML
CSS structures a webpage. HTML strictly provides styling.
HTML gives a webpage structure. CSS provides styling.
There is no difference.
Which one is the correct syntax for CSS?
Provides the web browser with security information
Provides the web browser with security information
Provides the web browser with security information
Tells the web browser what language to expect
Where in the HTML document is the correct location to insert code to link to your external CSS?
In the <head> section
At the very end of the document
In the <body> section
At the very beginning of the document
Which item interprets the source code in a web document?
Web browser
HTML editor
HTML editor
Text editor
What is the difference between an HTML Tag and an HTML element?
An HTML Tag is case sensitive and an HTML element is not case sensitive.
An HTML Tag defines content and an HTML Element includes the opening and closing tags and everything in between.
An HTML Tag defines content and an HTML Element gives additional meaning and content.
An HTML Tag is always paired and an HTML element is an "empty" tag.
Any time you are creating a website or a single web page with links to other websites, it is helpful to map out the ______ between pages.
security links
title tags
keyboard shortcuts
relationships
It is important to test your code ___________.
in a variety of popular browsers
on multiple operating systems
Both A and B
Neither A nor B
Placing the elements in a website layout that's functional, usable, and ideally, aesthetically pleasing is often the job of a __________.
software engineer
graphic engineer
software designer
graphic designer
A web document must have which of the following tags?(multiple choice qn)
<html>
<body>
<p>
<img>
<head>
A tag pair assigns meaning to a web page ______, which is a specific component of the page, such as a paragraph or a heading.
element
attribute
object
property
