NEW
Font size
WorksheetsHTML,CSS,SCRIPT QUIZZ
Total questions: 18
Worksheet time: 4mins
HTML stands for -
HighText Machine Language
None of these
HyperText Markup Language
HyperText and links Markup Language
The correct sequence of HTML tags for starting a webpage is -
Head, Title, HTML, body
HTML, Body, Title, Head
HTML, Head, Title, Body
HTML, Head, Title, Body
What does CSS stand for?
Cascading Style Sheet
Computer Style Sheet
Colorful Style Sheet
Creative Style Sheet
Which tag is used to define an image in HTML?
<img>
<image>
<picture>
<imgsrc>
What is the correct way to comment out code in HTML?
<!-- This is a comment -->
// This is a comment //
/* This is a comment */
** This is a comment **
How to create a hyperlink in HTML?
<a> www.javatpoint.com <javaTpoint.com /a>
<a link = "www.javatpoint.com"> javaTpoint.com </a>
<a url = "www.javatpoint.com" javaTpoint.com /a>
<a href = "www.javatpoint.com"> javaTpoint.com </a>
What is the correct way to create a list in HTML?
<list>
<ul>
<ol>
<li>
Which tag is used to create a line break in HTML?
<br>
<lb>
<break>
<line>
What does HTML5 stand for?
HyperText Markup Language 5
HighTech Markup Language 5
Hyperlink and Text Markup Language 5
Highly Typed Markup Language 5
Which type of JavaScript language is ___
Object-Oriented
Assembly-language
High-level
Object-Based
Which of the following is the correct output for the following JavaScript code:
varx=5,y=1
var obj ={ x:10}
with(obj)
{
alert(y)
}
1
Error
10
5
5.
Which of the following methods can be used to display data in some form using Javascript?
console.log()
document.write()
window.alert()
All of the above
What will be the output of the following code snippet?
<script type="text/javascript" language="javascript"> var a = "Scaler"; var result = a.substring(2, 4); document.write(result); </script>
al
ale
cal
caler
What will be the output of the following code snippet?
<script type="text/javascript" language="javascript"> var x=12; var y=8; var res=eval("x+y"); document.write(res); </script>
20
x+y
128
None of the above
What will be the output of the following code snippet?
(function(){ setTimeout(()=> console.log(1),2000); console.log(2); setTimeout(()=> console.log(3),0); console.log(4); })();
1 2 3 4
2 3 4 1
4 3 2 1
2 4 3 1
What is the correct way to include an external CSS file in HTML?
<link rel="stylesheet" type="text/css" href="styles.css">
<style src="styles.css">
<css>styles.css</css>
<external>styles.css</external>
What is the purpose of the 'alt' attribute in an HTML image tag?
To specify the alignment of the image
To define the alternative text for the image
To set the border color of the image
To control the size of the image
Which tag is used to create a hyperlink in HTML?
<a href="http://www.example.com">Link</a>
<link>http://www.example.com</link>
<hyperlink>http://www.example.com</hyperlink>
<url>http://www.example.com</url>
