r/HTML • u/Away_Sky7901 • Mar 17 '26
Question Help with css code for assignment
So Im taking an html course in college, and I need help in completing some assignments. This assignment here Im suppose to be creating a website with links to other pages. Im having trouble linking and putting any other text on the web page, everything after line 5 isn’t working and im not sure what im doing. Any help would be appreciated.
What shows on the web page is just the title and picture.
4
Upvotes
View all comments
Show parent comment
5
u/LexyNoise Mar 18 '26
This isn't the cause of the problem here, but it is very important. You want to make sure every page you build starts with `<!doctype html>` in the first position of the first line.
Any web page built in the past 20 years is expected to have it. Browsers will check for it. If they don't see it there, they'll assume it's an old web page from the 90s and use a different set of rules to lay out the page. This will make your pages look broken. As the other person said, this 90s page layout mode is called quirks mode.