A simple programming quiz with 15 fun questions about HTML, CSS and basic web development.
1. What language is primarily used to style webpages?
💡 CSS (Cascading Style Sheets) is the primary language used to style and format webpages.
2. What tag is used to insert an image in HTML?
💡 The <img> tag is used to embed images in an HTML page.
3. What is the correct file extension for a CSS file?
💡 CSS files are saved with the .css file extension.
4. What tag creates a line break in HTML?
💡 The <br> tag inserts a single line break in HTML.
5. What does 'DOM' stand for?
💡 DOM stands for Document Object Model, representing the structure of a webpage as a tree of objects.
6. What does CSS control on a webpage?
💡 CSS controls the visual presentation and layout of a webpage's HTML content.
7. What is the root tag of an HTML document?
💡 The <html> tag is the root element that wraps all content in an HTML document.
8. What tag is used for the largest heading in HTML?
💡 The <h1> tag represents the largest and most important heading level in HTML.
9. What tag is used to create a paragraph in HTML?
💡 The <p> tag defines a paragraph in HTML.
10. What tag is used to create a hyperlink in HTML?
💡 The <a> tag, short for 'anchor', is used to create hyperlinks in HTML.
11. What does 'HTTP' stand for?
💡 HTTP stands for HyperText Transfer Protocol, the foundation of data communication on the web.
12. What is the purpose of the <head> tag in HTML?
💡 The <head> tag contains metadata, such as the title and linked stylesheets, not visible page content.
13. What does 'URL' stand for?
💡 URL stands for Uniform Resource Locator, the address used to access resources on the web.
14. What tag is used to create a list in HTML?
💡 Unordered lists use <ul> and ordered lists use <ol>, with <li> for individual items inside them.
15. What does 'responsive design' mean in web development?
💡 Responsive design ensures a website's layout adapts smoothly to different screen sizes and devices.