HTML Style Attributes

Dear Students, aaj ke is Lecture me hum padege HTML Style ke bare main. HTML style Attributes kya hai or kaise kaam karta hai. Style Attributes ka use kya hai. Style se related sare topic hum Isi lecture main cover karege.

Lectures Covering Topics

  • Introduction To HTML Style Attributes In Hindi
  • How To  Use HTML Style In Hindi
  • Why Use HTML Style Attributes In Hindi
  • Example of Style Attributes In Hindi

Introduction To HTML Style Attributes In Hindi

HTML style ka use HTML elements ke sath style ko add karne ya fir style ko change karne ke liye kiya jata hai. Sabhi HTML elements ke liye kuch default style bhi hoti hai. Jaise background color is white, Text color is black etc. Hum is default style ko bhi change kar sakte hai.

Style attributes kisi bhi html tag ke sath use kiya ja sakta hai. HTML tag par style Attributes use karne ke liye aapkpo CSS ke properties ke  knowledge hona bahut jaroori hai. Agar aapko CSS ke properties nahi aati hai to aap style ko implement nahi kar sakte ho.

Style ki properties ko seekhne ke liye aap hamare CSS Lecture pad sakte hai. CSS ke properties jaise color, background-color, text-color, font-size, font-family, margin aadi.

The Syntax of HTML Style

How To  Use HTML Style Attributes In Hindi

Students sabse important bat yah hai ki aap style attributes ka use kha kar sakte hai. To aap style attributes ka use 3 types se kar sakte hai.

  • Inline Style:-  Is method ke help se hum CSS ko HTML tag me he define kar dete hai. Aisa hum style attributes ke help se karte hai jo ki html tag ke sath he use kiya jata hai.
  • Internal Style:- Is method se hum CSS ko HTML tag me define na karke HTML file ke <head> tag main eak nya <style> tag laga kar karte hai.
  • External Style:- Is method ke help se hum CSS or HTML file ko alag alag define karke link attributes ke help se add karte hai.

Inke bare main detail main padne ke liye aap in par click karke hamare lecture pad sakte hai.

Why Use HTML Style Attributes In Hindi

  • Style attributes ka use hum HTML tag par default style ko change karne ke liye karte hai.
  • Style attributes ki help se hum HTML tag par style ko add karne ke liye karte hai.
  • Jab bhi hame kisi bhi webpage ko different or stylish banana hota hai tab hum style attribute ka use krte hai.

Example of HTML Style Attributes In Hindi

Hum yhan par examples ke help se style attributes ko samjh sakte hai.

HTML Background Color

Kisi bhi HTML elements ke background ko color karne ke liyehame background color property ka use karna hota hai. Aap neeche example dekh sakte hai.

Output

html style 1

HTML Style color

Color style ka use kisi text ke color ko define karne ke liye kiya jata hai. Chalo Style color property ka eak example hum lete hai.

Output

html style 2

HTML Style Font-Size

Font-Size Properties ka use hum Text ka size define karne ke liye karte hai. Jab hame default font size ko increment ya decrements karna hota hai. Tab hum Font size properties ka use karege. aap neeche example ko dekhe sakte hai.

Output

html style 3

HTML Style Font-Family

Font-Family properties ka use hum kisi specific font family ko use kane ke liye karte hai. Let’s see an example of styling html tag by css font-family property.

Output

html style 4

HTML Style Text-Align

Text-Align properties ka use hum text ka alignment define karne ke liye karte hai. Ki text ka alignment left, right, center kis jagah rakhna hai. Aap neeche example ko bhi dekh sakte hai.

Output

html style 5

Related Lecture

Dear Students, main aasha karta hun ki aapko HTML Style in hindi Ka Lecture padh kar samjh me aa gaya hoga. Yadi aapako is Lecture se related koi bhi problem hai to aap hume comment karke puch sakte hai.

Share This Post On

About Author

Thakur Aman Singh

Hey, I am Aman Singh Tomar from Taj City Agra. Through This Blog I want to share my Knowledge with all of you. Read More >>

Leave a Reply

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