DEV Community

w3codemaster
w3codemaster

Posted on

1

how to insert space in html ?

some HTML space tag

The HTML "br" tag denotes a line break, like a carriage return in a word processing program. You’d use it at the end of each line of an address, for example, to get the block format people are accustomed to seeing.

The "p" tag generates a paragraph break. It is applied to a section of text that is a block of text separated from nearby blocks of text by a blank space and/or first-line indent.

The "pre" tag is used with preformatted text. It instructs the browser that the text is to appear exactly as written in the HTML file including any spaces or blank lines. If you type five spaces inside "pre" tags you get five spaces on the website.character

The "nbsp" character creates a space that does not break into a new line. Two words that are separated by a non-breaking space always appear on the same line.

a live example is here

HTML insert space

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay