parent
4f0f87c124
commit
6c0819acdf
|
@ -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
|
## 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
|
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
|
## Span Tag
|
||||||
|
|
||||||
|
@ -36,7 +36,14 @@ 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>``
|
``<p>Hello my name is <span style="padding-left: 2px;"> James</p>``
|
||||||
|
|
||||||
## Using Non-Breaking Space
|
## 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.
|
||||||
|
|
||||||
|
## Non-Breaking Space
|
||||||
|
|
||||||
A non-breaking space is a space that will not break into a new line using ** **;.
|
A non-breaking space is a space that will not break into a new line using ** **;.
|
||||||
|
|
||||||
|
@ -47,5 +54,3 @@ For example
|
||||||
## More Information
|
## 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
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue