Mastfa Posted July 19, 2017 Share Posted July 19, 2017 (edited) 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 Edited July 19, 2017 by Mastfa Edit code Link to comment Share on other sites More sharing options...
dsonesuk Posted July 19, 2017 Share Posted July 19, 2017 (edited) 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 July 19, 2017 by dsonesuk Link to comment Share on other sites More sharing options...
Mastfa Posted July 20, 2017 Author Share Posted July 20, 2017 13 hours ago, dsonesuk said: Thank you dsonesuk Issue has been resolved Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now