HTML Tutorial for Beginners

html

HTML stands for Hyper Text Markup Language, which is the most widely used language on Web to develop web pages.

HTML was created by Berners-Lee in late 1991 but “HTML 2.0” was the first standard HTML specification which was published in 1995. HTML 4.01 was a major version of HTML and it was published in late 1999. Though HTML 4.01 version is widely used but currently we are having HTML-5 version which is an extension to HTML 4.01, and this version was published in 2012.

  • <DOCTYPE html>
  •    <html>
  •      <head>
  •        <title>HyperText Markup Language</title>
  •      </head>
  •    <body>
  •   </body>
  •  </html>

head

  • <DOCTYPE html>
  •    <html>
  •      <head>
  •        <title>HyperText Markup Language</title>
  •      </head>
  •    <body>
  •   </body>
  •  </html>

body

  • <DOCTYPE html>
  •    <html>
  •      <head>
  •        <title>HyperText Markup Language</title>
  •      </head>
  •    <body>
  • The content of the document……

  •   </body>
  •  </html>

style

    I am Normal

    I am red

    I am blue

    I am big

id

<a id=”top”>Some heading</a>

HTML Tutorial for Beginners

class

My <a class=”note” >Important</a> Heading

This is some important text.

div

<div style”color:#0000FF”> This is a heading in a div element</div>

This is some text in a div element.

a

<a href=”http://stwi.in”>stwi.in</a>

h1

<h1>This is heading 1</h1>

br

To break lines</br>
in a text,</br>
use the br element.

em

<em>Emphasized text</em>

p

<p>This is a paragraph.</p>

img

<img src=”smiley.gif”/>
smiley

b

This is normal text – <b>and this is bold text</b>.

htmlend