Anchor element: is used to create a link, it is an inline element so it must occur inside a block-level element such as the paragraph element (<p></P>).
Example: <a href = http://www.google.com/ title = ‘Google Search Engine”> Search Google </a>
href – this attribute specifies the destination of the web address.
http (hypertext transfer protocal) – sustains the standards for the communication between the file servers (the computer that contains the Web Browser)
Link to non-HTML Files
You can use an anchor element to link to any type of non-HTML file, such as Microsoft Word or PDF file. You should always include some text that identifies the file type, or indicates that a file will be downloaded.
Create an Email Link
< a href = “mailto: firstname.lastname@example.org”>linktext</a>
mailto: is the protocol, email@example.com the email address of the recipient, and linktext is the test that users click to activate the link.
<p><a href = “mailto: firstname.lastname@example.org” title = “email@example.com> Send email to the webmaster</a> at firstname.lastname@example.org </p>
When creating a mailto: link, you can also include a default subject for the email. You add a question mark (?) after the email address followed by the word subject, an equals sign, and subject line for the email.
Create a section with an id
Example: <section id = “idvalue”> content </section>
“Section” is the name of the element, “id” is the id attribute. “Idvalue” is the value for the id, and “content” is the content of the element.
<section id = “top”> content < /section>
Create a link to a section on the same page
Example: < a href = “#idname”> linktext </a>
“a” is the element name, “href” is the hypertext reference attribute, “idname” is the name of the id you are linking to, and “linktext” is the name of the id you are linking to.
Example: <a href = “#top”> Go to Top </a>