Monday, April 13, 2020

internal css in html

internal css in html

we learn how to apply CSS on our web pages with some examples..

There are two types of CSS apply. First internal and second is external in this post we apply internal. 


<html>

<head>

<title>First project</title>

<style>

h1
{
color: white;
text-decoration: underline;
background: green;

}

</style>

</head>

<body>

<h1>First Post</h1>

<p>This is our first Paragraph</p>

</body>

</html>

see result:



in this chapter:-

 <h1> </h1> tags use for heading <h1> heading opening </h1> heading closing.
in style tag give color that mention and text-decoration that is underline and use paragraph tags <p> for paragraph.

   

                                   

No comments:

Post a Comment

css class

css class or html class: Class in html and css is a selector. We can define style rules based on the class attribute of the elements. Al...