HTML and CSS Basics Quiz - CBSE Class 9 ICT
Free practice quiz: HTML and CSS Basics (CBSE Class 9 ICT). 20 multiple-choice questions with answers and explanations. Play online, no sign-up needed.
Play all 20 questions freeSample questions
What does HTML stand for?
- Hyper Text Markup Language
- High Text Markup Language
- Hyperlinking Text Markdown Language
- Hyper Text Mockup Language
Show answer
Answer: A. Hyper Text Markup Language
HTML stands for Hyper Text Markup Language, which is used to create web pages.
What tag is used for creating hyperlinks in HTML?
- <a>
- <link>
- <hyperlink>
- <connect>
Show answer
Answer: A. <a>
The <a> tag is used to create hyperlinks in HTML.
Which HTML attribute is used to define inline styles?
- styles
- class
- style
- css
Show answer
Answer: C. style
The 'style' attribute in HTML is used to apply inline styles to an element directly.
What CSS property is used to change the text color of an element?
- text-color
- font-color
- color
- text-style
Show answer
Answer: C. color
The 'color' property in CSS is used to set the color of text inside an element.
What is the difference between <section> and <div> tags in HTML?
- There is no difference; both are used for the same purpose.
- <section> is a semantic tag, while <div> is a non-semantic block-level tag.
- <section> is used for creating lists while <div> for articles.
- <div> provides better performance than <section>.
Show answer
Answer: B. <section> is a semantic tag, while <div> is a non-semantic block-level tag.
<section> is a semantic tag used for grouping related content, while <div> is more generic and non-semantic.