I have this little piece of code and I often run into this problem knowing it's bad practice and I seek to find a better way to optimize this code.
<p>Register a house <a href="register.php">here</a>.
<input type="submit" value="Login" onclick="formhash(this.form, this.form.password);" class="login"></p>
As you can see, I have wrapped the whole text in a <p>
tag which is obviously bad practice but I need the two things to stand next to each other, and putting them on the same paragraph is surely the easiest way, but what ways would be best practice?
I have considered using a table for this, but using tables for things that are not meant to be a part of a table seems like bad practice too, lot's of code and it might be confusing.
Any advice? Thanks in advance.
<p> <label></label> <input></p>
<div>
or<section>
?<span>
instead of a.<p>
tag it may solve your problem