The Complate HTML Chat Sheat​

For web Developers It is Crucial to be Profitcient in THML and while HTML is not the Most Difficult accustom to one can still  manage to forget all the nooks and cranies it has to offer. A good solution,therefore is to always have a chat sheet and hand help you in most Troubling moments.

Document summary​

Let us see how we can break the code upin different components:

<html> … </html>
This tag specifies that the webpage is written in HTML. It appears at the very first and last line of the webpage. It is mainly used to show that the page uses HTML5 – the latest version of the language. Also known as the root element, this tag can be thought of as a parent tag for every other tag used in the page.
<head> … </head>
This tag is used to specify meta data about the webpage. It includes the webpage’s name,its dependencies (JS and CSS scripts), font usage etc.
<title> … </title>
As the name suggests, this tag contains the title/name of the webpage. You can see this in your browser’s title bar for every webpage open in the browser. Search engines use this tag to extract the topic of the webpage, which is quiteconvenient when ranking relevant search results.
<body> … </body>
Everything the user sees on a webpage is writteninside this tag. It is a container for all the contents of the webpage.


  • <html>
    <title>My First Website</title>

Document Information​

Used to specify the base URL of your site,this tag makes linking to internal links on your site cleaner.<meta/>
This is the meta data tag for the webpage.Can be useful for mentioning the page’s author,keywords, original published date etc.

This is used to link to scripts external to the webpage. Typically utilized for including stylesheets.


The style tag can be used as an alternative to an external style sheet, or complement it. Includes the webpage’s appearance information.


Used to add code snippets, typically in JavaScript, to make webpage dynamic. It can also be used to just link to an external script.


  • <html>
    <meta charset=”utf-8″>
    <base href=””target=”_blank” />
    <title>My Beautiful Website</title>
    <link rel=”stylesheet” href=”/css/master.css”>
    <script type=”text/javascript”>var dummy = 0;

Document Structure

<h1..h6> … </h1..h6>

Six different variations of writing a heading.<h1> has the largest font size, while <h1>hasthe smallest.


A webpage’s content is usually divided intoblocks, specified by the div tag


This tag injects inline elements, like an image ,icon, emoticon without ruining the formatting styling of the page.


Plain text is placed inside this tag.

A line break for webpages. Is used when wanting to write a new line.


Similar to the above tag. But in addition to switching to the next line, this tag also draws a horizontal bar to indicate the end of the section.


  • <div>
  • <h1>Top 5 Greatest Films</h1>
  • <p>These are considered the greatest
  • <span>reel-icon</span>of all time</p>
  • <hr/>
  • <h2>1. The Godfather</h2>
  • <p>This 1972 classic stars Marlon Brando and Al Pacino</p>
  • </div>

Text Formatting


Makes text bold. Used to emphasize a point


Alternative to the above tag, also creates bold text.


Another emphasis tag, but this displays text in italics.


Also used to display text in italics, but does not emphasize it like the above tag


Formatting for typewriter-like text. No longer supported in HTML5.


Another old tag, this is used to draw a line at the center of the text, so as to make it appear unimportant or no longer useful.


Tag for citing author of a quote.<del>…</del>

Pre-formatted, ‘monospace’ text laid out with whitespace inside the element intact.


Denotes text that has been inserted into the webpage.


Quotes often go into this tag. Is used in tandem with
the tag.


Similar to the above tag, but for shorter quotes.


Denotes abbreviations, along with the full forms. 


Tag for acronyms. No HTML5 support.


Tag for specifying author’s contact details.


Tag dedicated for definitions.


This is used to display code snippets withina paragraph.


Used for writing a subscript (smaller font justbelow the mid-point of normal font). Example: ax


Similar to the above tag, but for superscripting.


Reduces text size. In HTML5, it often refers to redundant or invalid information.


<p><strong>Bold text</strong>some words in italics</strong> regular text once again.</p>


Anyone who has never made a mistake has never tried anything new.<cite>– Albert Einstein</cite>



Some pre-formatted text


 <p>A code snippet: some code</code></p>


  • <ol>…</ol>
  • Tag for ordered or numbered list of items.
  • <ul>…</ul>
  • Contrary to the above tag, used for unordered
    list of items.
  • <li>…</li>
  • Individual item as part of a list.
  • <dl>…</dl>
  • Tag for list of items with definitions.
  • <dd>…</dd>
  • The definition of a single term inline with body content.


  • <ol>
  • <li>Monday</li>
  • <li>Tuesday</li>
  • <li>Wenesday</li>
  • </ol>
  • <ul>
  • <li>France</li>
  • <li>Germany</li>
  • <li>Italy</li>
  • </ul>
  • <dl>
  • <td>Toyota</td>
  • <td>Japanese car brand</td>
  • <td>Armani</td>
  • <td>Italian fashion brand<</td>
  • </dl>


