Online Exam Quiz

questionQuestion  1 to 30

Which CSS property is used to add space between the border and content of an element?

  • margin
  • padding
  • border-spacing
  • space
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 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 "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 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 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 specify the background image for an element?

  • background-image
  • image
  • background
  • image-url
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 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

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

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

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

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

  • <div>
  • <span>
  • <article>
  • <table>
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 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 way to center align text horizontally in CSS?

  • text-align: center;
  • align: center;
  • center-text: horizontal;
  • align-text: center;
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

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 specify the thickness of an element's border?

  • border-width
  • border-thickness
  • border-size
  • border-style
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 font family for text?

  • font-family
  • text-font
  • font-style
  • typeface
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 "position: fixed;" 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, so it stays in the same place even when the page is scrolled
  • It positions an element absolutely within its containing element
Mark for review

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

  • <video>
  • <media>
  • <embed>
  • <source>
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 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 HTML5 element is used to define the structure of a table?

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

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

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