How to Center an Image Using HTML Programming

Learn HTML to use the basics of good web design.

HTML, Hypertext Markup Language, is a computer language used to create web pages. Web sites and web pages are written in HTML code. Whether setting up a personal or business web page, learning HTML code is beneficial for basic web page building skills. Knowing how to use the codes can help you manipulate your page settings for good web design. HTML documents contain plain text and have the .html or .htm extension. Center your image on the page for more appeal.
Difficulty: Moderately Easy

Start your word processor or text editor that you will use to create your web page.

Choose the GIF image that you wish to center on your page and save it in a location on your computer. If needed, you may reduce the size of the image so that it will take up less space on your computer. In order to reduce the size of the image, you need an image editing program.

Type <CENTER><IMG SRC=”?”></CENTER> Replace the question mark with the location of the image on your computer. If it is stored in the same folder as your web page, you can specify just the name of the image. Your text should look like the example below.


<HEAD><TITLE>This is your title.</TITLE>



<H1><CENTER>This is your text.</CENTER>

<CENTER><IMG SRC=”photo.jpg”></CENTER>

Open a new web browser to verify that your web page displays the text as centered on your page.


18 responses to “How to Center an Image Using HTML Programming

  1. I just want to mention I’m all new to blogging and site-building and truly savored you’re web-site. Likely I’m going to bookmark your blog post . You actually come with outstanding writings. Kudos for sharing your blog.

  2. Cheers Chaps

    nice site, so jealous right now

  3. Elizabeth Saxe-Coburg Gotha is a satanic peadofile Queen

  4. copertine neonato

    I?ve learn some excellent stuff here. Certainly price bookmarking for revisiting. I wonder how so much attempt you place to make this kind of magnificent informative site.

  5. pennsylvania truck accident lawyers

    As you can see, Closets by simply Design can be a well known enterprise throughout the Usa.

  6. You Can Try This Out

    This DVR computer software, in turn, is effective with the DVR table in order to first, adjust captured video pictures suitable possible in addition to recognizable formatting and 2nd, to deliver video camera controls, together with record plus playback capabilities.Lights with regards to Sony projection Tvs are made in addition to allotted just simply by simply Sony.Nonetheless and so is a laptop computer.

  7. Maragret Drewer

    I’ll right away seize your rss feed as I can not to find your e-mail subscription link or e-newsletter service. Do you have any? Kindly permit me recognize in order that I may just subscribe. Thanks.

  8. internet facebook restaurant menu app

    I Am Going To have to come back again when my course load lets up – however I am taking your Feed so i could read your site offline. Cheers.

  9. nastolatkinajmlodsze or zapraszamy or kategori

    A lot of regretted that each one web guru do not try for you to perhaps even check out company’s content, just do every little thing from compel. Nonetheless viewing your internet site, I see the light with expect.

  10. Escort girl Paris

    Merely wanna comment that you have a very nice site, I love the layout it really stands out.

  11. Nero

    I have academic a few weighty equipment via your send. I’d personally and similar to to mention that there can live situation where you will achieve submission for a lend and never penury a cosigner such as a Government Student Aid Lend. Nevertheless if you are getting that lend owing to a conventional loan check in that case you need to ensue organized to have a co-signer complete to achieve it easier for you. The lenders can build some resolution by the few factors except the biggest will be present your credit rating. In attendance are approximately credit companies that will furthermore glance on your work memoirs and choose based taking place that except in roughly every one of gear it will axis on your credit keep count.

  12. university of pitching

    I had been wanting to know if you ever thought of replacing the page layout of your site? It is very well written; I enjoy what youve got to state. But maybe you can create a little more in the way of content so people could connect to it better. Youve got a great deal of text for only having one or two pictures. Maybe you can space it out better?

  13. tell us what you think

    I think one of your advertisements triggered my internet browser to resize, you may well need to set that on your blacklist.

  14. adobe photoshop

    Hi there! Accomplish you get proviso they make one plugins to avoid with Search Engine Optimization? I’m irritating to get my blog to rank on behalf of approximately besieged keywords nevertheless I’m not seeing same safe domino effect. Qualification you know of any delight distribute. Thanks!

  15. Recommended Site

    Thanks , I have a minute ago been thorough used for information approximately this topic for a extensive time and yours is the furthermost I have came upon accordingly far-flung. Still, what in regards to the underneath line? Are you certain concerning the source?

  16. shakeology

    I Am Going To have to visit again whenever my course load lets up – nonetheless I am getting your Feed so i can go through your web blog offline. Cheers.

  17. over at this website

  18. Wanted to drop a remark and let you know your Rss feed is not working today. I tried including it to my Yahoo reader account but got nothing.

Like this post!! Add Your Comment here

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s