NEW
Font size
WorksheetsIntermediate level
Total questions: 10
Worksheet time: 5mins
How can we add a multiline comment in javascript?
//
/* */
*/ /
**//
How can we select an element with a specific ID in CSS
^
.
#
None of the above
Which tag is used to create internal javascript?
<script>
<link>
<src>
<html>
What is the correct JavaScript syntax to change the content of the HTML element below?
<p id="demo">This is a demonstration.</p>
document.getElementById('p').innerHTML = 'Hello World!';
document.getElementById('demo').innerHTML = 'Hello World!';
document.getElement('demo').innerHTML = 'Hello World!';
#demo.innerHTML("Hello World";
Is javascript a case-sensitive language?
True
False
In the below code snippet, in what order will the margins be added?
p{
margin:25px 50px 75px 100px;
}
top,right,bottom,left
top,left,bottom,right
top,bottom,right,left
right,left,top,bottom
How do you write "Hello world" in an alert box?
msg("hello world");
msgbox("Hello World");
alertbox("Hello world");
alert("Hello World");
Which type of CSS is used in the below code?
<p style="border:2px solid red;">
Internal CSS
External CSS
Inline CSS
None of the above
What will be the output of the following CSS code snippet?
h1{
color: "green";
}
Nothing happen
Error occurs
heading becomes dark-green
heading becomes green
What type of element <span> is?
Block level
Inline
None
