Online Exam Quiz

questionQuestion  1 to 30

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

What is the correct way to apply an external CSS stylesheet to an HTML document?

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

Which of the following is a semantic tag introduced in HTML5?

  • <div>
  • <span>
  • <article>
  • <table>
Mark for review

Which HTML5 element is used to specify a group of navigation links?

  • <nav>
  • <header>
  • <section>
  • <footer>
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 change the background color of an element?

  • bg-color
  • background-color
  • color-background
  • background
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 tag is used to define a hyperlink in HTML?

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

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

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

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

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

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

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

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

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

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

  • <table>
  • <tbody>
  • <tr>
  • <td>
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 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 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 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

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

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

What is the correct way to center align text horizontally in CSS?

  • text-align: center;
  • align: center;
  • center-text: horizontal;
  • align-text: center;
Mark for review

Which CSS property is used to set the spacing between lines of text within an element?

  • line-spacing
  • text-spacing
  • line-height
  • line-height
Mark for review

Which HTML5 element is used to embed video content on a web page?

  • <video>
  • <media>
  • <embed>
  • <source>
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