Below is test code I'm looking at to get a simple toggle out when I click on toggle link:

The <h2> tage and <a> tag shifts below the <p> block even though it's wrapped in the code.

Any help with this would be great.

<!DOCTYPE html>
<script src="//">

<p style = "width:100%;height:200px;background-color:lightblue;">
<h2 style = "float:left;">This is a heading.</h2>
<a href="#" style = "float:right;">Toggle</a>