HTML Course | Practice Quiz 2

Last Updated :
Discuss
Comments

Question 1

How many different styling techniques are used in CSS?
  • 2
  • 3
  • 4
  • 1

Question 2

What is the correct CSS syntax to make all paragraph (p) elements bold?
  • {p font-size:bold;}
  • p{font-weight :bold;}
  • <p style=“font-size=bold;”>
  • None of the Above

Question 3

What is the default margin of the body element?
  • 10px
  • 8px
  • 12px
  • 6px

Question 4

Where in HTML document is the conventionally correct place to put reference to an external style sheet?
  • In the HEAD section
  • In the BODY section
  • Both of the Above
  • None of the Above

Question 5

Which is the correct syntax to set the unordered-list item marker to a square.
  • <ul style=“list-style-type:square”>
  • <ul style=“square”>
  • <ul list-style: “square”>
  • <ul style=square>

Question 6

What is the correct representation to change the color of h2 element?
  • h2 { background-color: #008000 }
  • {h2 background-color: #008000}
  • h2.all{ background-color: #008000 }
  • {h2.all background-color: #008000}

Question 7

If "padding: 10px 5px 20px 0px" is given. What does this represent?

  • left:10px , top:5px , right:20px , bottom:0px
  • top:10px , right:5px , bottom:20px , left:0px
  • right:10px , bottom:5px , left:20px , top:0px
  • bottom:10px , left:5px , top:20px , right:0px

Question 8

How do we add a comment in CSS file?
  • Geeksforgeeks
  • / Geeksforgeeks /
  • /*Geeksforgeeks*/
  • //*Geeksforgeeks*//

Question 9

Which of the following is the correct HTML element to define emphasized text?
  • <italic>
  • <em>
  • <i>
  • <emph>

Question 10

Select the correct among the following for linking an external style sheet.

  • <link rel=“stylesheet” type=“text/css” href=“style.css”>
  • <style rel=“stylesheet” type=“text/css” href=“style.css”>
  • <link>stylesheet
  • <link href=“style.css”>stylesheet

There are 20 questions to complete.

Take a part in the ongoing discussion