HTML Syntax Flashcards

1
Q

Do all HTML elements require a closing tag?

A

No, the img element is a self closing tag.

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

What are attributes for in HTML?

A

Attributes provide additional information about elements. They are always specified in the start tag and usually come in name/value pairs like: name = “value”.

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

What is the purpose of the alt attribute used on img elements?

A

The required alt attribute for the img tag specifies an alternate text for an image, if the image for some reason cannot be displayed.
This can be due to slow connection, or an error in the src attribute, or if the user uses a screen reader.

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

How many heading elements are available in HTML?

A

There are six heading elements that are available in HTML.

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