How to Create CSS for HTML
What is Css ?
Css is Cascade Style Sheet Which is generally apply for Designing the html pages. Via Selectors
This is the general format of HTML
<html>
<head>
<title>My html</title>
</head>
<body>
<p>Here is my Test </p>
</body>
</html>
and save as .html or .htm extension
Now you can apply css via two ways :-
1. Inline CSS
2. Outer CSS
In inline css you can put the css into the html file
with Style tag
Example
<style>
p {color:#FFF; }
</style>
Or you can put directly this tag like
<p style="color:#FFF;">my paragraph</p>
In outer CSS you have to save as another file name extension .css like style.css
and link this file into html via <link> tag
<html>
<head>
<link rel="stylesheet" href="style.css">
<title>My html</title>
</head>
<body>
<p>Here is my Test </p>
</body>
</html>
good information
ReplyDelete