Which HTML element is used to create a hyperlink?
A
<link> B
<a> C
<href> D
<url>
Analysis & Theory
The `<a>` tag is used to define a hyperlink in HTML.
Which CSS pseudo-class is used to style a link that has not been visited?
A
:hover B
:visited C
:active D
:link
Analysis & Theory
`:link` targets hyperlinks that have not yet been visited.
Which pseudo-class styles a link when the user hovers the mouse over it?
A
:hover B
:active C
:focus D
:target
Analysis & Theory
`:hover` is used to apply styles when a user places their mouse over a link.
What does `:visited` pseudo-class style?
A
Active links B
Hovered links C
Links already clicked by the user D
Links currently selected
Analysis & Theory
`:visited` styles links that the user has already visited.
In what order should link pseudo-classes be defined in CSS for best results?
A
Visited, Link, Active, Hover B
Hover, Link, Visited, Active C
Link, Visited, Hover, Active D
Active, Hover, Visited, Link
Analysis & Theory
The recommended order is: `:link`, `:visited`, `:hover`, `:active` (LoVe HAte).
How do you remove the underline from a hyperlink in CSS?
A
text-decoration: none; B
text-underline: false; C
link-style: none; D
decoration: 0;
Analysis & Theory
`text-decoration: none;` removes the default underline from links.
Which CSS property is used to change the color of a link?
A
background B
text-style C
color D
link-color
Analysis & Theory
`color` is used to change the text color of a hyperlink.
Which pseudo-class applies styles while the link is being clicked?
A
:focus B
:hover C
:active D
:link
Analysis & Theory
`:active` applies when the link is being clicked or activated.
What does the `target='_blank'` attribute in an `<a>` tag do?
A
Opens link in same tab B
Disables the link C
Opens link in a new tab or window D
Adds underline to the link
Analysis & Theory
`target='_blank'` opens the hyperlink in a new browser tab or window.
How can you make a link look like a button using CSS?
A
Use `font-style: button;` B
Wrap it in a `<button>` tag C
Add padding, background-color, and border styling D
Use `text-align: button;`
Analysis & Theory
By styling the `<a>` tag with padding, background, and borders, it can appear like a button.