If you’re limited to not using CSS, what you could do is use a single paragraph and separate with a simple line break.
Thus:
<p>primeiro parágrafo<br>segundo parágrafo</p>
Upshot:
first paragraph
second paragraph
On the other hand, using CSS, we have the following: Every browser adds its own style rules to the common elements. Google Chrome, for example, sets these rules:
p {
-webkit-margin-before: 1em;
-webkit-margin-after: 1em;
}
Already Firefox does so:
p {
margin-top: 16px;
margin-bottom: 16px;
}
Visually the effect is the same: add a margin to the element <p>
. The simplest and best portable way between different browsers is to use the normalize.css
. It contains rules to undo the default rules of all browsers and make the style unique. So use:
<link rel="stylesheet" href="http://necolas.github.io/normalize.css/3.0.1/normalize.css">
Alternatively you can reset all forms of element margin with this rule:
<style>
p {
margin: 0;
}
</style>
Or so applied:
<p style="margin: 0;">primeiro parágrafo</p>
<p style="margin: 0;">segundo parágrafo</p>
Have you tried researching something on the subject?
– ramaral
Yes, I searched, but I did not find anything in html simplified, but I already solved with one of the tips of a colleague of the site.
– Adrian Roger