What is CSS?
CSS stands for Cascading Style Sheets. It is a stylesheet language used to describe how HTML elements are displayed on various media, including screens, paper, and more.
CSS saves a lot of work by allowing you to control the layout and appearance of multiple web pages simultaneously, ensuring consistency and efficiency in web design.
External stylesheets are stored in CSS files, which help in organizing and maintaining the styling for a website.
/* Selecting an HTML element and applying styles */
p {
font-size: 16px;
color: #333;
}
/* Using class selector */
.highlight {
background-color: yellow;
}
/* Using ID selector */
#special-heading {
font-weight: bold;
font-size: 24px;
color: blue;
}