Online Exam Quiz

questionQuestion  1 to 30

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

  • <table>
  • <tbody>
  • <tr>
  • <td>
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 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 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 "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 CSS property is used to add space between the border and content of an element?

  • margin
  • padding
  • border-spacing
  • space
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

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

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

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

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

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

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

Which HTML5 element is used to create a dropdown list?

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

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

  • <form>
  • <input>
  • <fieldset>
  • <label>
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 of the following is a semantic tag introduced in HTML5?

  • <div>
  • <span>
  • <article>
  • <table>
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

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

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 does HTML stand for?

  • Hyper Text Markup Language
  • High Technical Markup Language
  • Hyperlinks and Text Markup Language
  • Hyper Technical Markup Language
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