/    /   Internal CSS

Internal CSS

 

The internal style sheet is used to add a unique style for a single document(file). It is defined in <head> section of the HTML page inside the <style> tag.

 

Example:

 

<!DOCTYPE html>
<html>
<head>
<style>
body {
  background-color: yellow;
}
h1 {
  color: Red;
  margin-left: 80px;
}
</style>
</head>
<body>
<h1>The internal style sheet.</h1>
<p>paragraph will not be affected.</p>
</body>
</html>

 

OUTPUT:

 

How to Add CSS