html

The html element is the root of an HTML document. All other elements, including body and head are descendants of this element. The html tag sometimes include language declarations through the lang attribute.

Attributes

Attributes Function
manifest points to the cache manifest. This is used in times of network connections lost
xmlns specifies the XML namespace. It is a way for referencing elements and attributes.

Example

<html lang="en" dir="ltr" class="client-nojs">
<html lang="en-US">
<html lang="en-US" prefix="og: http://ogp.me/ns#">

 a

An a element is commonly referred to as the anchor element. It connects pages.

An anchor link can be wrapped around text and images.

Attributes

Attributes Function
href defines the destination of the anchor tag. It can be an image, a web page or another part of the same web page
target specifies where to open the linked web page

Usage

An anchor link is used to define a destination using its href attribute.

Example

<a href="http://gistpages.com">Gist Pages</a>
<a href="http://gistpages.com/glossary/html/a"><img src="http://i.imgur.com/Z23Fr.jpg" /></a>