Home >Web Front-end >CSS Tutorial >What are the codes for spaces in css
There are three types of space codes in CSS: space ( ), newline (n), and tab (t). Spaces are used to separate properties and values, newlines are used to break lines within a declaration, and tabs are used to indent blocks of code.
#What are the codes for spaces in CSS?
There are three types of space codes in CSS:
Usage of spaces
Spaces
color : red;
font-family: Arial, Helvetica, sans-serif;
Line break Characters
Between different lines in a declaration:
<code class="css">color: red; font-size: 12px;</code>
Tab characters
is used to indent code blocks:
<code class="css">body { margin: 0; padding: 0; }</code>
The above is the detailed content of What are the codes for spaces in css. For more information, please follow other related articles on the PHP Chinese website!