BORDERS

"ADDING BORDER"

1. Open NOTEPAD

 2. Type these following codes.

CSS

p.dotted {border-style: dotted;}
p.dashed {border-style: dashed;}
p.solid {border-style: solid;}
p.double {border-style: double;}
p.groove {border-style: groove;}
p.ridge {border-style: ridge;}
p.inset {border-style: inset;}
p.outset {border-style: outset;}
p.none {border-style: none;}

HTML


<p class="dotted"> Atticus' Quotes
 </p>

<p class="dashed">
I hope to arrive to my death, late, in love, and a little drunk</p>

<p class="solid">
We are made of all those who have built and broken us.</p>

<p class="double"> She conquered her demons and wore her scars like wings</p>

<p class="groove"> It was her chaos that made her beautiful. </p>

<p class="ridge"> 
Chase your stars fool, life is short.</p>

<p class="inset">  She wasn't looking for a knight, she was looking for a sword.</p>

<p class="outset">She was everything real in a world of make-believe. </p>

<p class="none"> It's a sad thing, protecting a breakable heart.</p>
3. Save the file with a .html extension. 

 4. Test the file in a browser.

EXAMPLE OUTPUT:

"ADDING BORDER WITH COLOR"

1. Open NOTEPAD

 2. Type these following codes.


CSS


p.red { border-style: solid; border-color: red; }

p.green { border-style: solid; border-color: green; }

 p.blue { border-style: solid; border-color:blue; }

HTML

<p class="red"> RED BORDER </p>

<p class="green">GREEN BORDER </p>

<p class="blue">BLUE BORDER </p>
3. Save the file with a .html extension. 

 4. Test the file in a browser.

EXAMPLE OUTPUT:

"ADDING ROUND BORDER"

1. Open NOTEPAD

 2. Type these following codes.

CSS


p.normal{ border:2px solid red; }

 p.round1{ border:2px solid red; border-radius:5px; }

p.round2{ border:2px solid red; border-radius: 8px; }

 p.round3{ border:2px solid red; border-radius: 12px; }

HTML

<p class="normal">
NORMAL BORDER</p>
<p class="round1">
 ROUND BORDER</p>
<p class="round2">
 ROUNDER BORDER</p>
<p class="round3">
ROUNDEST BORDER </p>
</body>
3. Save the file with a .html extension. 

 4. Test the file in a browser.

EXAMPLE OUTPUT:

Comments

  1. Not good enough, keep practicing

    ReplyDelete
  2. WOW! NooB PARIN AHAHAHAHAHAHHAA

    ReplyDelete
  3. Can't get this HTML out of my mind, hahaha, HTML is cool

    ReplyDelete
  4. This is computer matters? ok

    ReplyDelete
  5. but now, I still love computer

    ReplyDelete
  6. I think I've heard someone talks about HTML that this thing can be Profitable, whaaaaa

    ReplyDelete
  7. I've learned computer games back then but didn't realize that computer can do this things too!

    ReplyDelete
  8. it is indeed helpful! thanks for the information!

    ReplyDelete
  9. computer is quite difficult, but this blog sums up almost all important things! thanks for this!

    ReplyDelete
  10. I've never realized I can use this, a big thumbs up for creating this blog!

    ReplyDelete
  11. this blog makes me want to try all these codes : )) sooo helpful!

    ReplyDelete
  12. I never thought codes can be very entertaining to learn, great blog!

    ReplyDelete
  13. I didn't know anything about these stuff, this blog is very helpful especially for the beginners in using computer codes!

    ReplyDelete

Post a Comment