0

How to start writing BESIDE an image in HTML ?

Normally when we use the<img src="bla bla.jpg> The writing starts from the bottom of image. I want to write beside the image. I also tried reducing height and width. But it didnt turn out. How can i write beside an Image? Tnx in advance.:-)

4th Oct 2017, 8:16 AM
Tahmid
Tahmid - avatar
1 ответ
+ 9
It depends on the tag you're using to display the text, if it's a block element then it will start on a new line. (e.g. <p>) Inline element will display side-by-side on the same line and some common one would be <span>, <label> & etc. 💡 Demo: https://code.sololearn.com/WdAEz2j4ssYA/?ref=app
4th Oct 2017, 8:30 AM
Zephyr Koo
Zephyr Koo - avatar