Question:

How do I change the size of a pic using html?

by  |  earlier

0 LIKES UnLike

Like I would do <img src=LINK HERE>

But I forget where I put the width and height.

I'd want it to be 500 by 300.

Thanks!

 Tags:

   Report

4 ANSWERS


  1. use this format

    &lt;IMG SRC=&quot;IMAGE URL HERE&quot; ALT=&quot;&quot; WIDTH=&quot;90 &quot;HEIGHT=&quot;90&quot; BORDER=&quot;0&quot;&gt;&lt;/A&gt;


  2. I&#039;d recommend resizing the picture to 500 by 300 in a photo editor and then uploading the image at the desired final size. (You can still specify the size in the &quot;&lt;img src=&quot; HTML line.)

    By doing this, the resizing will be done only once (in the photo editor) rather than every time the photo is viewed on your page. That should also speed up your page loading time.

  3. &lt;img src=&quot;image.jpg&quot; width=&quot;500&quot; height=&quot;300&quot; /&gt;

  4. &lt;img src=&quot;image.jpg&quot; width=&quot;500&quot; height=&quot;300&quot;&gt;

    Hope this Helps. =]

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions