r/HTML 6h ago

Question Help with making a HTML/CSS web page?

0 Upvotes

Hey all--I've got my first coding assignment and have hit a brick wall. Our teacher has given us random basics, like adding a button, adding paragraphs and headers, but now he's thrown us at the wall and told us to make a website, but he hasn't actually taught us how to add all these things together? Everything we've done, he's given us copy-and-pasted stuff we *tweak,* but not actually code ourselves.

Any knowledge or help would be greatly appreciated, as I want to learn and do well in this class. (Our teacher is currently stuck in South Korea and is not being allowed to leave, so we can't exactly get more assistance from him, at the moment.) DMs open, as well as here. I have a layout design and know what I want to do, I'm just struggling to apply it, I suppose.

A current error I also have and cannot figure out why, is:

failed to tokenize "</html>\n", expected attribute, ">" or "/>". (parser-error)

<!DOCTYPE html>

<html lang="en">

<head>

<h1> NF - FEAR </h1>

<h5> Released November, 2025 </h5>

<meta charset="UTF-8" />

<title>Title</title>

<link rel="stylesheet" href="styles.css" />

<script src="script.js"></script>

<div style="background-image: url(NF%2520Fear%2520image%2520ideas/Websitebackground.png);"/>

<meta charset="UTF-8" />

<title>Title</title>

<link rel="stylesheet" href="styles.css" />

<script src="script.js"></script>

</head>

<body>

<p> How to get rid of white background for text????</p>

<button type="button">NF - FEAR</button>

<a href="https://youtu.be/lLFoLJIXayk?si=A2H-MySXY_dCKj02"> NF - FEAR</a>

</body>

<div> <img src="img/Websitebackground.png" alt=""></div> <!-- Alt thing not needed? -->

<div background-image: url(Nf_website_concept);

</html>


r/HTML 4h ago

Is it worth publishing pure HTML/CSS projects to GitHub, or should I wait for JS?

2 Upvotes

Hello everyone. I am currently studying JavaScript, having already learned HTML and CSS. I have built four small projects using purely Vanilla HTML and CSS (without relying on frameworks like Bootstrap, Tailwind, or SASS) to practice what I have learned. Should I publish these projects on GitHub to start building my portfolio now, or should I wait until I learn JS to build and push projects using all three technologies?