Background tag

Background
website ko design karne ke liye,waise toh css (carsading style sheet) ka use hota hai lakin kuch simple design html pr hi ki ja sakti hai .
backround ka color change karna ya background mai image ko rakhna , iskeliye hume sirf body tag ke attribute ka use kar na hai.

attribute kya hai ?
kisi bhi html tag ke ek se jada attribute ho sakte hai, attribute tag ke feature hote hai , hum tag mai attribute ka use kar , us tag ke feature ka use kar rahe hote hai.

sabhi tag ke apne alag attribute hote hai ,body tag mai bhi kai attribute use hote hai .
kyoki body tag container hota hai isliye uske attribute pure page pr apply hote hai.

body tag attribute – bgcolor, color, background
bgcolor – bgcolor se hum page ke background ka color change kar sakte hai.
ex – bgcolor=”red”
color – yeh text ka color change karta hai.
ex – color=”white”
background attribute , page mai kisi picture ko background mai show karta hai.
ex – background=”bird.jpg”

image

image

image

image

image

image

Leave a comment