Forum : Can align attribute be used in other tags.
Brief description  about Online courses   join in Online courses
View Navya  Urs 's Profile

Can align attribute be used in other tags.

Can we use the align attribute in other tags except <p>
Like, wat if i want to place a heading in center of the page.
Asked by Navya Urs | Jul 17, 2009 |  Reply now
Replies (3)
View srikanth haritsya 's Profile
Align is a tag and it's use is barely restrictable, you definitely can play around with the tag without being eyed from w3c.

However i would suggest not to use these tags in real world scenarios as they create overheads codes for search bots.

lesser the code the better, perhaps you will come to know a better way of doing that when you reach css & it's fun too.
Jul 17, 2009
View navya urs 's Profile
thanku
Jul 17, 2009
View vardhani subramanian 's Profile
Hi ,
Align attribute can be used for any tags inside the body... eg in h1,h2,h3,img etc.
example
<html>
<!--- out side the body it doesn work--->
<head align=center>
hi</head>
<body>
<!--- align tag works within the body of the html code---->
<h1 align=center>
Heading
</h1></body>
</html>
vardhani
Jul 17, 2009