w3school css how to code example
Example 1: css in html
<!-- EXAMPLE -->
<div class="your_class" style="display:none">
<!--[SYNTAX: style="<CSS-code>"] -->
Example 2: 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 3: 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]">