HTML and CSS Quiz

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

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

Flashcards are hidden until you start studying

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
Use Quizgecko on...
Browser
Browser