Introduction to HTML:




HTML stands for HyperText Markup Language. A markup text language uses instructions that are embedded in the document. HTML describes the document text. It also describes that how the text document looks like?




For example:

Let us suppose that we wanted a word to be displayed in boldface. This language expresses the way that how the word will be displayed as boldface. In computer programming, every text uses an electronic tool for processing.

There are two ways to create markup languages: physical markup that markup the tags explicitly like it defines how the documents look like, and the second way can be named as logical or semantic markup, this method defines the structural meaning of the text and that how the text will look like.

Physical markup is greatly used to print the text.In short the semantic method is used to define or display the syntaxes. It becomes easy to translate long headings into short commands that will define the structure of the text.

HTML Document

An HTML document is so simple to write. An HTML document is shown below:

<html>

<head>

<title> This is the tile </title>

</head>

<Body>

<h1> This is the heading </h1>

<p> this is the first paragraph  </p>

</body>

</html>




It looks like a plain text document. This is what an HTML document is, it is just printable text or ordinary characters having a simple syntax. A simple HTML document can be prepared using a simple text editor like notepad editor on windows computer. For Macintosh we use TeachText editor to write HTML document. You do not need any special or fancy editor to write your HTML document.

HTML Tags

HTML tags are the things that make the document special. HTML tags are enclosed within greater and less than sign, as shown above. These are the instructions or the markup instructions that are use to explain each part of the document of HTML.

Example:

The tag  <h1> indicates the start of heading 1of the HTML document and </h1> shows the end of heading 1 of HTML document.To demonstrate this consider the following example:

<h1> this is first heading </h1>

The string “this is first heading” is considered to be the first or the main heading of HTML document. In HTML document we can use up to six headings like h1 to h6. The forward slash inside the tag </h1> is used to indicate the end of the string or the heading. HTML supports case insensitivity, it means that <h1> is equivalent to <H1> but capitalization is strongly recommended to make the tags differ from typical HTML text.

Structured language

A structured language means that there are strict rules and regulations for writing a document. Likewise HTML is a highly structured language. These rules are maintained to get a logical structure of the HTML document. For example we cannot write:

<h1> and <h2> together like <H1><H2>.……</H1></H2>. It is quite clear that we cannot write a list inside a heading. This is the main concept of structured language.




HTML versions

It is very important to know which version of the language you are using. We can determine the version of the language by the version number of HTML. The first version of the HTML is called “HTML 1.0” and version 2 is “HTML 2.0”. “HTML 2.0” is often considered to be the standard one. There are other versions like 2.2, 3, 2.1, etc. The new versions have extra functions or pieces e.g. they include tables, footnotes etc.