Online Coding Lessons HTML and CSS Web Development 1 — Questions and Answers
Question 1: What does HTML stand for?
- Hyper Transfer Markup Language
- HyperText Markup Language (Correct answer)
- Home Tool Markup Language
- Hyperlink Text Making Language
Correct answer: HyperText Markup Language
HTML stands for HyperText Markup Language, the standard language used to create web pages.
Question 2: Which HTML tag is used to create a hyperlink?
- <link>
- <url>
- <a> (Correct answer)
- <href>
Correct answer: <a>
The <a> (anchor) tag is used to create hyperlinks in HTML, with the href attribute specifying the destination URL.
Question 3: Which CSS property is used to change the text color?
- font-color
- text-color
- color (Correct answer)
- foreground
Correct answer: color
The CSS 'color' property is used to set the color of text content in an element.
Question 4: What does the <h1> tag represent in HTML?
- A horizontal line
- The largest heading (Correct answer)
- A highlighted word
- A hyperlink
Correct answer: The largest heading
The <h1> tag represents the most important (largest) heading on a page, typically used for the main title.
Question 5: Which HTML attribute specifies an alternate text for an image?
- title
- src
- alt (Correct answer)
- caption
Correct answer: alt
The 'alt' attribute provides alternative text for an image when it cannot be displayed, which is important for accessibility.
Question 6: Which CSS property controls the spacing between elements' borders and their content?
- margin
- spacing
- padding (Correct answer)
- border-gap
Correct answer: padding
The 'padding' property creates space between an element's content and its border, inside the element.
What does HTML stand for?