Do you know how to center text using html coding? Long before I started blogging and got into the world of blog/web design, I started selling my son’s baby clothes on Ebay. It was then, that I was introduced to HTML code.
What is HTML?
HTML is a language for describing web pages. It stands for Hyper Text Markup Language. So when it comes to blogging, knowing how to center images, posts and much more is beneficial. So, here is how it is done!
All you need to do is place this simple HTML Tag at the beginning of the code, image or wording you want to center in a widget or text section of your blog post: <center>. Then you will want to place </center> at the end of the code, image or wording you want to center.
HTML Code for an image (not centered):
<a href=”http://2.bp.blogspot.com/-80DygujULSA/TdNDahI_7hI/AAAAAAAAAKM/SDs32viutSs/s1600/Domestic-Mom-Ill.png” imageanchor=”1″ style=”margin-left: 1em; margin-right: 1em;”><img border=”0″ height=”248″ j8=”true” src=”http://2.bp.blogspot.com/-80DygujULSA/TdNDahI_7hI/AAAAAAAAAKM/SDs32viutSs/s320/Domestic-Mom-Ill.png” width=”320″ /></a>
Here is the code for the image (centered):
<center><a href=”http://2.bp.blogspot.com/-80DygujULSA/TdNDahI_7hI/AAAAAAAAAKM/SDs32viutSs/s1600/Domestic-Mom-Ill.png” imageanchor=”1″ style=”margin-left: 1em; margin-right: 1em;”><img border=”0″ height=”248″ j8=”true” src=”http://2.bp.blogspot.com/-80DygujULSA/TdNDahI_7hI/AAAAAAAAAKM/SDs32viutSs/s320/Domestic-Mom-Ill.png” width=”320″ /></a></center>