Jump to content

Mastfa

Recommended Posts

Hi,

Just downloaded HeadFirst HTML and css....Was following the book to create a page.I entered the code correctly the way I see it. But the problem is that text size keeps increasing on every line....I dont see much things up there....

I am punching in the code which was entered and the pic of the webpage...Please suggest what went wrong.

<html>
<head>
<title>Star Coffee Beverages</title>
<style type = "text/css">
body {
          background-color: #d2b48c;
          margin-left: 20%;
          margin-right: 20%;
          border: 1px dotted gray;
          padding: 10px 10px 10px 10px;
          font-family: sans-serif;

}
</style>

</head>

<body>

<h1>Star Coffee Beverages</h1>
<h2>House Blend, $ 1.49<h/2>
<p>A smooth, mild blend of Coffee from Mexico, Bolivia and Gautemala.</p>

<h2>Nacho Caffe Latte, $ 2.35</h2>
<p>Espresso, steamed milk and chocolate syrup.</p>

<h2>Cappuccino, $ 1.09<h/2>
<p>A mixture of expresso, steamed milk and foam.</p>

<h2>Chai Tea, $ 1.85</h2>
<p>A spicy drink made with black tea, spices, milk and honey.</p>

</body>

</html>

Thanks and regards
 

Star Coffee.jpg

Edited by Mastfa
Edit code
Link to comment
Share on other sites

Mistakes

<h1>Star Coffee Beverages</h1>
<h2>House Blend, $ 1.49<h/2>
<p>A smooth, mild blend of Coffee from Mexico, Bolivia and Gautemala.</p>

<h2>Nacho Caffe Latte, $ 2.35</h2>
<p>Espresso, steamed milk and chocolate syrup.</p>

<h2>Cappuccino, $ 1.09<h/2>
<p>A mixture of expresso, steamed milk and foam.</p>

<h2>Chai Tea, $ 1.85</h2>
<p>A spicy drink made with black tea, spices, milk and honey.</p>

Edited by dsonesuk
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...