HTML code is easy to learn/সহজ এইচটিএমএল কোড শিখুন-18
Color and code
Web pages are composed of one or more paragraphs, headings, tables, byagraunda, etc. The combination of the Border. The use of different colors to all the elements are pratyekatitei. Web page to specify the color and diversity to byagraunda <body> the body tag with a space after the text with the bgcolor = \"\" will write the \"after\" in BLACK, SILVER, GRAY, WHITE, MAROON, RED, PURPLE, FUSCHSIA, GREEN , LIME, OLIVE, YELLOW, NAVY, BLUE, TEAL AQUA This solati color and any text that will appear when the page byagraunde. It is not case sensitive, so lowercase letters lekhaleo no problem, as has been written, <body bgcolor=\"green\">.
Byagraunda color can be selected using the hexadecimal code. The following code example above can be written as <body bgcolor=\"#00FF00\">.
easily collected from the hexadecimal code for the color piker kalarera be. The following chart can also be realized. start with a # character at the beginning of the hexadecimal code of the.
There is also a fun way to byagraunda color. Red, green and blue are the colors of the three basic colors, and all the other colors to create a combination of these three colors. If you create a new color coding of the color is mixed, it is not bad. This action is to go green can be written as the following for byagraundera
<body bgcolor=\"rgb(0,255,0)\">.
There is rgb red green blue and (0,255,0) means rantite respectively red, green, blue colors, respectively, of the amount of 0%, 100%, 0% because there has been a pure green color. And that may be of any color value of 0-255. As the green value of 255 g or 100%, so it is. 0-255 of the changes in the value of the three colors of the new colors can be created.
Such as:
<html>
<head>
<title> www.hedaet.com </ title>
</ Head>
<body bgcolor=\"green\">
<h2 style=\" color:#ff0000\">
This is the body of your web site.
</ H2>
<p style=\"color:#093\">
This is a paragraph. <br />
This is a paragraph. <br />
This is a paragraph. <br />
This is a paragraph. <br />
</ P>
</ Body>
</ Html>
Tuku Notepad and then open the file menu, Save as the above code by clicking File name: index.html, Save as type: All files, and save the index.html file to open the show with Mozilla Firefox.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
রং ও কোড
ওয়েব পেজে রং এর ব্যবহার খুবই গুরুত্বপূর্ণ। একটা ওয়েব পেজ গঠিত হয় এক বা একাধিক প্যারাগ্রাফ, শিরোনাম, টেবিল, ব্যাগ্রাউন্ড, বর্ডার ইত্যাদির সমন্বয়ে। এ সকল উপাদানের প্রত্যেকটিতেই কোন না কোন রং ব্যবহার করতে হয়। কোন একটি পেজের ব্যাগ্রাউন্ড কালার নির্দিষ্ট করার জন্য <body> ট্যাগের মধ্যে body লেখার পর একটা স্পেস দিয়ে bgcolor=\" \" লেখতে হবে এর পর \" \" এর মধ্যে BLACK, SILVER, GRAY, WHITE, MAROON, RED, PURPLE, FUSCHSIA, GREEN, LIME, OLIVE, YELLOW, NAVY, BLUE, TEAL এবং AQUA এই ষোলটি রং এর যে কোন একটি লেখা হলে পেজের ব্যাগ্রাউন্ডে সেই দেখা যাবে। যেহেতু case sensitive নয় তাই ছোট হাতের অক্ষরে লেখলেও কোন সমস্যা নেই, যেমন লেখা হয়েছে, <body bgcolor=\"green\"> ।
এছাড়া hexadecimal code ব্যবহার করেও ব্যাগ্রাউন্ড কালার নির্বাচন করা যায়। যেমন উপরের কোডটি নিচের মত লেখা যায় <body bgcolor=\"#00FF00\"> ।
color piker থেকে সহজেই বিভিন্ন কালারের জন্য hexadecimal code সংগ্রহ করা যায়। এছাড়া নিচের চার্ট থেকেও কাজটি করা যাবে। hexadecimal code এর শুরুতে একটা # চিহ্ন দিয়ে শুরু করতে হয়।
ব্যাগ্রাউন্ড কালার দেওয়ার আরও একটা মজার পদ্ধতি আছে। লাল, সবুজ আর নীল এই তিনটি রং হচ্ছে মৌলিক রং, আর অন্য সব রং এই তিনটি রং এর সংমিশ্রনে তৈরি। যদি coding করে এই তিনটি রংকে মিশিয়ে নতুন রং তৈরি করা হয়, তাহলে মন্দ হয় না। এ কাজটি সুসম্পন্ন করতে সবুজ ব্যাগ্রাউন্ডের জন্য নিচের মত করে লেখা যেতে পারে
<body bgcolor=\"rgb(0,255,0)\"> ।
এখানে rgb অর্থ হল red green blue আর (0,255,0) এর অর্থ হল রংটিতে যথাক্রমে লাল, সবুজ, নীল রং এর পরিমান যথাক্রমে 0%, 100%, 0% কারন এখানে বিশুদ্ধ সবুজ রং নেয়া হয়েছে। আর যে কোন রং এর মান 0-255 পর্যন্ত হতে পারে। যেহেতু g বা green এর মান 255 তাই তা 100%। তিনটি রং এর মান 0-255 এর মধ্যে পরিবর্তন করে ইচ্ছা অনুযায়ী নতুন নতুন রং তৈরি করা যাবে ।
উদাহরণ প্রোগ্রাম
<html>
<head>
<title> www.hedaet.com</title>
</head>
<body bgcolor=\"green\">
<h2 style=\" color:#ff0000\" >
This is the body of your web site.
</h2>
<p style=\"color:#093\">
This is a paragraph.<br />
This is a paragraph. <br />
This is a paragraph.<br />
This is a paragraph.<br />
</p>
</body>
</html>
একটা নোটপ্যাড open করে উপরের code টুকু লিখে file মেনু থেকে Save as এ ক্লিক করে File name: index.html , Save as type : All files, দিয়ে save করে index.html ফাইলটি Mozilla Firefox দিয়ে open করলে নিচে প্রদর্শিত ছবির মত দেখাবে।