how to css code example
Example 1: how to link css to html
<link rel="stylesheet" href="styles.css">
Example 2: add stylesheet html
<link rel="stylesheet" type="text/css" href="style.css">
Example 3: external css
<html>
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css"></link>
</head>
<body>
Example 4: how to write css in html
<p style="color: blue; font-size: 46px;">
Example 5: css
/* Answer to "css" */
/*
Cascading Style Sheets (CSS) is a style sheet language used for
describing the presentation of a document written in a
markup language like HTML.
In other words, it's the style of the website.
For example, the positioning of everything on a website or
the colour, shape, size of a button. Every design on a
website is most likely made using css.
*/
Example 6: how to use css
<link rel="stylesheet" href="stylesheet.css">
<div class="mydiv"></div>
<style>
.mydiv {
background-color: ;
color: ;
}
</style>