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
1 Resposta
+ 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