কম্পিউটার টিউটোরিয়াল

HTML-এ এলিমেন্টের পটভূমির রঙ (bgcolor অ্যাট্রিবিউট) দেখানো

HTML এলিমেন্টের (বিশেষ করে body এবং table) পটভূমির রঙ নিয়ন্ত্রণ করতে bgcolor অ্যাট্রিবিউট ব্যবহার করা হতো।

দ্রষ্টব্য: এই অ্যাট্রিবিউট HTML5-এ সমর্থিত নয়।

উদাহরণ

bgcolor অ্যাট্রিবিউট বাস্তবায়নের উদাহরণ (তিনটি ফরম্যাট):

<!DOCTYPE html> <html>    <head>       <title>HTML Background Colors</title>    </head>    <body>       <!-- Format 1 - Use color name -->       <table bgcolor = "yellow" width = "100%">          <tr>             <td>                This background is yellow             </td>          </tr>       </table>       <!-- Format 2 - Use hex value -->       <table bgcolor = "#6666FF" width = "100%">          <tr>             <td>                This background is sky blue             </td>          </tr>       </table>       <!-- Format 3 - Use color value in RGB terms -->       <table bgcolor = "rgb(255,0,255)" width = "100%">          <tr>             <td>                This background is green             </td>          </tr>       </table>    </body> </html>

  1. HTML <title> এলিমেন্টের ব্যবহার পদ্ধতি

  2. HTML-এ ব্যাকগ্রাউন্ড রঙ (Background Color) সেট করা

  3. HTML-এ লিংকের রঙ (Color) পরিবর্তন করা

  4. HTML-এ এলিমেন্টের মান কীভাবে যোগ করবেন?