Currently studying computer science, but I've really only dealt with c++ & java. Currently trying to learn html & css, which is obviously not as difficult as having to write the code for a binary search tree which will balance itself after inserting data.
ANYWAYS!! I'm stuck! I dont understand why the .h css style in the following code isn't working on the contents of the div box!! Any help would be great.
<html>
<head>
<title>test</title>
<meta charset="UTF-8">
<style type=“text/css”>
.h {
color: red;
text-align: center;
}
</style>
</head>
<body>
<div class=“h”>Hello World</div>
</body>
</html>
This is obviously a very simple code of block, but the Hello World doesn't turn red. Would love to know what I am doing wrong.
THANK YOU!
P.S. I have tried checking the output on http://www.littlewebhut.com/html/ and nothing :(
styleanddivtags are "smart-quotes" that don't match, not real quotes, blame your editor.