stylesheet code example

Example 1: add stylesheet html

<link rel="stylesheet" type="text/css" href="style.css">

Example 2: external css

<html>
  <head>
    <link rel="stylesheet" type="text/css" href="mystyle.css"></link>
  </head>

  <body>

Example 3: add css to an html file

<link rel=“stylesheet” type=“text/css” href=“style.css” />

Example 4: external style sheet

<link rel="stylesheet" type="text/css" href="mystyle.css">

Example 5: stylesheet css

<style></style> or
<link rel="stylesheet" href="style.css">

Tags:

Html Example