
In this article, we will learn about CSS in more detail and familiarize ourselves with the benefits of using CSS in web development. You just need to stay with us till the end to know all about CSS.
| Inline CSS In Web Development |
| <p style="color: blue; font-size: 16px;">This is a blue text with a 16px font size. </p> |
| Internal CSS In Web Development |
| <head> <style> p { color: green; font-size: 18px; } </style> </head> <body> <p>This text is styled with internal CSS.</p> </body> |
| External CSS In Web Development |
| Index.html <head> <link rel="stylesheet" type="text/css" href="styles.css"> </head> <body> <p>This text is styled with external CSS. </p> </body> Style.css p { color: purple; font-size: 20px; } |
| Category | Properties |
| Color and Text | color, font-size, font-family, font-weight, text-align, text-decoration, line-height |
| Background | background-color, background-image, background-repeat, background-size, background-position |
| Box Model | width, height, margin, padding, border |
| Positioning | position, top, right, bottom, left, display, float, clear |
| Flexbox/Grid Layout | flex-direction, flex-wrap, justify-content, align-items, align-content, grid-template-columns, grid-template-rows, grid-gap, grid-column, grid-row |
| Transform/Transition | transform, transition, and animation |
| Shadows | box-shadow, text-shadow |
| Opacity/Visibility | opacity, visibility |
| List Styling | list-style-type, list-style-image, list-style-position |