Understanding HTML

HTML Stands for Hyper Text Markup Language. It’s used to design and format WebPages. Programming Languages like C/C++ are having syntax, which we should learn to effectively program in that language. In HTML, we call these syntax as Tags. Tags are enclosed within angular brackets < and >.

There are predefined tags in HTML which we have to use to design and develop web pages. For example, in order to make a text bold you have to apply the bold tag. First, you have to open the tag with the syntax <B>, then you should close the tag with the syntax </B>. Majority of tags in HTML, if opened should have to be closed with the syntax </>. You can code your tags as you wish because HTML is not a case sensitive language like C++ or Java. In this session, I will cover the fundamental tags available in HTML.

Basic Structure of HTML Tags

Every HTML code should have to be written in a structure which is defined by World Wide Web Consortium. It’s not compulsory to follow this structure. However, it’s a good programming practice to follow the structure while designing all your web pages. The structure looks like this:

<TITLE>Welcome to HTML</TITLE>
This is your first web page designed by HTML

Let’s Begin Coding

Just Copy and Paste the above code in the Notepad and save the file as First.htm or First.html. Both extensions works well. Now open up your browser (Microsoft Internet Explorer) or Netscape Navigator and browse for the file which you saved just now. If everything goes on well you will view the output. Whatever is printed inside the body tag will be displayed on the browser

Highlighting the Text in Bold, Italics and in Underlined Fashion

Apply the following code inside the body tag:

<B>Welcome to HTML</B><br>
<I>Welcome to HTML</I><br>
<U>Welcome to HTML</U><br> 

<br> denotes Line Break. It creates a new line.

Creating Paragraphs

Apply the following code inside the body tag:

<P>Many and online services require you to enter information, such as your user name and password, to establish a connection. You can create a Dial-Up Networking script that provides this information automatically, so you do not have to type it each time you connect. To create a Dial-Up Networking script, use a text editor, such as WordPad or Notepad, to create a. Use the Dial-Up Scripting tool to assign the script file to a Dial-Up Networking connection you have created.


It’s not compulsory to close the <P> tag.

Aligning Paragraphs

Before proceeding further you have to learn the concept of attributes. Attributes are similar to properties. In order to align the paragraph you have to make use of ALIGN attribute. All the attributes accepts values which are predefined. Align attributes takes 3 values like left, Center and Right.

Applying the code <p align = "center"> will start the paragraph from the center.

Applying Headings

You can use headings to organize your text in various levels. There are 6 levels of headings in HTML. They can be applied as follows.

<H1>This is Heading Level - 1 </H1>
<H2>This is Heading Level - 2 </H2>
<H3>This is Heading Level - 3 </H3>
<H4>This is Heading Level - 4 </H4>
<H5>This is Heading Level - 5 </H5> 

Creating Lists

Lists represents sequential placement of items or text. There are two types of Lists in HTML. They are Ordered Lists and Unordered List. Ordered List is represented by <OL> tag and Unordered List is represented by <UL> tag. Following examples will make the concept clear


If you want these languages to appear in bullets, then you have to change only the <OL> tag to <UL> tag.

Creating Definition Lists

Definition Lists are similar to glossary lists. A list of terms and its definitions are created by using this type of List. Here is an example

<DD>Developed by Sun Microsystems Inc
<DD>Developed by Microsoft Inc

Indenting the margins

<BLOCKQUOTE> tag double indents a block of text from both margins automatically from left to right.

Try out the following example and test it out in a browser:

<BLOCKQUOTE>You can use Sound Recorder to record, play, and edit sound files. To use Sound Recorder, you must have a sound card and speakers installed on your computer. If you want to record live sound, you also need a microphone. to start Sound Recorder. Notes: You can also start Sound Recorder by clicking Start, pointing to Programs, pointing to Accessories, pointing to Entertainment, and then clicking Sound Recorder. For information about how to use Sound Recorder, click the Help menu in Sound Recorder. </BLOCKQUOTE>

Leave a Comment