💻
Programming Easy

HTML, CSS and Web Basics

A simple programming quiz with 15 fun questions about HTML, CSS and basic web development.

15 Questions
25s Per Question
0+ Plays
← All Programming Quizzes 📚 Study Guide for this category →
💡 Create account to save scores & earn XP
📋 View All 15 Questions & Answers

1. What language is primarily used to style webpages?

  • A. HTML
  • B. CSS ✓
  • C. SQL
  • D. Python

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

  • A. <image>
  • B. <img> ✓
  • C. <picture>
  • D. <src>

💡 The <img> tag is used to embed images in an HTML page.

3. What is the correct file extension for a CSS file?

  • A. .css ✓
  • B. .html
  • C. .style
  • D. .csss

💡 CSS files are saved with the .css file extension.

4. What tag creates a line break in HTML?

  • A. <break>
  • B. <br> ✓
  • C. <lb>
  • D. <newline>

💡 The <br> tag inserts a single line break in HTML.

5. What does 'DOM' stand for?

  • A. Document Object Model ✓
  • B. Data Object Model
  • C. Document Order Model
  • D. Digital Object Model

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

  • A. The structure
  • B. The visual styling ✓
  • C. The server
  • D. The database

💡 CSS controls the visual presentation and layout of a webpage's HTML content.

7. What is the root tag of an HTML document?

  • A. <html> ✓
  • B. <root>
  • C. <doc>
  • D. <page>

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

  • A. <h6>
  • B. <h1> ✓
  • C. <head>
  • D. <heading>

💡 The <h1> tag represents the largest and most important heading level in HTML.

9. What tag is used to create a paragraph in HTML?

  • A. <p> ✓
  • B. <para>
  • C. <text>
  • D. <paragraph>

💡 The <p> tag defines a paragraph in HTML.

10. What tag is used to create a hyperlink in HTML?

  • A. <link>
  • B. <a> ✓
  • C. <href>
  • D. <url>

💡 The <a> tag, short for 'anchor', is used to create hyperlinks in HTML.

11. What does 'HTTP' stand for?

  • A. HyperText Transfer Protocol ✓
  • B. High Transfer Text Protocol
  • C. HyperText Technical Protocol
  • D. Home Transfer Text Protocol

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

  • A. To contain metadata about the document ✓
  • B. To display the main content
  • C. To create a heading
  • D. To link images

💡 The <head> tag contains metadata, such as the title and linked stylesheets, not visible page content.

13. What does 'URL' stand for?

  • A. Uniform Resource Locator ✓
  • B. Universal Resource Link
  • C. Uniform Reference Locator
  • D. Universal Reference Link

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

  • A. <list>
  • B. <ul> or <ol> ✓
  • C. <items>
  • D. <li> only

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

  • A. A website that adapts to different screen sizes ✓
  • B. A website that loads quickly
  • C. A website with animations
  • D. A website with a database

💡 Responsive design ensures a website's layout adapts smoothly to different screen sizes and devices.

More Programming Quizzes

View all Programming quizzes →