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

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

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 HTML5 element is used to specify a group of navigation links?

  • <nav>
  • <header>
  • <section>
  • <footer>
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 "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 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

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 CSS (Cascading Style Sheets)?

  • To structure web pages
  • To add interactivity to web pages
  • To define the visual presentation of a web page
  • To provide server-side functionality
Mark for review

What is the purpose of the "alt" attribute in HTML image tags?

  • It specifies the alignment of the image
  • It defines the alternative text for the image, which is displayed if the image fails to load
  • It sets the size of the image
  • It determines the border style of the image
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

Which HTML5 element is used to define a section of a web page that contains navigation links?

  • <nav>
  • <header>
  • <section>
  • <footer>
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

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

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 "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

Which HTML5 element is used to create a container for navigation links, such as menus and tables of contents?

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

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

  • To define a hyperlink
  • To specify metadata about an HTML document
  • To create an image map
  • To insert a video
Mark for review

Which tag is used to define a hyperlink in HTML?

  • <link>
  • <a>
  • <href>
  • <hyperlink>
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

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

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

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

Which CSS property is used to change the size of the cursor pointer when hovering over an element?

  • cursor-size
  • pointer-size
  • cursor
  • pointer
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

Which HTML5 element is used to create a dropdown list?

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

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

  • It aligns text to the left or right within its containing element
  • It changes the font size of the text
  • It applies a shadow effect to the element
  • It hides the element from view
Mark for review

What is the correct way to link an external CSS file to an HTML document?

  • <link rel="stylesheet" type="text/css" href="styles.css">
  • <style src="styles.css"></style>
  • <style link="styles.css"></style>
  • <css src="styles.css"></css>
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 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

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