Tag of the Week - The a Tag

Опубликовано: 08 Сентябрь 2026
на канале: Brendan Dickinson
30
0

Welcome to our first TOTW, the a tag. I started with the a tag because I believe it to be one of the most, if not the most, important tags to know. This is because it defines hyperlinks, or links to other pages/content.

Let me know what you think about this video and if you think I can do something to improve just leave a comment down below. Help support me by subscribing and I hope you enjoy it! If you have any other questions just leave a comment and I'll get back to you as soon as possible. For more information on my work check out my portfolio website:
http://brendangamer.com/

LINKS:
http://www.w3schools.com/tags/tag_a.asp

Overview:
the a tag defines a hyperlink, used to link from one page to another most important part is the href attribute which designates the destination of the link

does have an opening and closing tag and the text in between is what becomes the visible link

supported by all browsers

by default the link will appear
blue and underlined for not visited
purple and underlined for visited
red if active

the linked page is normally displayed in the current browser window unless a different target is specified

You can use CSS to style links however you want

Different from HTML4.01 to HTML5, in HTML4.01 it could be a hyperlink or anchor but in HTML5 the a tag is always a hyperlink, but if no href it is only a placeholder for a hyperlink.

for a list of attributes go to (website)

the a tag supports global attributes and event attributes

default CSS
a:link, a:visited {
color: (internal value);
text-decoration: underline;
cursor: auto;
}

a:link:active, a:visited:active {
color: (internal value);
}