سی ایس ایس رنگ

ਰੰਗ ਸ਼ਾਮਿਲ ਕਰਨਾ ਪਹਿਲਾਂ ਪ੍ਰਿਮੀਟਿਵ ਰੰਗ ਨਾਮ ਜਾਂ RGB, HEX, HSL, RGBA, HSLA ਮੁੱਲ ਦੀ ਵਰਤੋਂ ਨਾਲ ਕੀਤਾ ਜਾਂਦਾ ਹੈ。

CSS ਰੰਗ ਨਾਮ

ਸੀਐੱਸਐੱਸ ਵਿੱਚ, ਰੰਗ ਨਾਮ ਦੀ ਮਦਦ ਨਾਲ ਰੰਗ ਸ਼ਾਮਿਲ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ:

Tomato
Orange
DodgerBlue
MediumSeaGreen
Gray
SlateBlue
Violet
LightGray

خود کو کوشش کریں

CSS/HTML ਸਮਰਥਨ 140 ਪ੍ਰਮਾਣਿਕ ਰੰਗ ਨਾਮ

CSS ਪਿੱਨ ਰੰਗ

ਤੁਸੀਂ HTML ਐਲੀਮੈਂਟ ਲਈ ਪਿੱਨ ਰੰਗ ਸੈੱਟ ਕਰ ਸਕਦੇ ਹੋ:

Welcome to China
China is a great country!

ਉਦਾਹਰਣ

<h1 style="background-color:DodgerBlue;">China</h1>
<p style="background-color:Tomato;">China is a great country!</p>

خود کو کوشش کریں

CSS ਟੈਕਸਟ ਰੰਗ

ਤੁਸੀਂ ਟੈਕਸਟ ਰੰਗ ਸੈੱਟ ਕਰ ਸਕਦੇ ਹੋ:

China

China is a great country!

China, officially the People's Republic of China, is a country in East Asia.

ਉਦਾਹਰਣ

<h1 style="color:Tomato;">China</h1>
<p style="color:DodgerBlue;">China is a great country!</p>
<p style="color:MediumSeaGreen;">China, officially the People's Republic of China...</p>

خود کو کوشش کریں

سی ایس ایس کیرن رنگ

ਤੁਸੀਂ ਬਾਰਡਰ ਰੰਗ ਸੈੱਟ ਕਰ ਸਕਦੇ ਹੋ:

Hello World
Hello World
Hello World

ਉਦਾਹਰਣ

<h1 style="border:2px solid Tomato;">Hello World</h1>
<h1 style="border:2px solid DodgerBlue;">Hello World</h1>
<h1 style="border:2px solid Violet;">Hello World</h1>

خود کو کوشش کریں

CSS رنگ کا درجہ

CSS ਵਿੱਚ, ਰੰਗ ਸੂਚੀ ਲਈ RGB ਮੁੱਲ, HEX ਮੁੱਲ, HSL ਮੁੱਲ, RGBA ਮੁੱਲ ਜਾਂ HSLA ਮੁੱਲ ਵਰਤ ਸਕਦੇ ਹਾਂ:

ਰੰਗ ਨਾਮ "Tomato" ਨਾਲ ਬਰਾਬਰ ਹੈ:

rgb(255, 99, 71)
#ff6347
hsl(9, 100%, 64%)

ਰੰਗ ਨਾਮ "Tomato" ਨਾਲ ਬਰਾਬਰ ਹੈ, ਪਰ ਪਾਰਦਰਸ਼ਤਾ 50% ਹੈ:

rgba(255, 99, 71, 0.5)
hsla(9, 100%, 64%, 0.5)
<h3>ਉਦਾਹਰਣ</h3>
<h1 style="background-color:rgb(255, 99, 71);">...</h1>
<h1 style="background-color:#ff6347;">...</h1>
<h1 style="background-color:hsl(9, 100%, 64%);">...</h1>
<h1 style="background-color:rgba(255, 99, 71, 0.5);">...</h1>
<h1 style="background-color:hsla(9, 100%, 64%, 0.5);">...</h1>

خود کو کوشش کریں

رنگ کی درجگی کا مزید معلومات جانیں

آئندہ باب میں آپ سیکھیں گے کہ RGB،HEX اور HSL کا مزید معلومات