Home > Information Technology > Web Development > Basics of HTML and CSS
40 QuestionsLog inwatch on youtube 
00:00:00

ЁЯОБ Claim Rewards

ЁЯОБ Login to earn rewards !!!



40 uniquely designed questions just for you to evaluate your skills in Basics of HTML and CSS quiz. Are you ready to challenge yourself and explore more? Let's get started and see how much you can score out of 40.

Discover the fundamentals of HTML and CSS through an engaging and interactive quiz designed for beginners. Learn essential concepts and boost your web development skills

Please feel free to report any corrections if you come across any inaccuracies or errors. Your feedback is valuable in maintaining the accuracy of our content.

Questions

1. What does HTML stand for?
Answer: Hyper Text Markup Language
Explanation: HTML stands for Hyper Text Markup Language, which is used to structure content on the web.Report for correction
2. Which HTML tag is used to define the title of a webpage?
Answer: <title>
Explanation: The <title> tag is used within the <head> section to define the title of a webpage displayed in the browser's title bar.Report for correction
3. Which CSS property is used to change the font color of text?
Answer: color
Explanation: The color property is used to change the font color of text in CSS.Report for correction
4. Which HTML tag is used to create an ordered number list?
Answer: <ol>
Explanation: The <ol> tag is used to create an ordered number list in HTML.Report for correction
5. Which CSS property is used to control the spacing between lines of text?
Answer: line-height
Explanation: The line-height property controls the spacing between lines of text in CSS.Report for correction
6. Which HTML tag is used to define a hyperlink?
Answer: <a>
Explanation: The <a> tag is used to define a hyperlink in HTML.Report for correction
7. Which CSS property is used to add a background color to an element?
Answer: background-color
Explanation: The background-color property is used to add a background color to an element in CSS.Report for correction
8. What is the purpose of the <meta> tag in HTML?
Answer: To provide metadata about the document
Explanation: The <meta> tag is used to provide metadata about the HTML document, such as character encoding and description.Report for correction
9. Which CSS property is used to control the spacing between elements within a box?
Answer: padding
Explanation: The padding property is used to control the spacing between the content and the border of an element in CSS.Report for correction
10. Which HTML tag is used to create a line break?
Answer: <br>
Explanation: The <br> tag is used to create a line break within text in HTML.Report for correction
11. Which HTML tag is used to create a table header?
Answer: <th>
Explanation: The <th> tag is used to create a table header cell within the <thead> section of an HTML table.Report for correction
12. Which CSS property is used to set the font size of text?
Answer: font-size
Explanation: The font-size property is used to set the font size of text in CSS.Report for correction
13. Which HTML tag is used to insert an image?
Answer: <img>
Explanation: The <img> tag is used to insert an image in HTML.Report for correction
14. Which CSS property is used to add a border around an element?
Answer: border
Explanation: The border property is used to add a border around an element in CSS.Report for correction
15. Which HTML tag is used to create an unordered (bullet) list?
Answer: <ul>
Explanation: The <ul> tag is used to create an unordered (bullet) list in HTML.Report for correction
16. Which CSS property is used to control the alignment of text within an element?
Answer: text-align
Explanation: The text-align property is used to control the alignment of text within an element in CSS.Report for correction
17. Which HTML tag is used to define the main content of a webpage?
Answer: <main>
Explanation: The <main> tag is used to define the main content of a webpage.Report for correction
18. Which CSS property is used to change the font style of text?
Answer: font-style
Explanation: The font-style property is used to change the font style of text in CSS.Report for correction
19. Which HTML tag is used to create a hyperlink that opens an email client?
Answer: <mailto>
Explanation: The <mailto> attribute is used within the <a> tag to create a hyperlink that opens an email client.Report for correction
20. Which CSS property is used to set the background image of an element?
Answer: background-image
Explanation: The background-image property is used to set the background image of an element in CSS.Report for correction
21. Which HTML tag is used to define a division or section of a webpage?
Answer: <div>
Explanation: The <div> tag is used to define a division or section of a webpage.Report for correction
22. Which CSS property is used to add space between the content and the border of an element?
Answer: padding
Explanation: The padding property is used to add space between the content and the border of an element in CSS.Report for correction
23. Which HTML tag is used to create a hyperlink that opens in a new window or tab?
Answer: <a> with target="_blank"
Explanation: By adding target="_blank" to the <a> tag, you can create a hyperlink that opens in a new window or tab.Report for correction
24. Which CSS property is used to change the font weight of text?
Answer: font-weight
Explanation: The font-weight property is used to change the font weight of text in CSS.Report for correction
25. Which HTML tag is used to create an input field for user text input?
Answer: <input>
Explanation: The <input> tag is used to create an input field for user text input in HTML.Report for correction
26. Which HTML tag is used to create a dropdown selection list?
Answer: <select>
Explanation: The <select> tag is used to create a dropdown selection list in HTML.Report for correction
27. Which CSS property is used to control the size of an element's border?
Answer: border-width
Explanation: The border-width property is used to control the size of an element's border in CSS.Report for correction
28. Which HTML tag is used to emphasize text and make it italic?
Answer: <em>
Explanation: The <em> tag is used to emphasize text and make it italic in HTML.Report for correction
29. Which CSS property is used to change the appearance of a cursor when hovering over an element?
Answer: cursor
Explanation: The cursor property is used to change the appearance of a cursor when hovering over an element in CSS.Report for correction
30. Which HTML tag is used to create a line that separates content or sections?
Answer: <hr>
Explanation: The <hr> tag is used to create a thematic break or horizontal line in HTML.Report for correction
31. Which CSS property is used to change the spacing between characters in text?
Answer: letter-spacing
Explanation: The letter-spacing property is used to change the spacing between characters in text in CSS.Report for correction
32. Which HTML tag is used to create a checkbox input?
Answer: <input type="checkbox">
Explanation: The <input type="checkbox"> tag is used to create a checkbox input in HTML.Report for correction
33. Which CSS property is used to set the width of an element?
Answer: width
Explanation: The width property is used to set the width of an element in CSS.Report for correction
34. Which HTML tag is used to create a radio button input?
Answer: <input type="radio">
Explanation: The <input type="radio"> tag is used to create a radio button input in HTML.Report for correction
35. Which CSS property is used to control the alignment of content within a flex container?
Answer: justify-content
Explanation: The justify-content property is used to control the alignment of content within a flex container in CSS.Report for correction
36. Which HTML tag is used to create a link that opens in a new window?
Answer: <a target="_blank">
Explanation: By adding target="_blank" to the <a> tag, you can create a link that opens in a new window.Report for correction
37. Which CSS property is used to change the appearance of a list marker (bullet or number)?
Answer: list-style-image
Explanation: The list-style-image property is used to change the appearance of a list marker in CSS.Report for correction
38. Which HTML tag is used to create a button element?
Answer: <button>
Explanation: The <button> tag is used to create a button element in HTML.Report for correction
39. Which CSS property is used to add space between table cells?
Answer: border-spacing
Explanation: The border-spacing property is used to add space between table cells in CSS.Report for correction
40. Which HTML tag is used to create an ordered list item?
Answer: <li>
Explanation: The <li> tag is used to create an item within an ordered or unordered list in HTML.Report for correction