line break text (#31878)

additional information about line breaks added.
pull/28813/head^2
DavidNachman 2019-03-14 23:56:31 -07:00 committed by The Coding Aviator
parent 4f0f87c124
commit 6c0819acdf
1 changed files with 9 additions and 4 deletions

View File

@ -4,7 +4,7 @@ title: How to Insert Spaces or Tabs in Text Using HTML and CSS
## How to Insert Spaces or Tabs in Text Using HTML and CSS
There are a multitude of ways to insert spaces using html. For simplicity sake we will
go over one of these, which are by inserting a Span tag.
go over a couple of these.
## Span Tag
@ -35,8 +35,15 @@ For example
You can also give the ``<span>`` some inline-style properties, as shown below.
``<p>Hello my name is <span style="padding-left: 2px;"> James</p>``
## Line Break Tag
``<br>``
Line Break Tags ``<br>`` are self closing tags meaning they do not need a ``</br>``.
A Line Break Tag is generally used when a Line Break without a new paragraph is needed.
## Using Non-Breaking Space
## Non-Breaking Space
A non-breaking space is a space that will not break into a new line using **&nbsp**;.
@ -47,5 +54,3 @@ For example
## More Information
For more information on the <span> tag or on; How to Insert Spaces or Tabs in Text Using HTML and CSS, you can visit w3schools. https://www.w3schools.com/tags/tag_span.asp