internal css

Internal Style Sheet

An internal style sheet may be used if one single page has a unique style.
Internal styles are defined within the <style> element, inside the <head> section of an HTML page:


<!DOCTYPE html>
<html>
<head>
<style>
body {
  background-color: white;
}

h1 {
  color: maroon;
  margin-left: 40px;
</style>
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>


Output:

This is a heading

This is a paragraph.

Comments

Popular posts from this blog

css3 Borders

Introduction to CSS

Background repeat and no-repeat in css