w3.css code example
Example 1: CSS IN HTML
<style>
body {
background-color: cyan;
}
</style>
<link rel="stylesheet" type="text/css" href="filename.css"/>
Example 2: css in html
<div class="your_class" style="display:none">
Example 3: css
Cascading Style Sheets is a style sheet language used for describing the
presentation of a document written in a markup language like HTML.
CSS is a cornerstone technology of the World Wide Web, alongside HTML and
JavaScript.
Example 4: CSS IN HTML
<h1 style="color: red;">Red Heading</h1>
<style>
h1 {
color: red;
}
</style>
<h1>Red Heading</h1>
<link rel="stylesheet" href="[stylesheet link]">