Website Flashcards

1
Q

What are the three main sections of an HTML document?

A

Title, Head, Body.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the <p> tag do in HTML?

A

It defines a paragraph.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of the <a> tag in HTML?</a>

A

It creates a hyperlink.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What tag is used to create the largest heading in HTML?

A

<h1>
</h1>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the purpose of the <html> element?

A

The root element of an HTML page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the <head> element contain?

A

Meta information about the page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the function of the <title> element?</title>

A

It sets the page’s title in the browser tab.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What’s the <body> element?

A

It contains all visible content like text, images, and links.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a CSS selector?

A

It targets an HTML element to style.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you style a class in CSS?

A

Use a period (.) followed by the class name (e.g., .example {}).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you change the background color in CSS?

A

body { background-color: blue; }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Name three features of a good website.

A

Easy navigation, responsive design, and relevant images.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

CSS selectors by name

A

h1 { color: blue; } (styles all <h1> elements)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

CSS selectors by id

A

header { font-size: 24px; } (styles the element with id=”header”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

CSS selectors by class

A

.button { background-color: green; } (styles all elements with class=”button”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does CSS stand for?

A

Cascading Style Sheets

17
Q

What does HTML stand for?

A

Hypertext Markup Language