Placement papers on HTML - Set 5

Placement papers on HTML - Set 5


1. How do you display hyperlinks without an underline?

a:link {text-decoration:no underline;}
a:link {underline:none;}
a:link {decoration:no underline;}
a:link {text-decoration:none;}
View Answer / Hide Answer

ANSWER: a:link {text-decoration:none;}




2. How do you insert a comment in CSS?

// Comment //
/*comment*/
/comment/
< -comment->
View Answer / Hide Answer

ANSWER: /*comment*/




3. Which is the correct CSS syntax?

#body {color: green;}
#{body;color:green}
#{body:color=green(body}
#body:color=green
View Answer / Hide Answer

ANSWER: #body {color: green;}




4. How do you change the left margin of an element?

indent:
text-indent
padding
margin-left:
View Answer / Hide Answer

ANSWER: margin-left:




5. What is the correct JavaScript syntax to write "Hello World"?

document.write("Hello World")
("Hello World")
echo("Hello World")
response.write("Hello World")
View Answer / Hide Answer

ANSWER: document.write("Hello World")




6. Inside which HTML element do we put the JavaScript?

< javascript>
< script>
< js>
< scripttype>
View Answer / Hide Answer

ANSWER: < script>




7. A script that executes when the user clicks the mouse button is an example of what?

An object
A mouse click
A compiler
An event handler
View Answer / Hide Answer

ANSWER: An event handler




8. Why do Javascript and Java have similar names?

Javascript is another name of Java programming language
Javascript's syntax are loosely based on Java's
Both languages are written by same authors
The both are originated in the Island of Java
View Answer / Hide Answer

ANSWER: Javascript's syntax are loosely based on Java's




9. Which CSS property controls the text size?

text-size
font-size
text-style
font-style
View Answer / Hide Answer

ANSWER: font-size




10. How do you change the text color of an element?

color:
font-color:
text-color=
text-color:
View Answer / Hide Answer

ANSWER: color:


Post your comment