HTML Div and Span Element
<div> |
---|
- <div> Block level Element ekak
- වෙබ් පිටුවක කොටස් එකට කාණ්ඩ කිරීමට <div> මූලද්රව්යය බොහෝ විට භාවිතා වේ.
- <div> tag eka athule style,class and id liwimata hakiyaawa atha
- <div> ටැගය තුළ ඕනෑම ආකාරයක අන්තර්ගතයක් ඇතුළත් කළ හැකිය
<div>
<!-- Single div -->
<div>
<h2>London</h2>
<p>London is the capital city of England.</p>
<p>London has over 9 million inhabitants.</p>
</div>
<!-- Multiple div -->
<div class="myfirstcode">
<div style="background-color:#FFF4A3;">
<h2>London</h2>
<p>London is the capital city of England.</p>
<p>London has over 9 million inhabitants.</p>
</div>
<div style="background-color:#FFC0C7;">
<h2>Oslo</h2>
<p>Oslo is the capital city of Norway.</p>
<p>Oslo has over 700,000 inhabitants.</p>
</div>
<div style="background-color:#D9EEE1;">
<h2>Rome</h2>
<p>Rome is the capital city of Italy.</p>
<p>Rome has over 4 million inhabitants.</p>
</div>
</div>
<div> yodaganne anith code div eka athule piliwelata liyanna wagema style,class and id niwaradiwa code ekata add kirimataya<span> |
---|
- <span> Inline Element ekak
- <span> tag eka athule style,class and id liwimata hakiyaawa atha
- <span> ටැගය text ho document ekak athulata ekathu කළ හැකිය
<span>
<!-- Html and Css text Color Change -->
<p> I want to first Learn <span style="color: red;">HTML</span> and Secound Learn <span style="color: blue;">Css</span>....</p>
mokak hari text ekaka ho document ekaka athule yam nishchitha sthanaya wenasak kirimata awashayanma <span> tag eka bawitha kara ema wenas sidu kala hekiya