I have come across a Surprising state as i never encountered this.
Details of problem:
I have an html code. if i save it and load it as file://~~/test.html it loads successfully and gives desired output However, if i put the same file in any server [ used localhost + 00webhost + infinityfree ] it doesnt give me desired output . Its however the same file without an inch of difference
What am i using:
Chrome browser -> updated to latest version
What have i tried:
i searched thoroughly but didnt find any matched problems like i have.
also tried changing various aspects of the file nothing really happened
NOTE: I included php because i think its server side problem
The html code: test.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8">
<title>Test Html</title>
</head>
<body>
<a href="Home" class="btn">Home</a>
<a href="Blog" class="btn">Blog</a>
<a href="Help" class="btn">Help</a>
<a href="About" class="btn">About Me!</a>
</body>
</html>
The css file : style.css
.btn{
text-decoration: none;
background-color: #ff0000;
}
EDIT: I am 100% sure about the files having in same directory and the files having no difference in their codes