Menu

1 / 2

Cascading Style Sheets(CSS)

DEV Community·Dhanush P·6 months ago
#RalfWK1F
#css#webdev#frontend#software#html
Reading 0:00
15s threshold

Introduction to CSS

CSS stands for Cascading Style Sheets.

CSS used to describe the presentation of a HTML document.

It allows you to apply styles to HTML documents by prescribing colors, fonts, spacing and positioning.

CSS styles are applied to the HTML element using selectors.

CSS Syntax

CSS syntax consists of a selector and a declaration block.

The selector targets an HTML element, and the declaration block contains property value pairs.

selector { property : value ; }

Enter fullscreen mode

Exit fullscreen mode

Example:

p { color : red ; }

Enter fullscreen mode

Exit fullscreen mode

Types of CSS

There are three major ways to apply CSS to web pages: Inline, Internal and External CSS.

1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.