0

Incorrect alignment in HTML code

The picture is not getting aligned to the center. Even if I change it and use align in image tag, like <img src=".." align="center"> the image is still not coming to the center. What is the mistake here? https://sololearn.com/compiler-playground/WaO7cnhxl7Ym/?ref=app

29th Jun 2024, 1:50 PM
Shivam
Shivam - avatar
1 ответ
+ 3
img is an inline element. you can put it in a div or p and align the div/p or you make img a block element
29th Jun 2024, 2:09 PM
Lisa
Lisa - avatar