i'm making an test html webpage and i need to put 2 paragraphs in one line because i have an script for the two paragraphs, but i cant put it into only one line (sorry for my bad english) the full html code is here: https://pastebin.com/gZmLXxPR , the script:https://pastebin.com/wc01gjUy , and the css style: https://pastebin.com/d7d3AJFN
var counter = 1;
function upvote() {
counter = counter + 1;
document.getElementById("Likes")
.innerHTML = counter + " Likes";
}
<h1>PANDA</h1>
<img id="imagen1" src="img/panda.jpg">
<p color="blue" id="texto"><em>LIKE SI ES MONO</em></p>
<div id="section">
<td>
<p id="Likes">1 Likes</p>
<p id="DisLikes">1 DisLikes</p>
</td>
</div>
<img id="upvote" src="img/like.png" hspace="20" vspace="10" onclick="upvote()">
<img id="downvote" src="img/dislike.png" hspace="20" vspace="10" onclick="downvote()">
Ok, the paragraphs code is that:
<div id="section">
<td>
<p id="Likes">1 Likes</p>
<p id="DisLikes">1 DisLikes</p>
</td>
</div>
so i need to put that in only one line
` is not semantic, a `` probably makes more sense. Yes, let's use semantic HTML but let's be careful when complaining.
– Ruan Mendes Apr 03 '20 at 17:15