Links Flashcards

1
Q

What is the purpose of the href attribute in an anchor tag?

A

It creates hyperlinks to locations like current pages, other pages within a site, other sites, download files, or send emails (e.g., mailto:).

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

What does the download attribute in a hyperlink do?

A

It indicates that the link points to a downloadable resource and suggests a filename for the download.

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

What are the values for the target attribute in an anchor tag, and what do they do?

A

_self: Opens the link in the same window.
_blank: Opens the link in a new tab.

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

What is the purpose of the hreflang attribute in an anchor tag?

A

It specifies the language for alternate versions of a page or link.

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

What does the ping attribute in an anchor tag do?

A

It sends a POST request with a PING body to secure URLs (https) when the hyperlink is activated, notifying the destination.

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