WEBMANIA

Description

This Quiz contains questions from HTML, CSS, JavaScript.
Verge 2k17
Quiz by Verge 2k17, updated more than 1 year ago
Verge 2k17
Created by Verge 2k17 over 6 years ago
59
0

Resource summary

Question 1

Question
Assume that code: p { color: red; padding: 10px 5px; background: black;} .fancy {font-family: Cursive; background: red; color: green;} .plain {font-family: Times, Serif; color: black; } <p class="plain fancy">Hi </p> What color font is used to display "Hi" ?
Answer
  • red
  • green
  • black
  • browser default

Question 2

Question
In the following code snippet, what value is given for the right margin? code: margin: 5px 10px 3px 8px;
Answer
  • 3px
  • 8px
  • 10px
  • 5px

Question 3

Question
Which of the following would be used to create class called button which has a width of 750px, a height of 30px, and the color of the text is black ?
Answer
  • .button { height: 30px; width: 750px; text: black; }
  • #button { height: 30px; width: 750px; color: black; }
  • .button { height: 30px; width: 750px; color: black; }
  • #button { height: 30px; width: 750px; text: black; }

Question 4

Question
How much width will this div occupy ? code: div { width: 100px; padding: 10px; margin-left: 5px; border: 2px; }
Answer
  • 117px
  • 100px
  • 129px
  • 124px

Question 5

Question
What is default font size of the h1 tag ?
Answer
  • 40px
  • 24px
  • 16px
  • 32px

Question 6

Question
Which key word used to make animation in HTML code ?
Answer
  • @keyframe
  • @animation
  • @keyframes
  • @html-animation

Question 7

Question
Assume that code: <html> <head> <style> div { margin-right:15px; float: left; } .a { width: 100px; color: #ff00ff; } .b { width: 100px; margin-right: 15px; float: right;} <style> <head> <body> <div class="a">It is a division A</div> <div class="b">It is a division B</div> </body> </html> Total width of the body is 1000px. What is the starting point of division B ?
Answer
  • 115px
  • 101px
  • 885px
  • 900px

Question 8

Question
Assume the following rule is the only one that styles the body element: code: body { font-family: Cursive, Helvetica, Verdana; } What happens if the browser doesn't support any of the following font families ?
Answer
  • The text will not be displayed
  • The text will be displayed in Cursive
  • The text will be displayed in the default browser font-family
  • None of the above

Question 9

Question
Which of these elements are all <table> elements ?
Answer
  • <thead><body><tr>
  • <table><tr><td>
  • <table><tr><tt>
  • <table><head><tfoot>

Question 10

Question
The external JavaScript file must contain the <script> tag.
Answer
  • True
  • False

Question 11

Question
What is the correct way to write a JavaScript array?
Answer
  • var colors = (1:"red", 2:"green", 3:"blue")
  • var colors = 1=("red"), 2=("green"), 3=("blue")
  • var colors = "red","green","blue"
  • var colors = ["red","green","blue"]

Question 12

Question
JavaScript is the same as Java.
Answer
  • True
  • False

Question 13

Question
What will the following code return: Boolean(10<9)
Answer
  • True
  • False
  • NaN

Question 14

Question
What is the correct HTML for making a drop-down list ?
Answer
  • <input type="list">
  • <list>
  • <select>
  • <input type="dropdown">

Question 15

Question
What is the correct html for adding a background color ?
Answer
  • <body bg="yellow">
  • <background> Yellow </background>
  • <body style="background-color: yellow;">
  • <body bg-color: yellow">

Question 16

Question
How can you make a numbered list ?
Answer
  • <ul>
  • <ol>
  • <dl>
  • <list>

Question 17

Question
Which is the correct css syntax ?
Answer
  • { body: color=black; }
  • { body; color: black; }
  • body { color: black; }
  • body: color=black;

Question 18

Question
How do you add a background color for all <h1> elements
Answer
  • all.h1 {background-color: #ffffff; }
  • h1 {background-color: #ffffff; }
  • h1.all {background-color: #ffffff; }
  • *h1 {background-color: #ffffff; }

Question 19

Question
How do you display hyperlinks without an underline ?
Answer
  • a {underline: none;}
  • a {decoration: no-underline; }
  • a {text-decoration: none;}
  • a {text-decoration: no-underline; }

Question 20

Question
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 = 1 pixels
Answer
  • border-width: 10px 5px 20px 1px;
  • border-width: 10px 20px 5px 1px;
  • border-width: 10px 1px 5px 20px;
  • border-width: 5px 20px 10px 1px;
Show full summary Hide full summary

Similar

Spanish Adjectives (Describing People)
Niat Habtemariam
Harry Potter Trivia Quiz
Andrea Leyden
A-Level Chemistry: Atomic Structure
cian.buckley+1
A Level: English language and literature technique = Dramatic terms
Jessica 'JessieB
Biology 2b - Enzymes and Genetics
Evangeline Taylor
TOEFL English Vocab (A - M)
Ali Kane
Ebola Virus Disease
rubyduggan
GCSE Chemistry C2 topic notes
imogen.shiels
CCNA Security 210-260 IINS - Exam 3
Mike M
PSBD New Edition
Ps Test
PSBD/PSCOD/ASSD-New
Yuvraj Sunar