add non-breaking space with example (#27533)
This commit is contained in:
committed by
The Coding Aviator
parent
a57baf07fd
commit
1be6528d4b
@ -16,7 +16,7 @@ Span Tags ``<span>`` are self closing tags meaning they do not need a ``/>``.
|
||||
|
||||
An example of how a ``<span>`` tag inserts a space between text can be seen below.
|
||||
|
||||
``<p>Hello may name is <span> James</p>``
|
||||
``<p>Hello my name is <span> James</p>``
|
||||
|
||||
If you assign a class to your ``<span>`` then you could add some css to it.
|
||||
Like so,
|
||||
@ -36,6 +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>``
|
||||
|
||||
## Using Non-Breaking Space
|
||||
|
||||
A non-breaking space is a space that will not break into a new line using ** **;.
|
||||
|
||||
For example
|
||||
|
||||
``<p>Hello my name is James</p>``
|
||||
|
||||
## 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
|
||||
|
Reference in New Issue
Block a user