1. Home
  2. /
  3. Blog
  4. /
  5. تحديد خصائص كل عنصر بشكل منفصل
CSS

تحديد خصائص كل عنصر بشكل منفصل

September 27, 2022 1 min read 2,181
تحديد خصائص كل عنصر بشكل منفصل
<!DOCTYPE html>
<html>
<head>
	<title>website</title>
	<link rel="stylesheet" type="text/css" href="website.css">
</head>
<body>

	<style type="text/css">
		body{

background-color: black;
color:red;

}


h1,h2{

color:yellow;
background-color: green;

}

p{

color: white;
background-color: gray;



}
	</style>

<h1>hello</h1>

<p>welcome</p>

<h2>nothing</h2>
</body>
</html>

Share:
Read next

Related articles