<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
img{
width: 125px;
height: 100px;
float: right;
}
</style>
</head>
<body>
<h1>CSS clear Property</h1>
<img src="car-left.png">
<p> This is a paragraph.</p>
<button onclick="myFunction()">Click Me</button>
<script>
var x = document.getElementsByTagName("p")[0];
function myFunction(){
x.style.clear = "right";
}
</script>
<p><strong>Note</strong>: click on the button to change the 'clear' from none to right.</p> </body>
</html>