0% found this document useful (0 votes)
3 views

cssdemo

The document contains HTML and CSS code for a webpage that includes various headings, paragraphs, and a button. It demonstrates the use of inline and external CSS for styling elements like background color and text color. The HTML structure includes sections for CSS, HTML, and JavaScript introductions, along with a styled preformatted text block.

Uploaded by

jai999946
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

cssdemo

The document contains HTML and CSS code for a webpage that includes various headings, paragraphs, and a button. It demonstrates the use of inline and external CSS for styling elements like background color and text color. The HTML structure includes sections for CSS, HTML, and JavaScript introductions, along with a styled preformatted text block.

Uploaded by

jai999946
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Code for html file

<html>

<head>

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

<style>
p{

background-color:lime;

color:red;

h1{

background-color:aqua;color:yellow;}

</style>

</head>

<body>

<pre id="rahul">

This is not good.

this is not very good.

so this is very bad.

</pre>

<h1 style=background-color:aqua;color:yellow;>Introduction about CSS</h1>

<p>CSS is used for providing styles in a html file.<br>

It stands for Cascading Styl Sheet></p>

<h1>Introduction about HTML</h1>

<p>CSS is used for providing structure in a html file.<br>

It stands for Hyper Text Markup Language></p>

<h1>Introduction about JAVA Script</h1>


<p>CSS is used for providing validation in a html file.<br>

It stands for Hyper Text Markup Language></p>

<button>Help Me plz</button>

<h2>Welcome to external CSS h2</h2>

<h3>Welcome to external CSS h3</h3>

<h4>Welcome to external CSS h4</h4>

<h5>Welcome to external CSS h5</h5>

<h6>Welcome to external CSS h6</h6>

</body>

</html>

Code for css file(having nametemp.css)

h2,h4,h6

background-color:seagreen;

color:maroon;

button

background-color:black;

color:white;padding:15px30px;

#rahul
{

background-color:salmon;

border:solid 2px blue;

.rahul1

background-color:mint;

You might also like