I have an HTML which will refer a CSS file for style. But it looks like HTML file is not able to find the CSS file. I tried with a simple background colour and that also doesn't seem to work.
VOD.HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
<body>
<div>
<table>
<tr>
<td><b>All</b></td>
{% for item in VOD1 %}
<td>ID: {{ item[0] }} <br/> Title: {{ item[1] }}<br/>
<img src="{{ item[2] }}" alt="dummy.jpg"> </img>
</td>
{% endfor %}
</tr>
<tr>
<td><b>Catch Up</b></td>
{% for item in VOD2 %}
<td>ID: {{ item[0] }} <br/> Title: {{ item[1] }}<br/>
<img src="{{ item[2] }}" alt="dummy.jpg"> </img>
</td>
{% endfor %}
</tr>
</table>
</div>
</body>
</html>
My CSS file is as follows.
mystyle.css
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: black;
}
.myStyle{
height: 50px;
width:50px;
}
td{
height: 100px;
width: 100px;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style>
</head>
</html>
Can some one help me in this? I don't have much experience in this HTML and CSS files.
<!DOCTYPE html>or any html tags, it should just bebody {}...<meta charset="UTF-8">should become<meta charset="UTF-8"/>body { background-color: black; } .myStyle{ height: 50px; width:50px; }/serves no purpose except to make people and syntax highlighters that are addicted to XML feel better.