TechShizz | XHTML | Images

XHTML | Images

Here is how to insert an image with XHTML

<img scr="image1.png" />

If we want to set the width and height we can do that like this

<img scr="image1.png" width="200px" height="200px" />

<img scr="image1.png" width="auto" height="200px" />

<img scr="image1.png" width="200px" height="auto" />

We should always set alt and title tags for images

<img scr="image1.png" alt="Image description here" title="This shows on mouse over" />

Add comment