3.3 HTML Tags and Attributes

The key to HTML is in the tags.  Tags are keywords enclosed in less than “<” and greater than”>” signs that indicate what kind of content is coming up.  The HTML documents can be opened in a special program called browser.  A browser can interpret the HTML tags and then show the formatted document on the screen for the users.

When a web page is to be developed, the following are to be planned.

  • Content of the Page
  • Appearance of the Page


The appearance of the web page is coded in HTML language using HTML tags.

A HTML tag is a keyword which is a command giving instructions to the browser about how to display the content specifying the appearance of the content.  The following are the salient features of a HTML tag.

A tag consists of keywords enclosed between”<” and “>” symbols, Examples are <HEAD>, <H1>, <HR>

The end of the tag is marked by the symbol”</”.  Most of the tags have end tag, which begins with </.  For example </H1> is the end tag for <H1>.

A tag may have some attributes.  Attribute is a name-value pair separated by an equals(=) sign.  Attributes offer a variety of options for the contained text.  They are properties of a command of a tag.  You can use this tag for drawing a horizontal line.  This tag has the following attributes:

  1. Size (thickness of the line)
  2. Width
  3. Alignment

These are represented as follows:

<HR SIZE=10 WIDTH = 25% ALIGN = left >

Sign-up for our email newsletter and get free job alerts, current affairs and GK updates regularly.
Subscribe Here (or)

Leave a Reply

Your email address will not be published. Required fields are marked *

+ 8 = twelve

Popup Dialog Box Powered By : XYZScripts.com
  • RSS
  • Facebook
  • Google+
  • Twitter