w3 schools 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
/* 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 4: 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 5: 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]">
Example 6: bootstrap
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<title>Hello, world!</title>
</head>
<body>
<h1>Hello, world!</h1>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
</body>
</html>