Css Intro
Css Intro
CSS
CSS stands for Cascading Style Sheets. CSS describes how HTML elements are to be
displayed ·
In Css display commands are passed to the opening tag of an HTML element. The
commands are grouped as an attribute called STYLE
A Simple HTML element code with the STYLE attribute look like this.
The declarations are placed in between the two quotes in the style attribute.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p
style="font-weight: bold;
font-size: 34px;">
This was written with a paragraph style tag
</p>
</body>
</html>
DECLARATION BASIC RULES
STEPS:
Go to the opening tag of the HTML element you want to style.
Add the style attribute
Input the declaration/COMMAND (properties and value seprated by
NOTE:
The declaration block contains one or more declarations separated by
semicolons.