Basic syntax question

Joined
Jan 6, 2023
Messages
1
Reaction score
0
I'm completely new to programming. Improve the following:
<p><b>Blah</b>
<br>blah blah blah blah blah blah blah


I thought something like this would work, but it leaves a huge space between the header and the paragraph. I don't want that:
<h1>Blah</h1>
<p> blah blah blah blah blah blah blah
 
Joined
Jul 12, 2020
Messages
89
Reaction score
9
1. HTML is a formatting language not a programming one.
2. The space you see are browser default settings which can be over-ridden by inline styles or stylesheets
as shown above.
3. Always use closing tags on elements that are not considered "empty" elements.
Code:
<h1>Heading 1</h1>
<p>Continuos running paragraph text. Continuos running
paragraph text. More paragraph text. Even more paragraph
text.</p>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top