HTM-02200 | How do I change the size of an ?
- There are several ways to resize an image.
- It is possible to resize an image utilizing HTML and CSS.
- For this lesson, we will cover how to resize using HTML.
- To resize an image in HTML, it is pretty simple.
- All that is needed is to specify the width and height attributes in the
<img src>
tag. - See the example below:
<img src="images/fish.jpg" alt="Crazy fish logo" width="200" height="40" />
- Take a look at the following example and adjust the width and height sizes to see the image change:
- Click here to view an
<img>
resizing element example.
{post_title}
{post_content}
{associated_insight_resource.post_title}
{associated_insight_resource.resource_link}
{associated_insight_resource.insight_type }