--- 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. ## Span Tag ```` Span Tags ```` are self closing tags meaning they do not need a ``/>``. ## Span Example An example of how a ```` tag inserts a space between text can be seen below. ``

Hello may name is James

`` If you assign a class to your ```` then you could add some css to it. Like so, ``

Hello my name is James

`` Then either in an external stylesheet or an internal-stylesheet you can give the ``class .tab`` some properties. ## Span Class Example For example ``.tab {padding-left: 2px;}`` You can also give the ```` some inline-style properties, as shown below. ``

Hello my name is James

`` ## More Information For more information on the 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