HTML Tag attributesAuthor : Yathish Kudkuli
E - Mail :

In the previous article, named "Changing appearance", we saw how HTML tags are used to change the appearance in an HTML document. The HTML documents are basically made up of these tags which are nothing but, elements. The element defines the different tags across the HTML document.

Within the various tags there are various parameters followed by values. These parameters or arguments within the elements are technically known as attributes.

tag description

Figure shows the font element with its attributes and values along with contents. This element formats the contents using values specified within the given attributes.

Attributes are always specified within starting tags, not within ending tags.

Although it is not mandatory, the element names and attribute names must be of lower case. The values of attributes must be specified within double quotes, even if it is not mandatory. It is because, some browsers follow strict conventions.

One can use single quotes instead of double quotes in some situations, where the value contains double quotes. But, use of double quotes is preferred over the use of single quotes.

<p title='Team ICanTech.In is developing the "ProgrammingBasics.In" website'>

The title attribute of p is assigned a value of 'Team ICanTech.In is developing the "ProgrammingBasics.In" website. Since, the value ProgrammingBasics.In is within double quotes, one cannot use double quotes while assigning the value and hence single quotes are used.

Attributes are separated by space after specifying value. The starting attribute is the first one which is also specified, separated by a space after specifying the particular tag element.

The contents to be rendered on web page is specified after closing the > bracket and in between the opening and closing tags.

Note: Not all tags render contents specified. There some tags which does not render the contents, at all. Such tags are well known as supporting tags. They support some functionality in web pages from the background.

Author : Yathish Kudkuli
E - Mail :
  About Team ProgrammingBasics.In

Contact Team ProgrammingBasics.In

Instructions for submitting your own article

About Team ProgrammingBasics.In

Right now, we are a small but, dedicated team who strived day and night to alter the pretty old into a new conceptual website "The ProgrammingBasics Foundation Library".

The articles and topics in the website are the major contributions of freelancers, programmers across the globe. We thank each of them for their valuable contributions. You can also become a contributor by sending some software related articles to us. We will publish it in our website. Instructions for the same are given in the "Instructions for submitting your own article" page.

Contact Us

ICan Technologies,
HIG 44, 23rd Cross, 8th Main,
E-Block, Vijayanagar 3rd Stage
Mysore-570017, Karnataka, India

Mobile: +918050239039

Instructions for submitting your own article

Want to become an article contributor to this site ?

If yes, then send us an article written by you on your own words, neatly typed in MS Word document. If we feel that, you have written the article by using some other article then we will reject the article. Every article we will cross verify, before we publish them. The right to reject the article is with us.

If you want to publish your name and email id's, specify the same in the document.

NOTE: You must give your consent in the email for publishing your email id and your name. Otherwise, your name and email-ids will not get published. We respect your privacy.

One article per document, which means, you must not send more than one article in one document. Everything in the sent document will be treated as one article and your article will get rejected without looking in, further.

The articles must and should be related to computer basics, programming concepts and programming languages. We will not entertain any other topics. Please bear this in your mind, before starting an article write-up.

Articles published in are the sole property of ICan Technologies, Mysore. You are here in authorizing ICan Technologies, Mysore to take the ownership of the published article. Rejected articles will not be published and you can try to publish the same in other sites. We will inform you the status of your submitted article within 10 working days, from the date of sent mail. If not responded within 10 days, then you are free to try publishing your article on some other websites. We will simply discard them and will not publish them any further. Once we publish the article, you will not be allowed to publish as it is, in some other website. If we find it, then your article will be removed from site and the removal will be informed to you.

Send your articles to with "Article for Publishing" in the subject line.

You must create your own images in PSD (Photoshop Document) only, which is to be supported in CS3 or lower versions. Any animated stuffs, must be in fla files (Flash editable file) and not in any other format and must be readable in Falsh 8.0.

You are now in Languages, HTML, HTML Tag attributes