[Solved] HTML and CSS not working


You cannot put <div> in the head section, here is the modified code:

<!DOCTYPE html>
<html>
<head>

    <style type="text/css">
            #bottom{
                width:70px;
                color:green;
                align-content:center;
            }
    </style>
    <title></title>
</head>
<body>
    <div id="heading" title="topbar">
        <h2>Welcome to our website</h2>
    </div>
    <div id="bottom" title="bottombar">
        <h2>Welcome to our website</h2>
    </div>
</body>
</html>

You forgot the closing semi-colons in the css ; and also forgot to close your divs, hope this helps.

1

solved HTML and CSS not working