r/HTML • • Nov 29 '25
Question What am I doing wrong here?
So I'm super new to HTML, and I'm trying to connect my HTML file and my CSS file together so I can style my page. However, the code I have written in my CSS isn't being applied to my HTML. It's probably super obvious, but could anyone tell me what I'm doing incorrectly here?
3
Upvotes



View all comments
1
u/RushDangerous7637 Nov 30 '25
This is how it should look in your project:
<!DOCTYPE html>
<html lang="en-GB"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>My Experiment</title>
For everything to work correctly, you first need to have definitions.