HTML with internal CSS:-
<html>
<head>
<style>
body {background-color: blue;}
h1 {color: green;}
p {color: brown;}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
<html>
<head>
<style>
body {background-color: blue;}
h1 {color: green;}
p {color: brown;}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
OUTPUT:-
- An internal CSS is used to define a style for a single HTML page.
- An internal CSS is defined in the <head> section of an HTML page, within a <style> element.
No comments:
Post a Comment