Revolution Posted December 3, 2005 Share Posted December 3, 2005 (edited) lets say we have a link and we want to center itthis does not work <body><head><style type="text/css">h5 {text-alingn: center}</head><body>this is in the body and im about to linkhere<a href="blah.htm">This is the part i want to link</a>and i tried doing this <a href="blah.htm"><h5>This is the part i want to link</h5></a>and it didnt work guide me please</body></html> Edited December 3, 2005 by Skemcin Link to comment Share on other sites More sharing options...
Skemcin Posted December 3, 2005 Share Posted December 3, 2005 just some incorrect tag placement, omissions, and typos: <html><head><style type="text/css">h5 {text-align: center}</style></head><body>this is in the body and im about to linkhere<a href="blah.htm">This is the part i want to link</a>and i tried doing this<a href="blah.htm"><h5>This is the part i want to link</h5></a>and it didnt workguide me please</body></html> a.) spelled "align" wrongb.) <head> tag should not be inside the <body> tagc.) <style> tag is never closed Link to comment Share on other sites More sharing options...
F-Man Posted December 3, 2005 Share Posted December 3, 2005 <a> should be inside <h5> too. Link to comment Share on other sites More sharing options...
~Shinta Posted December 4, 2005 Share Posted December 4, 2005 Also, I'd just like to point out to you that in your example you didn't use the header tag correctly. You should have used css to make the text small, not a header tag. Header tags are for heading off pages, not making text large. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now