Feeling like an HTML and CSS newbie as I encounter my first roadblock.
In my attempt to code, I have both my CSS and HTML files saved in the same directory using Notepad++. However, every time I try to open the HTML file in a browser, the specified ID in the CSS is not functioning properly - particularly centering and changing color.
This seems like one of those quick fixes waiting to be discovered.
Main.css
<style>
#change{color:red; text-align:center }
</style>
example.html
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<Title>sample</title>
<link rel="stylesheet" href="folder/main.css" />
</head>
<body>
<p id="change">Sample sample sample </p> //HERE IS WHERE THE ID IS
</body>
</html>
Any thoughts on what might be causing this issue?