NEW
Font size
WorksheetsInternship Training Quiz
Total questions: 51
Worksheet time: 26mins
What does HTML stand for?
Next ❯
Home Tool Markup Language
Hyper Text Markup Language
Hyperlinks and Text Markup Language
Hyper Text Machine
Language
Who is making the Web standards?
Next ❯
Microsoft
Mozilla
The World Wide Web Consortium
What does CSS stand for?
Next ❯
Creative Style Systems
Colorful Style Sheets
Cascading Style Sheets
Computer Style Sheets
Which of the following is a JavaScript framework?
Next ❯
XML
React
HTML
CSS
What is the purpose of the <head> tag in HTML?
Next ❯
To display images
To create a footer for the page
To define the main content of the page
To include metadata and links to scripts and styles
Which of the following is a popular CSS preprocessor?
Next ❯
JavaScript
Sass
PHP
HTML5
What is the main purpose of JavaScript?
Next ❯
To style web pages
To structure web content
To add interactivity to web pages
To manage databases
Which HTML element is used to define an unordered list?
Next ❯
<li>
<list>
<ul>
<ol>
What is the correct HTML element for inserting a line break?
Next ❯
<lb>
<break>
<br>
<linebreak>
Which CSS property is used to change the text color of an element?
Next ❯
font-color
background-color
color
text-color
What is the purpose of the <body> tag in HTML?
Next ❯
To include scripts
To define the main content of the page
To set the title of the page
To include metadata
What is the purpose of the <title> tag in HTML?
Next ❯
To define the main content of the page
To set the title of the page displayed in the browser tab
To include scripts
To create a footer for the page
Which of the following is a popular JavaScript library for building user interfaces?
Next ❯
Angular
Bootstrap
Vue.js
jQuery
What does the <img> tag require to display an image?
Next ❯
src attribute
href attribute
alt attribute
title attribute
What is the purpose of the <div> tag in HTML?
Next ❯
To define a section in a document
To include images
To set the title of the page
To create a hyperlink
Which of the following is a valid way to include a JavaScript file in an HTML document?
Next ❯
<script src='file.js'></script>
<js src='file.js'></js>
<link href='file.js' rel='script'>
<import src='file.js'>
What does the <footer> tag represent in HTML?
Next ❯
The main content of the page
The navigation links
The bottom section of a page, typically containing copyright and contact information
The header of the page
What is the function of the <link> tag in HTML?
Next ❯
To include JavaScript files
To link to external stylesheets
To create hyperlinks
To define the main content of the page
Which HTML element is used to define a table?
Next ❯
<tbody>
<tab>
<tr>
<table>
What is the purpose of the <meta> tag in HTML?
Next ❯
To create a navigation menu
To define the main content of the page
To provide metadata about the HTML document
To include external scripts
What is the purpose of the <style> tag in HTML?
Next ❯
To set the title of the page
To define the main content of the page
To include CSS styles for the document
To create a navigation menu
Which HTML element is used to define a form?
Next ❯
<submit>
<input>
<form>
<fieldset>
What is the function of the <script> tag in HTML?
Next ❯
To create hyperlinks
To define the main content of the page
To include CSS styles
To include JavaScript code
What is the purpose of the <nav> tag in HTML?
Next ❯
To set the title of the page
To include external scripts
To define the main content of the page
To create a navigation menu
Which HTML element is used to define a section of a document?
Next ❯
<section>
<div>
<article>
<header>
What is the purpose of the <canvas> tag in HTML?
Next ❯
To include metadata
To define the main content of the page
To display images
To create a drawing area
What is the purpose of the <section> tag in HTML?
Next ❯
To set the title of the page
To define a thematic grouping of content
To create a footer for the page
To include external stylesheets
Which HTML element is used to define a hyperlink?
Next ❯
<url>
<href>
<a>
<link>
What is the function of the <aside> tag in HTML?
Next ❯
To include images
To define content that is related to the main content
To set the title of the page
To create a navigation menu
Which of the following is a valid CSS selector?
Next ❯
.className
#idName
elementName
All of the above
What is the purpose of the <footer> tag in HTML?
Next ❯
To represent the footer of a document or section
To include external scripts
To create a navigation menu
To define the main content of the page
Which of the following is a method to apply CSS styles to an HTML document?
Next ❯
Inline styles
Internal stylesheets
External stylesheets
All of the above
Choose the correct HTML element for the largest heading:
Next ❯
<h1>
<h6>
<heading>
<head>
What is the correct HTML for adding a background color?
Next ❯
<background>yellow</background>
<body bg="yellow">
<body style="background-color:yellow";>
Next ❯
none
What is the correct HTML for creating a hyperlink?
Next ❯
Which character is used to indicate an end tag?
Next ❯
*
^
/
<
How can you open a link in a new tab/browser window?
Next ❯
<a href="url" new>
<a href="url" target="_blank">
<a href="url" target="new">
none
What is the correct HTML for making a text input field?
Next ❯
<textfield>
<textinput type="text">
<input type="text">
<input type="textfield">
What is the correct HTML for inserting an image?
Next ❯
<img alt="MyImage">image.gif</img>
<img src="image.gif" alt="MyImage">
<image src="image.gif" alt="MyImage">
<img href="image.gif" alt="MyImage">
How do you write "Hello World" in an alert box?
Next ❯
msg("Hello World");
alertBox("Hello World");
alert("Hello World");
msgBox("Hello World");
How do you create a function in JavaScript?
Next ❯
function:myFunction()
function myFunction()
function = myFunction()
none
How do you call a function named "myFunction"?
Next ❯
call function
myFunction()
call myFunction()
none
How to write an IF statement for executing some code if "i" is NOT equal to 5?
Next ❯
if i =! 5
thenif i <> 5
if (i <> 5)
if (i != 5)
How does a WHILE loop start?
Next ❯
while i = 1 to 10
while (i <= 10)
while (i <= 10; i++)
botha &b
What is the correct way to write a JavaScript array?
Next ❯
var colors = (1:"red", 2:"green", 3:"blue")
var colors = ["red", "green", "blue"]
var colors = "red", "green", "blue"
var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
JavaScript is the same as Java.
Next ❯
False
True
How do you declare a JavaScript variable?
Next ❯
v carName;
var carName;
variable carName;
Which operator is used to assign a value to a variable?
Next ❯
*
-
=
x
Is JavaScript case-sensitive?
Next ❯
Yes
No
How do you display hyperlinks without an underline?
Next ❯
a {text-decoration:none;}
a {underline:none;}
a {text-decoration:no-underline;}
a {decoration:no-underline;}
How do you display a border like this:
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?
Next ❯
border-width:10px 5px 20px 1px;
border-width:10px 1px 5px 20px;
border-width:5px 20px 10px 1px;
border-width:10px 20px 5px 1px;
