HTML and CSS Easy for Non-CodersChapter 41

Questions

Section 2 of 2-~ 12 min read-Synced from Cuantum content

Congratulations on completing Part I of your journey into web development! This quiz is designed to test your understanding of the fundamental concepts covered in the chapters on the Internet, HTML, and CSS. Take your time, think through each question, and use this as an opportunity to reinforce your knowledge.

Question 1

What does HTML stand for?

A) HyperText Markup Language

B) Hyperlink and Text Markup Language

C) HyperTool Markup Language

D) None of the above

Question 2

Which of the following HTML tags is used to define a paragraph?

A) <paragraph>

B) <p>

C) <text>

D) <para>

Question 3

CSS is used to...

A) structure web page content.

B) style web page content.

C) create advanced animations only.

D) store data for web pages.

Question 4

Which of the following is NOT a valid way to include CSS in an HTML document?

A) Inline styles

B) External stylesheet

C) Internal stylesheet

D) External server style

Question 5

How do you specify a background color in CSS?

A) bg-color: #FFFFFF;

B) background-color: #FFFFFF;

C) color: background #FFFFFF;

D) color-background: #FFFFFF;

Question 6

The <link> element should be placed inside...

A) the <body> section.

B) the <head> section.

C) at the top of the HTML document, before the <html> tag.

D) at the bottom of the HTML document, after the </html> tag.

Question 7

Which CSS property is used to change the text color of an element?

A) font-color

B) text-color

C) color

D) background-color

Question 8

What does the following CSS selector target? #navbar

A) All elements with the class navbar

B) The element with the id navbar

C) All <navbar> elements

D) All elements where navbar is part of the class name

Question 9

How can you make a list that lists its items with squares?

A) list-style-type: square;

B) list-type: square;

C) ul-type: square;

D) list: square;

Question 10

What is the purpose of using <!DOCTYPE html> at the beginning of an HTML document?

A) It links the HTML document to the CSS file.

B) It ensures the document can be read by older browsers.

C) It declares the document type and version of HTML.

D) It comments out the document content.