Run

Tutorial With Example

Run your live code

 
​x
 
1
<!DOCTYPE html>
2
<html>
3
  <head>
4
​
5
  </head>
6
<body>
7
<p><img src="https://developerstutorial.com/example-image/html.png" alt="Smiley face" style="float:right;width:42px;height:42px;">
8
The image will float to the right of the text.</p>
9
​
10
<p><img src="https://developerstutorial.com/example-image/html.png" alt="Smiley face" style="float:left;width:42px;height:42px;">
11
The image will float to the left of the text.</p>
12
​
13
</body>
14
</html>