NEW
Font size
WorksheetsHTML, CSS & JS
Total questions: 25
Worksheet time: 13mins
1.Which of the following is the correct tag to create a text box?
<input> text </input>
<text>
<input = “text”>
<input type = “text”>
2.What tag represents a line break?
<br>
<break>
<space>
<enter>
Which of the following is the correct tag to create a submit button?
<input type="submit"> Submit </button>
<button type="submit"> Submit </button>
<button type=Submit> “submit” </button>
<button type=submit> Submit </button>
In what attribute of the <form> tag is the form handler stated?
method
server
action
type
Within what tags is the JavaScript code stated?
<script> tag
<javascript> tag
<jscript> tag
A paragraph is defined in HTML code.
<p id=“display”> </p>
What is the JavaScript code to change this paragraph?
document.getElementById(“p").innerHTML = 'Hello World!’;
document.getElementById("display").innerHTML = 'Hello World!’;
display.innerHTML= 'Hello World!’;
alert('Hello World!');
What is the correct syntax to display a message in an alert box?
alert(‘Hello World!’);
alertbox(‘Hello World!’);
msgprompt(‘Hello World!’);
display(‘Hello World!’);
How is a function created in JavaScript?
function= function_name( ) { ..}
function: function_name( ) { ..}
function function_name( ) { ..}
Which of the following represents the correct form of a conditional statement?
If (a==10) then
If (a=10)
If (a=10) then
If (a==10)
A paragraph is defined in HTML code.
<p id=“display”> </p>
What is the JavaScript code to style this paragraph?
document.getElementById(“display").style.color=“green";
document.getElementById("display").innerHTML = ‘green’;
document.getElementById(“p").style.color=“green";
document.getElementById("display").innerHTML = ‘style: green’;
Which of the following HTML tags represents the largest header?
<head>
<h1>
<h2>
<h3>
Within which of the following HTML tags is the text that appears on the tab or window heading area specified?
<head>
<title>
<a>
<div>
In which of the following methodology, is the CSS code specified within the ‘head’ tag?
Inline CSS
Internal CSS
External CSS
What tag is used to link an HTML code to a CSS code that is stored in a separate file?
<a> tag
<link> tag
<style> tag
What tag is used to specify CSS code in internal CSS methodology?
<a> tag
<link> tag
<style> tag
What is the correct code to specify background colour of an element?
<p style=“background-color:red;”>
<background>red</background>
<p bg=“red”>
What is the correct syntax to define a hyperlink?
<a href=“location">link text</a>
<a url=“location">link text</a>
<a > location</a>
Which of the following represents a table element only?
<table> <body> < thead>
<table> <row> <element>
<table> <column> <element>
<table> <tr> <td>
What is the correct syntax to insert an image?
<img src=“location” alt=“alternate text” >
<img href=“location” alt=“alternate text” >
<img src=“location”, “alternate text” >
<img src=“location”, alt=“alternate text” >
What HTML tag is used to create a bulleted list?
<ol>
<ul>
<list>
<li>
In which section is the external CSS file referred to?
<head>
<body>
<title>
end of HTML file
What is correct inline CSS code?
<h1 style=“color:pink”; font-family:“arial”>
<h1 style=“color=pink”: font-family=“arial”>
<h1 “color=pink” and font-family=“arial”>
<h1 “color:pink”; font-family:“arial”>
What HTML tag is used to specify an element of a numbered list?
<ol>
<ul>
<list>
<li>
What is correct internal CSS code?
<p style=“color:pink”; font-family:“arial”>
p {color: pink; font-family: arial}
p {color=pink; font-family= arial}
<p “color: pink; font-family: arial”>
Which of the following symbols is used to define a class?
Hash (#) symbol
Period (.) symbol
Defined within curly brackets
