p border: 1px solid black; : p border « Tags « HTML / CSS






p border: 1px solid black;

    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
        <head>
            <title></title>
            <style type='text/css'>
        p {
            border: 1px solid black;
        }
            </style>
        </head>
        <body>
      <p>
          This paragraph has a 1 pixel thick, solid black border around it.
      </p>
        </body>
    </html>

   
    
    
    
  








Related examples in the same category

1.This is a paragraph with an inset border
2.This is a paragraph with a solid border
3.This is a paragraph with a dotted border
4.This is a paragraph with a dashed border
5.This is a paragraph with a double border
6.This is a paragraph with a groove border
7.This is a paragraph with a ridge border
8.p border: 1px solid steelblue;
9.p border:solid black 1px;
10.p border: 1px solid rgb(200, 200, 200);
11.p border: 1px solid rgb(29, 179, 82);
12.p border: none;
13.p border: 1px solid lightblue;
14.p border-top: solid;
15.p {border-style:solid; border-color:#000000; border-width:2px; padding:5px; width:200px; background-color:#FFFFFF;}
16.Paragraph with various border styles
17.Use border the wrap around a paragraph
18.paragraph with various border style