HTML Style


CSS is used to control the style of the website. There are three ways to apply this css to a website. One of these methods is inline css. Inline css is placed within the html style attribute. Inline css style can be applied to any element of html.


Some Common CSS Styles:

background-color: red;

color: white;

text-align: center;

HTML Style

Example

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<body>
	<h1 style="background-color:red;text-align:center">my school house</h1>
</body>
</html>