Links Flashcards
what is a link?
a connection between two or more webpages
what can we use links for?
links can be used to navigate between webpages/
navigate to different websites/ open a new browser window depending on what is specified
what element is used to create a link i HTML?
(a) (/a)
what attribute is required to make a link redirect the user to the specified location?
href = “location”
create a link that redirects the user to google
(a href=”https://www.goodle.com”) google (/a)
what is an absolute URL?
the full web address of a website which includes: the domain name
what is a relative URL?
part of the web address for a site- like using shorthand.
when do we use absolute URL’s in links?
when we want to link to an external website for example linking a personal portfolio to google
when do we use relative URL’s in links?
when we want to link to a web page within the same website. if all of the webpages are stored within the same folder then the href can be changed to the file name
give examples of relative link types
same folder/child folder/ grandchild folder
href = “reviews.html”/ href = “music/listings.html/ href = “movies/dvd/reviews.html”
what is an email link?
an email link is a link that once clicked opens the users default email client and has the recipients email auto filled to the specified email address. great for contact pages
how can we create an email link using html?
href = “mailto:emailaddress@gmail.com”
what is mailto value in a href attribute?
the mailto value is used at the start of a href value and is followed by the recipients email address. it is used as part of an email link
how do we use a link to open a new browser window?
we use the attribute target and give it a value of “_blank”
give an example of a link that opens a new browser window
(a href=”google.com”) open google in new window (/a)