Style Tag/Attributes (<style> </style>)
<!DOCTYPE html>
<html lang="en-US">
	<body>
		<h4>The style Attribute to decorate/format the html page</h4>
		<p style="color:red">Codershelpline Site Style</p>
		<p style="color:red; font-size:20px">Codershelpline Site Style</p>
		<p style="color:red; font-size:20px; font-family: Arial black">Codershelpline 
                   Site Style
                </p>
	</body>
</html>

<!-------------------------   OR   ---------------------------->

<!DOCTYPE html>
<html lang="en-US">
	<head>
		<style>			
			p{
				color:red;
				font-size:20px;
				font-family: Arial black;	
			 }			
		</style>		
	</head>
	<body>
		<h4>The style tag to decorate/format the html page's element</h4>
		<p> Codershelpline Site to All</p>		
	</body>
</html>

<!-------------------------   OR   ---------------------------->

<!DOCTYPE html>
<html>
	<head>
		<style>			
			h2 
			{
			   color:green;				
			}			
			p {color:darkblue;}			
		</style>
	</head>
	<body>
		<h2>Style Concept</h2>
		<p>The style tag is mainly used in designing work and to make web page attractive.Each HTML page may contain multiple style tags area as per requirements.
                </p>
	</body>
</html>

<!-------------------------   OR   ---------------------------->

<!DOCTYPE html>
<html>
	<head>
		<style>			
			h2,p,div 
			{
			   color:red;				
			}			
						
		</style>
	</head>
	<body>
		<h2>Style Concept</h2>
		<p>	The style tag is mainly used in designing work and to make web page attractive.</p>
		<div>Each HTML page may contain multiple style tags area as per requirements.</div>
	</body>
</html>

Loading

Categories: HTML

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.