Subscribe Us

Header Ads

How to use div tag for a website

How to use div tag for a website


<div> tag
HTML div tag


বন্ধুরা আজকে আমরা শিখবো কি ভাবে  div tag use করে একটি ছোটো ওয়েব টেমপ্লেট তৈরি করা যায় । 

আমি আমার নোটপ্যাড এ কিছু কোড লিখে রেখেছি সে গুলোই আজকে দিয়ে দিচ্ছি আসা করছি কোড গুলো আপনাদের কাজে লাগবে ।


<html >
<head>

<title>Mini website</title>
<style>
#header{
margin:50px;
margin-top:15px;
background:orange;
border:2px solid red;
}

a{
text-decoration:none;
color:#FF0033;
text-transform:uppercase;
}
a:hover{
color:white;
}

ul{
float:right;
margin:0;
padding-right:52px;
}
li{
display:block;
}
ul li{
display:inline-block;
padding:16px 82px;
}
#image{
height:400px;
width:1300px;
padding-left:45px;

}

#paragraph{
text-align:center;
height:auto;
padding-left:20px;
padding-right:20px;
}

#news{
width:1300px;
height:200px;
border:dashed blue;
background:white;
float:right;
text-align:center;
margin-top:15px;
margin-right:40px;
margin-bottom:15px;
color:blue;
}


</style>
</head>

<body>

<div id="header">
<div>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Our teacher</a></li>
<li><a href="#">Study way</a></li>
<li><a href="#">Contact us</a></li>
<li><a href="#">About us</a></li>
</ul>
</div>
<img id="image" src="new/rajsthan.jpg" height="auto" width="auto"/>
<div id="paragraph">
<p>Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme.
Save time in Word with new buttons that show up where you need them. To change the way a picture fits in your document, click it and a button for layout options appears next to it. When you work on a table, click where you want to add a row or a column, and then click the plus sign.
Reading is easier, too, in the new Reading view. You can collapse parts of the document and focus on the text you want. If you need to stop reading before you reach the end, Word remembers where you left off - even on another device.<br />
<br />
Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
To make your document look professionally produced, Word provides header, footer, cover page, and text box designs that complement each other. For example, you can add a matching cover page, header, and sidebar. Click Insert and then choose the elements you want from the different galleries.
Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme.
</p>
</div>
<div id="news">
<h1>Our latest updates</h1>
</div>
<br clear="all"
</div>

</body>
</html>

এই উদাহরণ টিতে ইন্টারনাল css use করা হয়েছে ।

আমার  আগের টিউটোরিয়াল এ ইন্টারনাল css এর সম্পর্কে সংক্ষেপে আলোচনা করা আছে । উপরের কনটেন্ট গুলি কপি করে নোটপ্যাড এ পেস্ট করে রান কোরান তাহলে আপনি বুঝতে পারবেন । কিছু কিছু কনটেন্ট হয়তো আপনাদের ওয়েব পেজে দেখাবে না কারণ টা হলো যে আমার কাছে ব্যাকগ্রাউন্ড এ দেওয়া picture টা আছে কিন্তু আপনার কাছে তো নেয় তাই আপনি যে কোনো একটি picture ব্যাকগ্রাউন্ড দিয়ে রান করান ।
ঠিক কোন জায়গায় পরিবর্তন করতে  হবে সেটা উপরে highlight করে দেওয়া আছে ।


ধন্যবাদ !!

একটি মন্তব্য পোস্ট করুন

0 মন্তব্যসমূহ