Professional Documents
Culture Documents
using css
Topic
ES5
Computer Fundamentals and Programming
Contents of this Lecture
Introduction to CSS
Cascading
Style Sheet
CSS stands for Cascading Style Sheet.
CSS describes how HTML elements
are to be displayed.
Here’s how you start
making your design
<!DOCTYPE html>
<html>
<head>
<title>CSS Example</title>
<style>
body{background-color:lightblue;text-align:center;}
h1{color:blue;font-size:40px;}
p{font-family:verdana;font-size:20px;}
</style>
</head>
<body>
<h1>My First CSS Heading</h1>
<p>My first CSS paragraph.</p>
</body>
</html>
Big letters
Accent
CSS Syntax
1 60
12 12
3
12
RED OR BLACK?
Declaration Declaration
h1{color:blue;font-size:40px;}
Selector Value Value
Property Property
DECORATIVE
ELEMENTS
Import a
CSS File
DROP
SHADOW
BASE LINE
SWASH
How to import?
01 02 03
Create a file style.css Use the link tag inside the head element like this:
<link rel="stylesheet" href="style.css">
Try this!
HTML x CSS
</body> p{
</html> font-size:20px;
}
CSS class selector
The class attribute is often used to point to a class name in a style sheet.
Thanks!
DIFFERENT
ORNAMENTS