Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

links html

<!--Short for “anchor” tag, the "a" tag is simply a link!  The attribute you MUST have 
for it to work is the href= (short for hyper reference) attribute, the value is a url (link)
to the website you will redirect your users to. An example of the a tag is:-->

<a href="https://www.w3schools.com/tags/tag_a.asp">Click me!</a>

<!--Like the img tag, the link can be relative or absolute but instead of linking to an image,
you link to the url! The target= attribute specifies if the url should be opened in a new tab
(_blank), the current tab (_self, by default), etc (these are target attribute values). 
Example:-->

<a href="https://www.w3schools.com/tags/att_a_target.asp" target="_blank">

<!--The example shows that the a tag will link to the url (which is a tutorial on target 
attribute) in a new tab because the attribute value is _blank!-->
 
PREVIOUS NEXT
Tagged: #links #html
ADD COMMENT
Topic
Name
6+3 =