Wednesday, 28 February 2018

Form Designing with Div tag using CSS in HTML

DivCSS.html
<!DOCTYPE html>
<html>
<head>
<title>HTML div Tag</title>
<link rel="stylesheet" type="text/css"  href="style2.css">
</head>
<body>
<div id="contentinfo">
<p>Welcome to our website. We provide tutorials on various subjects.</p>
</div>
</body>
</html>

style2.css
#contentinfo p {
    line-height: 20px;
margin: 30px;
padding-bottom: 20px;
text-align: justify;
width: 200px;
color: red;
}

0 comments

Post a Comment