Hello, as a coding beginner I have a question regarding my recent CSS changes affecting the spacing in my HTML document.
Original HTML:
<a
href="https://en.wikipedia.org/wiki/Brown_bear">Learn More</a>
<p>Here are some bear species:</p>
<ul>
<li>Arctos</li>
<li>Collarus</li>
<li>Horribilis</li>
<li>Nelsoni (extinct)</li>
</ul>
Original CSS:
h1,p1,p2 {
color: CadetBlue ;
}
Changed HTML:
<a
href="https://en.wikipedia.org/wiki/Brown_bear">Learn More</a>
**<p1>**Here are some bear species:**</p1>**
<ul>
<li>Arctos</li>
<li>Collarus</li>
<li>Horribilis</li>
<li>Nelsoni (extinct)</li>
</ul>
CSS remains the same
Original Look:
Learn More Here are some bear species:
Arctos Collarus Horribilis Nelsoni (extinct)
After Change:
Learn More Here are some bear species: Arctos Collarus Horribilis Nelsoni (extinct)
Below are not codes
I am trying to create a one line space between "Learn More" and "here are some bear species," but after changing <p></p>
to <p1></p1>
, it somehow moved up and stuck together.
Can someone please explain why this is happening and how to solve it?