<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>
<!-- 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

Scroll to Top