Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Attributes

0/1

HTML Paragraphs

0/1

HTML Formatting

0/1

HTML Comments

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML Symbols

0/1
Text lesson

Non-breaking Space

A frequently utilized HTML entity is the non-breaking space:   

A non-breaking space functions as a space that remains intact without causing a line break.

When two words are separated by a non-breaking space, they remain together without breaking onto a new line. This is particularly useful when separating the words might disrupt the flow of content.

Examples:

  • § 10
  • 10 km/h
  • 10 PM

Another common application of the non-breaking space is to prevent browsers from trimming spaces in HTML pages.

For instance, if you include 10 spaces in your text, the browser will eliminate 9 of them. To retain actual spaces in your text, you can utilize the   character entity.

The non-breaking hyphen (‑) is employed to designate a hyphen character (‑) that does not cause a line break.