<a href=””>…</a>

Anchor tag. Primarily used for including hyperlinks

<a href=”melto”>…</a>

Tag dedicated to sending emails.

<a href=”tel://###-###”>…</a>

Anchor tag for mentioning contact numbers.As the numbers are clickable, this can be particularly beneficial for mobile users.

<a name=”name”>…</a>

This tag can be used to quickly navigate to a different part of the webpage.

 <a name=”#name”>…<a/>

A variation of the above tag, this is only meant to navigate to a div section of the webpage.



A tag to display images in the webpage.

 src =”url”

The URL or path where the image is located onyour drive or on the web.


The text written here is displayed when userhovers mouse over the image. Can be used togive additional details of the image.


Specifies image height in pixels or percentages.


Specifies image width in pixels or percentages.


The relative alignment of the image. Can changewith changes to other elements in the webpage.


Specifies border thickness of the image. If notmentioned, defaults to 0.


Denotes an interactive (clickable) image.

<map name>…</map>

Name of the map associated between the imageand the map.


Specifies image map area.


Shape of the area.


Coordinates of the vital information of the shape. Example: vertices for rectangles, center/radius for circles.


  • <img src=”planets.gif” width=”145″ height=”126″alt=”Planets” usemap=”#planetmap”>
  • <map name=”planetmap”>
  • <area shape=”rect” coords=”0,0,60,100″href=”sun.htm” alt=”Sun”>
  • <area shape=”circle” coords=”90,58,3″href=”mercur.htm” alt=”Mercury”>
  • <area shape=”circle” coords=”124,58,8″ href=”venus.htm” alt=”Venus”>
  • </map>



Tag for ordered or numbered list of items.


Contrary to the above tag, used for unordered list of items.


Individual item as part of a list.


Tag for list of items with definitions.


The definition of a single term inline with body content.


The description for the defined term.


  • <ol>
  • <li>Monday</li>
  • <li>Tuesday</li>
  • <li>Wednesday</li>
  • </ol>
  • <ul>
  • <li>France</li>
  • <li>Germany</li>
  • <li>Italy</li>
  • </ul>
  • <dl>
  • <dt>Toyota</dt>
  • <dt>Japanese car brand</dt>
  • <dt>Armani</dt>
  • <dt>Italian fashion brand</dt>
  • </dl>



The parent tag for an HTML form.

The URL listed here is where the form data will be submitted once user fills it.
It specifies which HTTP method (POST or GET) would be used to submit the form.

Only for POST method, this dictates the data encoding scheme to be used when form is submitted.
Determines if the form has auto-complete enabled.
Determines whether the form should be validatedbefore submission.
Determines character encodings when form is submitted.
After submission, the form response is displayed wherever this refers to, usually has the following
values: _blank, _self, _parent, _top


Identifies the group of all fields on the form.


This is used to label a field in the form.


This operates as a caption for the


This tag is used to take input from the user. Input type is determined by a number of attributes.

Input Type Attributes

Determines which type of input (text, dates,password) is requested from the user.
Specifies the name of the input field.
Specifies the value contained currently in the input field.
Determines the input element width (number of characters).


Specifies the most input field characters allowed. required Makes an input field compulsory to be filled by the user. The form cannot be submitted if a required field is left empty.


Determines the width of the input element, in pixel values.

height=”” Determines the height of the input element, in pixel values.


Can be used to give hints to the user about the nature of the requested data.


Specifies a regular expression, which can be used to look for patterns in the user’s text.


The minimum value allowed for an input tags element.


The maximum value allowed for an input tags element.


Forces focus on the input element when webpage loads completely.


Disables the input element. User can no longer enter data.


For longer strings of input. Can be used to get multi-sentence text from the user.


This tag specifies a list of options which the user can choose from.

Select Attributes

The name of a particular list of options.
Total number of options given to the user.
States whether the user can choose multiple options from the list.

Specifies whether choosing an option/s is necessary for form submission.
Specifies that a drop-down list automatically comes into focus after a page loads.


Tag for listing individual items in the list of options.

Option Attributes

value=”” The text visible to the user for any given option.


Determines which option is selected by default when the form loads.

Button Tags  is Tag for creating a button for form submission.


  • <form action=”form_submit.php” method=”post”>
  •       <fieldset>
  •                <legend>Bio:</legend>
  •                 First name:<br>
  •               <input type=”text” name=”first-name”value=”John” placeholder=”Please enter your first name here”>                <br>
  •                Last name:<br>
  •                <input type=”text” name=”last-name” value=”Doe” placeholder=”Please enter your last name  here”>                 <br><br>
  •                Favorite sport:<br>
  •                <select>
  •                    <option value=”soccer”>Soccer</option>
  •                     <option value=”Tennis”>Tennis</option>
  •                     <option value=”golf”>golf</option>
  •                     <textarea name=”description”> </textarea>
  •                     <input type=”submit” value=”submit”>
  •                  </select>
  •           </fieldset>
  • </form>




Marks a table in a webpage.


Description of the table is placed inside this tag.


Specifies information pertaining to specific columns of the table.


The body of a table, where the data is held


Determines the footer of the table.


Denotes a single row in a table.


The value of a heading of a table’s column.


A single cell of a table. Contains the actual


Used for grouping columns together.


Denotes a column inside a table.


  • <table>
  • <colgroup>
  • <col span=”2″></col>
  • <tr>
  • <th>Name</th>
  • <th>Major</th>
  • <th>GPA</th>
  • </tr>
  • <tr>
  • <td>Bob</td>
  • <td>Law</td>
  • <td>3.55<</td>
  • </tr>
  • <tr>
  • <td>Alice</td>
  • <td>Medicine</td>
  • <td>3.61<</td>
  • </tr>
  • </colgroup>
  • </table>

Objects and IFrame


This tag is used to embed additional multimedia into a webpage. Can be audio, video, document (pdf) etc.

Determines object height in pixel values.

Determines object width in pixel values.

The type/format of the object’s contents.


An inline block of content, this is used as a container for multimedia in a flexible manner. It floats inside
a webpage, meaning it is placed relative to other  webpage items.

Iframe Attributes

The name of the iFrame.
The source URL/path of the multimedia object to be held inside the iFrame.
Any HTML content to be displayed inside the iFrame.
Determines the height of the iFrame.
width=” ”
Determines the width of the iFrame.


For iFrame customization. This includes additional parameters to go along with the content.


This is used to embed external objects, like plugins (e.g. a flash video).

Embed Attributes

Determines the height of the embedded item.
Determines the width of the embedded item.
The type or format of the embedded content.
The URL/path of the embedded item.


<object width=”1000″ height=”1000″></object>

<iframe e src=”some_other_webpage.html” width=”500″ height=”500″></iframe>

<embed src=”some_video.swf” width=”500″ height=“500″></embed>

HTML 5 new Tag


Specifies the webpage header. Could also be used for objects inside the webpage


Specifies the webpage footer. Could also be used for objects inside the webpage.


Marks the main content of the webpage.


Denotes an article.


Denotes content displayed in a sidebar of the webpage.


Specifies a particular section in the webpage.


Used for additional information. User has the option to view or hide this.


Used as a heading for the above tag. Is always visible to the user.


Used to create a dialog box.


A tag reserved for figures (diagrams, charts) in HTML5.


A description of the figure is placed inside these.


Used to highlight a particular portion of the text.


Navigation links for the user in a webpage.


A particular item from a list or a menu.


Measures data within a given range


Typically used as a progress bar, this is used to track progress.


This tag is meant for showing text for browsers without ruby annotation support.


Displays East Asian typography character details.


Describes a Ruby annotation for East Asian typography


Tag for formatting date and time.


A line-break within the content.

Collective Character Objects

&#34; &quot;
Quotation Marks – “
&#60; &lt;
Less than sign – <
&#62; &gt;
Greater than sign – >
&#160; &nbsp;
Non-breaking space
&#169; &copy;
Copyright symbol – ©
&#38; &amp;
Ampersand – &
&#64; &Uuml;
@ Symbol – @
&#149; &ouml;
Small bullet – •
&#153; &ucirc;
symbol – ™






Mr. tim berners-lee

history html or www

Tens of millions of people have used it to set up businesses, to learn, and to communicate as a means of communication during a time


The Complate HTML Chat Sheat​ For web Developers It is Crucial to be Profitcient in THML and while HTML is not the Most Difficult accustom