CSS
Cascading Style Sheet
Properties
S.No. | Properties | Description | Syntax |
---|---|---|---|
1 | Margin | It sets the margin area on all four sides of an element in one declaration. | margin:10px; |
2 | Padding | It allows you to specify how much space should appear between the content of an element and its border. | padding:10px; |
3 | color | This property is used to set the color of a text. | color:#ff0000; |
4 | Text-Indent | It defines indent the first line of a paragraph. | "<p style="text-indent:2.5px;">This is Skillpundit.</p>" |
5 | Text-align | It is used to align the text of a document. | "<p style="text-align:center;">This is Skillpundit.</p>" |
6 | Text-direction | This property is used to set the text direction. Possible values are ltr or rtl. | "<p style="direction:rtr;">This is Skillpundit.</p>" |
7 | letter-spacing | It sets the space between characters. | "<p style="letter-spacing:5px;">This is Skillpundit.</p>" |
8 | Word-spacing | It sets the space between words. | "<p style="word-spacing:5px;">This is Skillpundit.</p>" |
9 | Text-decoration | This property is used to underline, overline, and strikethrough text. | "<p style="text-decoration:underline;">This is Skillpundit.</p>" |
10 | Text-transform | It is used to capitalize text or convert text to uppercase or lowercase letters. | "<p style="text-transform:uppercase;">This is Skillpundit.</p>" |