To add space in HTML, you can use the following methods:
- Non-breaking space character : Use
to create extra space, which also prevents the browser from breaking a line at that point
. You can use multiple of these entities in a row to create wider gaps
- CSS margin : Employ the
margin
property to generate space around HTML elements, controlling the space outside the element's border
. For instance, margin-left: 40px;
indents a paragraph
- CSS padding : Use the
padding
property to create space within an element, between its content and border
- CSS white-space property : The
white-space
property can be used to affect how space characters are rendered in HTML
. Using white-space: pre;
preserves spacing and line breaks
- Specific HTML space entities : Apart from
(non-breaking space), other HTML entities can create different amounts of space, such as 
(en space) and 
(em space)
- CSS letter-spacing : The
letter-spacing
property is used to specify the space between the characters in a text
- Line Breaks : Use to create vertical space between lines of content