Q: safari 9.1.3 not displaying textedit html/css correctly
I'm trying to learn html/css and I am going through a basic instructional course that has you type some html and css style and then open it in Safari.
I have gone to the textedit preferences and selected plain text, I have unchecked .txt extension and have saved as index.html to try it in safari and it will not display correctly, are there other settings I have to set in textedit or safari in order for it to display correctly. below is my simple html text. Safari will not display the style.
<html>
<head>
<title>Starbuzz Coffee</title>
<style type=“text/css”>
body {
background-color: #d2b48c;
margin-left: 20%;
margin-right: 20%;
boarder: 2px dotted black;
padding: 10px 10px 10px 10px
font-family: sans-serif;
}
</style>
</head>
<body>
<h1>Starrbuzz Coffee Beverages</h1>
<h2>House Blend $1.49</h2>
<p>A smooth, mild blend of coffee from Mexico, bolivar and Guatemala.</p>
<h2>Mocha Caffe Latte, $2.35</h2>
<p>Espresso, steamed milk chocolate syrup.</p>
<h2>Cappuccino, $1.89</h2>
<p>A mixture of espresso, steamed milk and milk foam.</p>
<h2>Chai Tea, $1.85</h2>
<p>A spicy drink made with black tea, spices, milk and honey</p>
</body>
</html>
My iOS is 10.11.6 Safari is 9.1.3
Thanks,
Mike
iMac, iOS 9.3.5, my iOS is 10.11.6 safari is 9.1.3
Posted on Sep 4, 2016 12:51 AM
I almost never use TextEdit, because I either need a proper word processor, or a real programmer's editor. Now that you have discovered TextWrangler, and used it to a favorable result, good fortune in your web development learning curve. Watch those typos though.
Posted on Sep 4, 2016 6:53 PM
