HTML foundations Flashcards

1
Q

Q.What are HTML and CSS used for?

A

A: HTML structures the content of a webpage, while CSS styles its visual appearance.

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

Q: How do you link a CSS file to an HTML document?

A

A: Using the <link></link> tag in the <head> section.
Example:

<link></link>

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

Q: What is an HTML element?

A

A: An HTML element consists of a start tag, content, and an end tag.

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

Q: Give an example of a self-closing HTML tag.

A

A: <img></img>, <br></br>, or <input></input>.

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

Q: What is an HTML boilerplate?

A

A: It’s the standard structure or template of an HTML document that includes the <!DOCTYPE html>, <html>, <head>, and <body> tags.

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

Q: What tag is used to define the main heading of an HTML document?

A

A: <h1>

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

Q: How do you make text bold and italic in HTML?

A

A: Use the <strong> or <b> tag for bold text and <em> or <i> for italic text.</i></em></b></strong>

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