What is a CSS?

Cascading style sheet (CSS) is a language that dictates how a web page looks. It covers layout, colors, fonts, font sizes, and more. CSS lets responsive web design, which aims to reuse code across desktop and mobile devices and keep the user experience (UX) consistent.

Example

HTML:

html
Copy code
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
<style>
body {
background-color: lightblue;
}
h1 {
color: navy;
}
</style>
</head>
<body>

<h1>Welcome!</h1>

</body>
</html>

In this example, the CSS styles are directly embedded within the <style> tags in the HTML file. The body background color is set to light blue, and the h1 heading color is set to navy. When the HTML file is opened in a web browser, the styles specified in the <style> tags are applied to the webpage.

Go back to the Marketing Glossary >>