Reputation: 11
I'm trying to do something i think should be simple but i'm not getting it right, these are the lines i have written with no luck:
<input type="checkbox"> I agree to the <a hraf="terms & conditions.html></a> </input>
[i want this [this is the page i want the
as regular hyperlink to go to]
text]
how can i make it right? Thanks!
Upvotes: 1
Views: 57
Reputation: 241
Try with this:
<input style="float:none; vertical-align: middle;" type="checkbox" id="agree" />
<label style="display:inline; float:none" for="agree">
I agree with the <a href="terms & conditions.html"></a>terms and conditions.
</label>
Also check that you put the tag correctly. <a href=...>
, you've got a mistake (you did put hraf).
Upvotes: 0
Reputation: 8162
You need to use label
like:
<label for='checkterm'>I agree to the <a href="terms & conditions.html">terms</a></label>
<input type="checkbox" id='checkterm'>
Reference:
I recommend that you also read this article regarding inputs
(I see that you make mistakes)
Upvotes: 5