Home
HTML
HTML Images
Example 12: HTML Images
Run ❯❯
<!DOCTYPE html> <html> <head> <title>HTML Image Float Example</title> </head> <body> <h1>HTML Image Float</h1> <p><img src="chromelogo.png" alt="Chrome Logo" style="float:right;width:40px;height:40px;">We have set the float property to right.</p> <p><img src="chromelogo.png" alt="Chrome Logo" style="float:left;width:40px;height:40px;">We have set the float property to left.</p> </body> </html>