HTML 2
HTML 2
HTML 2
The <a> anchor element is used to create hyperlinks <!-- Creating text links -->
in an HTML document. The hyperlinks can point to
<a href="http://www.codecademy.com">Visit
other webpages, files on the same server, a location on
the same page, or any other URL via the hyperlink this site</a>
reference attribute, href . The href determines the
location the anchor element points to.
<!-- Creating image links -->
<a href="http://www.codecademy.com">
<img src="logo.jpg">Click this
image
</a>
<a href="#id-of-element-to-link-to">Take
me to a different part of the page</a>
Comments
In HTML, comments can be added between an opening <!-- Main site content -->
<!-- and closing --> . Content inside of comments
<div>Content</div>
will not be rendered by browsers, and are usually used
to describe a part of code or provide other details.
Comments can span single or multiple lines. <!--
Comments can be
multiple lines long.
-->
Whitespace
The <title> element contains a text that defines the <!DOCTYPE html>
title of an HTML document. The title is displayed in the
<html>
browser’s title bar or tab in which the HTML page is
displayed. The <title> element can only be contained <head>
inside a document’s <head> element. <title>Title of the HTML page</title>
</head>
</html>
File Path