html and css w3e code example
Example 1: CSS IN HTML
<!-- There are 3 ways to do this-->
<!-- #1: Inline CSS-->
<h1 style="color: red;">Red Heading</h1>
<!-- #2 Element CSS-->
<style>
h1 {
color: red;
}
</style>
<h1>Red Heading</h1>
<!-- #3 Stylesheet CSS-->
<link rel="stylesheet" href="[stylesheet link]">
Example 2: how to css html
<html>
<head>
<style>
body{
direction:rtl;
}
</style>
</head>
<body>
</body>
</html>