Online Exam Quiz

questionQuestion  1 to 30

Which CSS property is used to specify the background image for an element?

  • background-image
  • image
  • background
  • image-url
Mark for review

Which HTML5 element is used to define the structure of a table?

  • <table>
  • <tbody>
  • <tr>
  • <td>
Mark for review

What is the purpose of the "viewport" meta tag in HTML?

  • It specifies the title of the web page
  • It defines the character encoding of the document
  • It adjusts the width of the web page to the width of the device's screen
  • It adds keywords for search engine optimization
Mark for review

What does the "box-sizing" property in CSS control?

  • It defines how an element's borders are displayed
  • It specifies whether an element should be displayed as a block-level or inline element
  • It defines how an element's padding and border are calculated
  • It controls the spacing between lines of text within an element
Mark for review

Which CSS property is used to specify the space between words in a text?

  • letter-spacing
  • word-spacing
  • text-spacing
  • space-between
Mark for review

What is the purpose of the "placeholder" attribute in HTML form elements?

  • It specifies the default value of the form field
  • It provides a hint or example of the expected value for the form field
  • It defines the maximum length of the input
  • It determines whether the input field is required
Mark for review

Which CSS property is used to change the text color of an element?

  • font-color
  • color
  • text-color
  • font-color
Mark for review

Which HTML5 element is used to define the structure of a form?

  • <form>
  • <input>
  • <fieldset>
  • <label>
Mark for review

What is the purpose of the CSS "opacity" property?

  • It specifies the transparency of an element
  • It adjusts the spacing between lines of text within an element
  • It controls the size of the cursor pointer when hovering over an element
  • It sets the font weight of the text
Mark for review

In CSS, what does the "clear" property do?

  • It specifies whether an element should float or not
  • It determines the transparency of an element
  • It removes all styling from an element
  • It specifies which sides of an element floating elements should not touch
Mark for review

What is the correct way to specify an inline style in HTML?

  • <style> color: red; </style>
  • <div style="color: red;"></div>
  • <link rel="stylesheet" type="text/css" href="styles.css">
  • <style src="styles.css"></style>
Mark for review

What does the CSS property "box-shadow" allow you to do?

  • It adds a shadow effect to the borders of an element
  • It creates a shadow beneath an element
  • It adjusts the spacing between lines of text within an element
  • It changes the shape of an element
Mark for review

Which HTML5 element is used to define the structure of a form?

  • <form>
  • <input>
  • <fieldset>
  • <label>
Mark for review

Which HTML5 element is used to create a dropdown list?

  • <select>
  • <dropdown>
  • <menu>
  • <list>
Mark for review

In CSS, what does the "box-model" consist of?

  • Content, padding, border, and margin
  • Content, margin, padding, and border
  • Content, margin, padding, and width
  • Content, width, height, and margin
Mark for review

In CSS, what does the "flexbox" layout model provide?

  • It allows elements to be positioned absolutely within their containing element
  • It enables responsive design by allowing elements to dynamically adjust their size and position
  • It aligns elements along a flexible grid system
  • It creates multi-column layouts for web pages
Mark for review

What is the purpose of the "role" attribute in HTML?

  • It specifies the role of the HTML element for accessibility purposes
  • It defines the position of the element on the web page
  • It determines the order in which elements are displayed
  • It specifies the type of input for form elements
Mark for review

Which CSS property is used to control the appearance of text when it overflows its containing element?

  • text-overflow
  • overflow
  • white-space
  • word-wrap
Mark for review

What is the correct HTML tag for inserting a line break?

  • <br>
  • <line-break>
  • <lb>
  • <break>
Mark for review

In CSS, what does the "position: relative;" property do?

  • It positions an element relative to its normal position in the document flow
  • It positions an element relative to its parent element
  • It positions an element relative to the viewport
  • It positions an element absolutely within its containing element
Mark for review

Which HTML5 element is used to define a list of navigation links?

  • <nav>
  • <ul>
  • <ol>
  • <menu>
Mark for review

Which CSS selector would target all <p> elements with the class "highlight"?

  • p.highlight
  • .highlight p
  • p .highlight
  • .highlight > p
Mark for review

Which CSS property is used to change the background color of an element?

  • bg-color
  • background-color
  • color-background
  • background
Mark for review

What is the purpose of the "viewport" meta tag in HTML?

  • It specifies the title of the web page
  • It defines the character encoding of the document
  • It adjusts the width of the web page to the width of the device's screen
  • It adds keywords for search engine optimization
Mark for review

What does the CSS property "display: inline-block;" do?

  • It makes the element inline but with block-like properties
  • It makes the element behave like a block-level element
  • It makes the element inline but with inline-block properties
  • It hides the element from view
Mark for review

What is the purpose of the CSS "z-index" property?

  • It controls the vertical stacking order of positioned elements
  • It sets the opacity level of an element
  • It rotates an element around a fixed point
  • It adjusts the spacing between lines of text
Mark for review

What is the correct way to comment out a block of CSS code?

  • /* This is a comment */
  • /* This is a comment */
  • <!-- This is a comment -->
  • // This is a comment
Mark for review

In CSS, what does the "box-sizing: border-box;" property do?

  • It adjusts the spacing between elements inside a box
  • It includes the padding and border in the box's total width and height
  • It removes the padding and border from the box's total width and height
  • It changes the size of the box relative to its content
Mark for review

Which CSS property is used to specify the thickness of an element's border?

  • border-width
  • border-thickness
  • border-size
  • border-style
Mark for review

Which CSS property is used to specify the font family for text?

  • font-family
  • text-font
  • font-style
  • typeface
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review