HTML Flashcards

1
Q

Explain commenting

A

Commenting allows you to display messages without affecting the browser display. It also, helps to make the code inactive.

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

What is the purpose of some of those HTML5 elements that separate the webpage into different content areas?

A

They help to make the HTML easier to read. They improve accessibility and SEO (search engine optimisation)

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

What are elements without a closing tag called?

A

A void element/tag.

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

What are attributes?

A

Attributes are special phrases that are placed in the opening tag of an element and control the elements behaviour.

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

What is the ‘a’ element?

A

It is the anchor element. The ‘href’ attribute is added to the opening tag to add a link. The text acts as the URL

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

What is the role of the ‘target’ attribute?

A

The target attribute opens the link in a new tab.

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

What is the difference between HREF and SRC attribute?

A

HREF attribute specifies the URL of a resource linked by the element. Whereas, the SRC attribute specifies the URL of a resource that is directly being used by the element.

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

What is the role of the section element?

A

The section element is used to define sections in a document, such as chapters, headers, footers, or any other sections of the document. It is a semantic element that helps with SEO and accessibility.

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

What is nesting and indentation?

A

When an element/s are placed in an another element, it is called nesting. These elements are placed two places further to the right then the element they are nested in to improve readability.

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

What is the role of the figure element?

A

The figure element helps to associate a picture with a caption.

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

What is the figure caption element?

A

A figure caption (figcaption) element is used to add a caption to describe the image contained within the figure element.

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

What is the form element?

A

It is used to get information from a user such as name, email, etc.

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

What is the function of the action attribute.

A

It specifies the location where the form data should be sent.

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

What is the function of the input element?

A

The input element allows you several ways to collect the users data (means to get the data)

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