For this example instead of using <br> or <clear> or <figure> tag can I use any other tags or CSS elements?
<!DOCTYPE html>
<html>
<head>
<title>my page</title>
<style>
img.one
{
float:right;
width:400px;
height:312px;
}
h1.two {text-align:right;}
</style>
</head>
<body>
<h1 class=“two”>this is some text.</h1>
<img class=“one” src=“images/old.jpg” alt=“”>
<br><br><br><br><br><br><br><br><br><br><br><br>
<h1 class=“two”>this is some text.</h1>
</body>
</html>
ralphm
2
There are various options, including clear: both on the h1s:
<!DOCTYPE html>
<html>
<head>
<title>my page</title>
<style>
img.one
{
float:right;
width:400px;
height:312px;
margin-bottom: 30px;
}
h1.two {text-align:right; [COLOR="#FF0000"]clear: both;[/COLOR]}
</style>
</head>
<body>
<h1 class="two">this is some text.</h1>
<img class="one" src="images/old.jpg" alt="">
<h1 class="two">this is some text.</h1>
</body>
</html>
PaulOB
3
You asked this same question yesterday and it was answered in detail.
Please do not post duplicate threads.
Thread closed.