22 Aug 2015

How to style STYLING HEADERS using just HTML and CSS

First create HTML file as given here:

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="css/primary.css">
    </head>
    <body>
        <h1>Contact US</h1>
        <h2>My Telephone</h2>
        <p>Call us on 123456789</p>
        <h2>My Email</h2>
        <p>Drop us an email on hello@damy.com</p>
    </body>
</html>

Create CSS file as given here:


body{
    font-family: Vardana, sans-serif;
}
h1,h2,h3{
    margin-top: 0;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
}

h1{text-decoration: underline;}

Share:

0 comments:

Post a Comment