Skip to main content

CSS - CSS Text in hindi, css text kya h, kese likhe Technamdev.blogspot.com

आपने देखा होगा कि कई websites के text का color अलग-अलग होता है |
HTML का default text color ये black होता है, लेकिन अगर कुछ लोग चाहते है तो इस text color को बदल भी सकते है |

Text Related CSS Properties

Color Property for Text Color

निचे div1, div2 और div3 को एक ही color को अलग-अलग प्रकार से दिया गया है | निचे color को अलग-अलग प्रकार से दी जाने वाली values को दिया गया है |
Type of ValueDescription
color_nameयहाँ पर color का नाम दिया जाता है | For Example, color : red
hexadecimal color codeयहाँ पर hex code color भी दिया जाता है | For Example, color : #F00
rgb color codeयहाँ पर rgb(red,green,blue) color code भी दिया जाता है | color : rgb(255, 0, 0)
hsl color codeयहाँ पर hsl(hue,saturation,luminance) color code भी दिया जाता है | color : hsl(360, 100%, 50%)

.div1{
 color : #F00; /* hexadecimal color code */
}
.div2{
 color : red; /* color name */
}
.div3{
 color : rgb(255, 0, 0); /* rgb color code */
}
.div4{
 color : hsl(360, 100%, 50%); /* hsl color code */
}
Output :

Text PropertyDescription
colortext पर color को set किया जाता है |
directiontext की direction को set किया जाता है | For Example, Right to Left, Left to Right
letter-spacingCharacters के बीच के space को increase या decrease किया जाता है |
text-alignhorizontally text को align किया जाता है |
text-decorationtext को decorate किया जाता है और उसपर text decoration से related सभी properties के values का इस्तेमाल किया जाता है |
text-indentSpecially for <p> Tag | Paragraph के first line को indentation दिया जाता है |
text-shadowtext के चारों ओर text shadow; set की जाती है |
text-transformText को capitalize, uppercase या lowercase में convert किया जाता है |
white-spacetext के overflow को control करने के लिए इस्तेमाल किया जाता है |
word-spacingWords के बीच के space को increase या decrease किया जाता है |

Comments

Popular posts from this blog

Create a Responsive Login Form in HTML and CSS in Hindi

Create a Responsive Login Form in HTML and CSS in Hindi                                                              Login Form in HTML and CSS In this video, we will we see How to Create a Responsive Login Form in HTML and CSS in Hindi step by step. As you can see I try to make a Login form that should be different from others available online on any social media. Believe me, you gonna learn many new technique and tips on how to make a Responsive Login Form in HTML and CSS in Hindi. Let's talk about the background of the Login form in Hindi first. You can see It's a diagonal background and I know must of are thinking how we can create a diagonal webpage. Believe me, I wrote only one line of code to get the diagonal background on my Login Form in Hindi. background-image: linear-gradient(to top right,...

CSS - CSS Colors in hindi, css color kese select kre , kya h.

Colors ये websites के लिए बहुत ही महत्वपूर्ण हिस्सा है | अगर आप एक बढ़िया website चाहते हो तो colors का इस्तेमाल किया ही जाना चाहिए | c o l o r Some Common Colors in CSS Color Name Hex Color Code RGB Color Code WHITE #FFFFFF RGB(255, 255, 255) SILVER #C0C0C0 RGB(192, 192, 192) GRAY/GREY #808080 RGB(128, 128, 128) BLACK #000000 RGB(0, 0, 0) RED #FF0000 RGB(255, 0, 0) MAROON #800000 RGB(128, 0, 0) YELLOW #FFFF00 RGB(255, 255, 0) OLIVE #808000 RGB(128, 128, 0) LIME #00FF00 RGB(0, 255, 0) GREEN #008000 RGB(0, 128, 0) AQUA/CYAN #00FFFF RGB(0, 255, 255) TEAL #008080 RGB(0, 128, 128) BLUE #0000FF RGB(0, 0, 255) NAVY #000080 RGB(0, 0, 128) FUCHSIA #FF00FF RGB(255, 0, 255)) PURPLE #800080 RGB(128, 0, 128)) Example <h1 style="background-color:white;">WHITE</h1> <h1 style="background-color:silver;">SILVER</h1> <h1 style="background-color:gray;">GRAY</h1> <h1 style="background-color:black;...

Create a Website using HTML and CSS in Hindi With Source Codes

Create a Website using HTML and CSS in Hindi With Source Codes Welcome Developers, we will see how to create a website using HTML and CSS step by step in Hindi. The link is in Comment sections. In this Video, you will learn how to put everything you've learned so far about CSS into action—for your very first webpage. What you see now is going to look like your end result; I hope it inspires you to follow through with the whole project! You'll learn the components of this site and how it was put together, piece by piece. Also, website kaise banaye hindi me complete video. If you like this video please Like, Share with your friends and Don't forget to SUBSCRIBE my ThapaTechnical Channel :)