Thursday, May 22, 2014

HTML TUTORIAL PART 15

HTML TUTORIAL PART 15

PROBLEM:
LOOK AT THE FOLLOWING:

Red and center-aligned heading

Red and center-aligned paragraph.


SOLVED:
THE CODE BELOW MADE THE HTML TIP:

<!DOCTYPE html>
<html>
<head>
<style>
.center
{
text-align:center;
color:red;
}
</style>
</head>

<body>
<h1 class="center">Red and center-aligned heading</h1>
<p class="center">Red and center-aligned paragraph.</p>
</body>
</html>

No comments:

Post a Comment