HTML and CSS Quiz
9 Questions
24 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which HTML tag is used to define an ordered list?

  • <ul>
  • <ol> (correct)
  • <list>
  • <li>

What is the hexadecimal color code for green in HTML?

  • #FF0000
  • #FFFF00
  • #FF00FF
  • #00FF00 (correct)

Which of the following is the correct way to center an element horizontally in CSS?

  • margin: auto;
  • text-align: center;
  • margin-left: auto; margin-right: 0; (correct)
  • margin-left: 0; margin-right: auto;

Which HTML tag is used to define an ordered list?

<ol> (C) Signup and view all the answers

What is the hexadecimal color code for yellow in HTML?

<p>#FFFF00 (B)</p> Signup and view all the answers

Which of the following is the correct way to set the font size of an element in CSS?

<p>font-size:12px; (C)</p> Signup and view all the answers

Which class should be used to create a container with a light background color?

<p>d. .bg-light (B)</p> Signup and view all the answers

Which class is used to create a full-width container spanning the entire width of the viewport?

<p>d. .container-fluid (E)</p> Signup and view all the answers

Which HTML tag is used to create bold text?

<p>d. <b> (C)</p> Signup and view all the answers

Study Notes

HTML Tags and Attributes

  • An ordered list is defined using the <ol> tag.
  • Bold text in HTML is created using the <strong> or <b> tag.

Color Codes in HTML

  • The hexadecimal color code for green is #008000.
  • The hexadecimal color code for yellow is #FFFF00.

CSS Properties and Classes

  • To center an element horizontally in CSS, use the margin: auto; property with a defined width.
  • Setting the font size of an element in CSS is done through the font-size property (e.g., font-size: 16px;).

Utilization of CSS Classes

  • A container with a light background color can be created with the class .bg-light.
  • The class .container-fluid is used for a full-width container that spans the entire width of the viewport.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Description

Test your knowledge of HTML and CSS with this quiz! From defining unordered lists to setting the color of an element in CSS, this quiz will challenge your understanding of these essential web development tools. See if you can answer questions about HTML tags, color codes, and CSS syntax. Perfect for beginners and experts alike, this quiz is a great way to test your skills and improve your knowledge of HTML and CSS.

More Like This

HTML and CSS Basics
5 questions

HTML and CSS Basics

EnergyEfficientBarium avatar
EnergyEfficientBarium
HTML and CSS Basics Quiz
30 questions

HTML and CSS Basics Quiz

IllustriousHoneysuckle avatar
IllustriousHoneysuckle
Use Quizgecko on...
Browser
Browser