<!-- File based CSS: Change style.css to your script path or link. -->
<link href="style.css" rel="stylesheet" type="text/css">
<!-- Or inline CSS: -->
<style type="text/css">
/* Add your css here */
</style>
put in the <header> tag:
<link rel="stylesheet" href="style.css">
<p style="color:red;">The text appear red.</p>
A text that uses A LOT the style tag:
<!doctype html>
<html>
<body>
<p class="example" style="border:solid 15px red; color: orange; background-color: blue; cursor: pointer; ">A text</p>
</body>
</html>
<html>
<head>
<style>
h1 {color:red;}
p {color:blue;}
</style>
</head>
<body>
<h1>A heading</h1>
<p>A paragraph.</p>
</body>
<p style="font-weight:normal;">font-weight: normal</p>
<p style="font-weight:bold;">font-weight: bold</p>
<p style="font-weight:bolder;">font-weight: bolder</p>
<p style="font-weight:lighter;">font-weight: lighter</p>
<p style="font-weight:100;">font-weight: 100</p>
<p style="font-weight:200;">font-weight: 200</p>
<p style="font-weight:300;">font-weight: 300</p>
<p style="font-weight:400;">font-weight: 400</p>
<p style="font-weight:500;">font-weight: 500</p>
<p style="font-weight:600;">font-weight: 600</p>
<p style="font-weight:700;">font-weight: 700</p>
<p style="font-weight:800;">font-weight: 800</p>
<p style="font-weight:900;">font-weight: 900</p>
<html>
<body>
<!-- BODY HTML -->
</body>
<head>
<!-- HEAD HTML -->
</head>
<style>
/* CSS */
</style>
<style>
/* Put in CSS */
</style>
// Style tags belong in <head>
<body>
<p>This is a paragraph.</p>
</body>
Code Example |
---|
Html :: run another Html in html |
Html :: input form |
Html :: disable an anchor tag |
Html :: css image slideshow |
Html :: index.html file |
Html :: a href tag |
Html :: typo3 typoscript page uid to body tag |
Html :: meta name and content |
Html :: html entity for degree celsius |
Html :: ol html |
Html :: python print html as a string |
Html :: bootstrap 5.1 validation |
Html :: multiline comment html |
Html :: bootstrap 4.5.3 |
Html :: svelte bind store to input |
Html :: how to add number input field with default value |
Html :: ocultar div css |
Html :: meta tag checker |
Html :: form submission with post |
Html :: tr , th , td , table |
Html :: skip line html |
Html :: html input invalid |
Html :: html onkeyup set value |
Html :: %20 in html |
Html :: bootstrap wysiwyg |
Html :: html click hide textbox |
Html :: What is the <template Tag? |
Html :: cards vuetify |
Html :: v-expansion-panel example |
Html :: input type options html |