ooglewindowblinds.com

Easy and Free adobe CS photoshop tutorials and lessons online

HTML Tag attributes:

February 18th, 2008 · No Comments

HTML tag attributes are the properties of the HTML elements that you use. The attributes are always used in the opening tags of the HTML elements. Their format is somewhat like name=”value” for example.
<p align=”left”>
This will tell the browser to align the paragraph to the left of the screen.
Since examples are the best way to learn the language, let’s implement the above given tag attribute in an example.
<html>
<body>
<title> test </title>
<i><P align=”right”>It’s a Monday morning and you just don’t want  to drag yourself out of bed and get ready for work.</P></i>
<strong><P align=”left”>It’s a Monday morning and you just don’t  want to drag yourself out of bed and get ready for work.</strong>
<big><P align=”center”>It’s a Monday morning and you just don’t  want to drag yourself out of bed and get ready for work.</P>
</body></big>
</html>
As you can see, we just used the basic <p> tag to align three paragraphs right, center and left.
Let’s have some more fun in the following html code tutorial example of tag attributes.
<html>
<head>
<title>Test </title>
</head>
<body bgcolor=”green”>
<p align=”center”> hello!</p>
</body>
</html>
We have just used a very important attribute to change the background color of the body. Hopefully, this example has also cleared some concepts regarding the <body> tag.
Through HTML attributes, you can select the exact size of the text, create tables, modify the placement of your headings and do a whole lot of other stuff. Thus, you will find that HTML attributes are used in almost every website you may encounter on the internet.

Tags: HTML tutorials

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.