Jump to content

Center a Link


Recommended Posts

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 by Skemcin
Link to post
Share on other sites

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...