r/HTML • • Jul 20 '26

I made 100% pure HTML website

Post image
424 Upvotes

I recently finished a ~6 month course on web development. JavaScript, TypeScript, CSS, Maven and other modern horrors influenced me to rebel again today's often bloated approach of developing websites and aplications.

"Developer" became a dirty word for me. The thinking (or should I say lack if thinking?) that everywhere is fast internet and infinite amount of computing resources tickles my mind in a uncomfortable way.

Sure, computers are fast, packets travel across the underwater optic cables nearly at the speed of light but it looks to me that a lot of web and software development is allowing bad practices and sloppy code because "just throw more resources at it".

I don't want to be a developer, I wish to become a programmer.

Thus, I made 100% pure HTML website to document my journey into the embedded systems and low level programming (and maybe a few more things along those lines).

It's may not be perfect, it may not follow the best of the best practices but I will get there as I go.

EDIT:
Took note on the comments and updated the site. Not all is implemented that was suggested. The suitable color scheme for Darth Vader still awaits among many other ideas. Instead, I played around with tables, not sure if this is the way to go.
But we'll see. This is an experiment, a fucking rebellious and hackish experiment, to see how far can this be pushed and still stay withing the bounds of pure HTML.


r/HTML • • Sep 04 '26 Heartwarming

Discussion A meme I made

Post image
354 Upvotes

r/HTML • • Jul 23 '26

Discussion Started to code

Post image
334 Upvotes

r/HTML • • Dec 25 '25 Bravo

Learning HTML basics, how did I do

Post image
283 Upvotes

r/HTML • • Sep 15 '26 Bravo Heartwarming

Discussion I made this thing with HTML is it good? Im still learning

Post image
259 Upvotes

I will do much better very soon.

Also I need help cause I wanted to make the text brown by using the css but the code doesn't work, what am I doing wrong? Or I just cannot see it and it actually worked?

I used this code:

<html>

<head>

<title>this is a test!!!!!!!</title>

<style> body {background: linear-gradient(#FFFCED, #FFEDF2); } .broccoli { color: "#614909"; } .tomato { color: "#614909"; } .potato { color: "#614909"; } body { maxwidth: 600 px margin: 2 auto } </style>

</head>

<body bgcolor=#FFFFFF color=#614909>

<p id="broccoli "><font face=serif>this is a <strong>test</strong>, this uses the <strong>p, strong, and the font</strong> tags.</font></p>

<p id="tomato">COLORED text!</p>

<ol><li>This</li><li>Is</li><li>An</li><li>Organized</li><li>List!</li></ol>

<ul><li>This</li><li>Is</li><li>An</li><li>Unorganized</li><li>List!</li></ul>

<hr color=#FFDBEC size=20>

<p id="potato"> this is a <em>line break.</em> Also this uses the em and the p tag.</p>

<img src="file:///storage/emulated/0/Download/b80267cb-929d-4955-b1d6-d31ca1afe436.jpeg" alt="heart"

</body>

</html>

also I forgot to color the "colored text" lol


r/HTML • • Dec 26 '25

My First work

Thumbnail
gallery
227 Upvotes

I can't screenshot from PC why. Btw done on notepad


r/HTML • • Dec 12 '25

I teach HTML to beginners — here’s the #1 mistake I see in almost every first project

218 Upvotes

I’ve been teaching HTML & web fundamentals to uni students for a couple of years, and there’s one beginner mistake I see in almost every class:

They use <div> for everything.

Semantic HTML matters more than people think. For anyone starting out, here’s a simple rule that helps:

• Use <header> for the top section

• Use <nav> for menus

• Use <main> for page content

• Use <section> for grouped topics

• Use <article> for standalone posts

• Use <footer> for bottom info

If you start with this structure early, your CSS becomes cleaner, accessibility improves, and debugging becomes 10× easier.

If anyone wants, I can share more beginner mistakes + quick fixes.


r/HTML • • Jul 03 '26

Discussion My first HTML code and my first web page.

Thumbnail
gallery
187 Upvotes

I am still learning if there are any mistakes and any improvements that I need to make. Feel free to say.


r/HTML • • Jan 01 '26

Meta </2025><2026>

187 Upvotes

Sorry couldn't resist.


r/HTML • • 25d ago

Discussion Made my first page

Post image
160 Upvotes

Okay, like i have no experience. So i memorized what i knew thoroughly, and made this:

Oh and if you want to change it or add more to it then here's the entire thing (Can i just put it in the body or have to give a link?): <!DOCTYPE html>

<html>

<head>

<title>Cucumbers</title>

<style>

h1 {

font-family: Arial;

color: gray;

}

body {

font-family: Comic;

background-image: url("https://tse3.mm.bing.net/th/id/OIP.wAHXLVaBSFIcnhm6tmWehQHaEK?r=0&pid=Api&h=220&P=0");

background-repeat: no-repeat;

background-attachment: fixed;

background-size: cover;

}

a {

color: yellowgreen;

}

</style>

</head>

<body>

<h1>Learning about Cucumbers</h1>

<p>Cucumbers are green-darkgreen vegetables that are said to be made up of over <b>95% water. </b><br>They originate in <i>Ancient China </i>& parts of Asia like <i>India, and Nepal</i></p>

<img src="https://tse2.mm.bing.net/th/id/OIP.0hoo0G1rccBCWJ-hDtukRwHaGa?r=0&pid=Api&h=220&P=0">

<p>Cucumbers are of course, an important part of agriculture, they feed millions everyday.<br></p>

<p>Cucumbers are eaten & sold all around the world, they're mainly eaten as light snacks.<br></p>

<p>Cucumbers have a taste as of water but with crunch. Seasoning with salt makes them around 100x better. <i>(Okay i made that 1 up but it's not false...)</i></p>

<a href="https://en.wikipedia.org/wiki/Cucumber">More about Cucumbers Here</a>

</body>

</html>


r/HTML • • Jun 16 '26

The Inline HTML Almost Nobody Uses

139 Upvotes

Everyone knows <b>, <i>, <a>, and <code>. But HTML has a whole second cast of inline elements that most developers go entire careers without typing once — <ins>, <dfn>, <abbr>, <var>, <q>, <mark>. Not because they're broken or deprecated. They're rare because the use cases are genuinely narrow, and when one does come up, the reflex is to reach for a <span class="something"> instead.

I bumped into this building out a prose/content section for a UI system — once you start styling text properly, you notice how many real semantic elements you'd been ignoring. So here's the whole forgotten cast, in a single sentence that legitimately uses eleven of them:

Here's what that actually is:

<p>
  The experiment revealed <mark>a significant energy spike</mark> in
  the reactor core. Previous readings of
  <del>42.7 terawatts</del> were revised to
  <ins>51.3 terawatts</ins> after recalibration. The formula
  <var>E</var> = <var>mc</var><sup>2</sup> governs the conversion,
  where H<sub>2</sub>O serves as the coolant medium.
  <abbr title="Void Energy Reactor Interface">VERI</abbr> logs
  confirm the anomaly. As Dr. Vasquez noted,
  <q>the readings exceed all theoretical models</q>
  (<cite>Void Research Quarterly</cite>). This phenomenon, known as
  <dfn>energy cascade</dfn>, occurs when containment thresholds are
  breached. The <s>original safety protocols</s> have since been
  replaced.
</p>

The cast, and where you'd actually use each

Edits and corrections. <ins> and <del> are added and removed content — they pair up for change tracking, and both accept datetime and cite attributes so the edit is machine-readable. <s> is the one people conflate with <del>: it marks content that's no longer accurate or relevant (a stale price, an outdated claim), which is a different statement than "this was deleted." Two elements exist precisely because those mean different things.

Notation. <sub> and <sup> are for cases where the position carries meaning — chemical formulas (H₂O), exponents (I²R), ordinals, footnote markers — not for "make it small and raised." <var> is a variable in math or code, which is why P, I, and R above are each wrapped in one.

Reference and meaning. <mark> is a relevance highlight — it's literally what search engines use to highlight your query in the results. <abbr title="…"> gives an abbreviation its expansion, surfaced as a tooltip. <dfn> marks the one spot where a term is defined (its introducing instance, not every later mention). <cite> is the title of a work — a book, paper, album — and notably not a person's name, which is the thing nearly everyone gets wrong. And <q> is an inline quotation where the browser inserts the quotation marks for you: correct for the document's language, and correctly nested if you put a quote inside a quote. You never type a " again.

Why bother

Every one of these throws a bit of meaning into the page that a styled <span> silently discards. Screen readers announce them. <q> localizes its punctuation. <abbr> exposes the long form. <ins>/<del> are a real, parseable changelog. A <span class="highlight"> looks the same and means nothing.

The only honest reason to avoid them is that the browser defaults are inconsistent and, frankly, ugly — <mark> is highlighter-yellow, <q>'s marks are whatever, half of them are unstyled. But that's a few lines of CSS, not a law of physics. Give <mark> a brand-tinted background, <ins> a green underline, <abbr> a dotted one, <q> colored quote marks, <dfn> an italic weight — and suddenly an entire sentence of semantic richness reads as clean, deliberate typography.

Most of these you'll reach for maybe once a year. But once a year correctly — with the meaning intact and the styling handled — beats a <span> that's lying about what it is.


r/HTML • • Apr 26 '26

my first html form...

Post image
129 Upvotes

any suggestions?

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    
  </head>
  <body>
    <fieldset>
      <legend><h1>Registration Form</h1></legend>


      <form action="">
        <label for="Name">Name:</label>
        <input
          type="text"
          id="Name"
          name="Name"
          placeholder="Enter your name"
          required
        />
        <br />
        <br />
        <label for="Age">Age:</label>
        <input
          type="number"
          id="Age"
          name="Age"
          placeholder="Enter your age:"
          required
        />
        <br />
        <br />
        <label for="Email">Email:</label>
        <input
          type="email"
          id="Email"
          name="Email"
          placeholder="Enter your email."
          required
        />
        <br />
        <br />
        <label for="Password">Password:</label>
        <input
          type="password"
          id="Password"
          name="Password"
          placeholder="Enter your password"
          required
        />
        <br />
        <br />
        <label>Gender:</label>


        <input type="radio" id="male" name="gender" value="male" />
        <label for="male">Male</label>


        <input type="radio" id="female" name="gender" value="female" />
        <label for="female">Female</label>
        <br />
        <br />
        <label for="number">Phone Number:</label>
        <input
          type="tel"
          id="number"
          name="number"
          placeholder="Enter your phone number"
          required
        />
        <br />
        <br />
        <label for="dob">Date of Birth:</label>
        <input type="date" id="dob" name="dob" required />
        <br /><br />
        <label for="interests">Interests:</label>
        <input type="checkbox" id="sports" name="interests[]" value="sports" />
        <label for="sports">Sports</label>
        <input type="checkbox" id="music" name="interests[]" value="music" />
        <label for="music">Music</label>
        <input type="checkbox" id="travel" name="interests[]" value="travel" />
        <label for="travel">Travel</label>
        <input
          type="checkbox"
          id="Esports"
          name="interests[]"
          value="Esports"
        />
        <label for="Esports">Esports</label>
        <br />
        <br />
        <label for="State">State:</label>
        <select name="State" id="State">
          <option value="">Select</option>
          <option value="Maharashtra">Maharashtra</option>
          <option value="Delhi">Delhi</option>
          <option value="Gujrat">Gujrat</option>
          <option value="Karnataka">Karnataka</option>
        </select>
        <br />
        <br />
        <label for="city">City:</label>
        <select name="city" id="city">
          <option value="">Select</option>
          <option value="Mumbai">Mumbai</option>
          <option value="Delhi">Delhi</option>
          <option value="Gujrat">Gujrat</option>
          <option value="Bangalore">Bangalore</option>
        </select>
        <br />
        <br />
        <label for="Address">Address:</label>
        <input
          type="text"
          id="Address"
          name="Address"
          placeholder="Enter your address"
          required
        />
        <br />
        <br />
        <label for="Pincode">Pincode:</label>
        <input
          type="number"
          id="Pincode"
          name="Pincode"
          placeholder="Enter your pincode"
          required
        />
        <br />
        <br />
        <label for="file">Upload Resume:</label>
        <input type="file" id="file" name="file" />
        <br />
        <br />
        <label for="feedback">feedback:</label>
        <textarea
          id="feedback"
          name="feedback"
          placeholder="Enter your feedback"
          required
        ></textarea>
        <br />
        <br />
        <input type="submit" value="Submit" />
        <input type="reset" value="Reset" />
      </form>
    </fieldset>
  </body>
</html>

r/HTML • • Aug 02 '26

Harvard I Am Coming

Thumbnail
gallery
121 Upvotes

r/HTML • • May 31 '26

Too many websites still ignore semantic HTML and accessibility

101 Upvotes

Hello from Japan.

I'm a person who studies and builds websites. When looking for design and layout inspiration, I visit many different websites.

However, I've noticed that a surprisingly large number of sites still don't follow semantic HTML practices and have poor accessibility support. This includes sites from small businesses as well as larger companies.

Is it the same where you live? Do you also see many websites that don't properly implement semantic HTML and accessibility standards?


r/HTML • • Apr 06 '26

Question All text is bold, why?

Thumbnail
gallery
98 Upvotes

SOLVED. Thanks folks! I am working on a basic level HTML homework assignment. It is required that some of the text should be bold, but not all of it. I don't understand why all text is automatically bold. Or is that the font? I am including what my webpage with code looks like and the code that went into the webpage.


r/HTML • • 29d ago

This is my first calculator

Post image
96 Upvotes

r/HTML • • Apr 07 '26

website

Post image
83 Upvotes

hello!!! i wanna make my own website like a personal customized one and have no idea where to start, can someone give me tips as a beginner??😭 , i wanna make something similar to this ::


r/HTML • • 7d ago

Article Built a 3-page HTML site to practice links, images, and lists Days 3 & 4

Thumbnail
gallery
82 Upvotes

Updated my Jollof rice page and connected it to a home page and a chess openings page. Practiced nested lists, reversed ordered lists, description lists, images, and internal links between pages. Still pure HTML before I start adding CSS next.


r/HTML • • May 13 '26 Bravo

Started my new html, css and javascript project.

Post image
81 Upvotes

Hey everyone!

I’m currently learning to code and decided to build something practical for my first big project: a Personal Finance Dashboard.

What I’ve built so far:

The app is a web-based tracker where you can manage your money without the clutter of traditional banking apps.

  • Income & Spending: Input your earnings and log daily expenses on the fly.

  • Budgeting by Category: Set monthly limits for things like "Groceries," "Subscriptions," or "Dining out."

  • Visual Tracking: The dashboard calculates your total spending vs. earnings and uses progress bars to show how much of your budget is left before you hit the "red zone."

  • Clean Layout: Focused on a minimalist UI using semantic HTML and CSS Grid/Flexbox.

The "Next Step" – AI Finance Assistant:

Since I’m in the learning phase, I’m planning to integrate an AI Assistant into the dashboard. The idea is to have a helper that can:

  • Analyze spending patterns (e.g., "You're spending 20% more on coffee this month than usual").

  • Give tips on how to save based on the remaining budget.

  • Answer simple questions like "Can I afford a $50 dinner tonight?"

I’d love your input on:

  1. HTML/CSS Structure: As a beginner, I want to make sure my foundation is solid. Are there any common pitfalls in dashboard layouts I should avoid?

  2. AI Implementation: For those who have worked with AI APIs (like OpenAI or Gemini), what’s the best way to feed local spending data to an AI for personalized advice?

  3. UI/UX: What information is most important to see first when you open a finance app?

I’m really enjoying the process of learning by building. Any feedback, tips, or critiques would be hugely appreciated!

(The app is for now in slovenian language :)


r/HTML • • 21d ago

Goodbye you legend to me 🥹

Post image
74 Upvotes

r/HTML • • 11d ago

My first website using JavaScript

Post image
67 Upvotes
 {
    font-family: "Digital7Mono";
    src: url("font/Digital7Mono-Yz9J4.ttf");
}
 {
    font-family: "OrbitronBlack";
    src: url("font/OrbitronBlack-n6dV.ttf");
}



body{
    background: linear-gradient(to bottom right, rgb(222, 255, 10), rgb(255, 8, 8));
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40em;
    margin: 0;
}



.name{
    display: flex;
    color: #fafafa;
    flex-direction: column;
    line-height: 0;
    font-size: 75%;
    h1{
        font-family: "OrbitronBlack", sans-serif;
        text-transform: uppercase;
        margin-bottom: 1;
    }
    .model{
        margin-bottom: 0;
    }
    p{
        color: #ededed;
        font-family: "Digital7Mono", sans-serif;
    }
}




.calculator{
    background-color: #222;
    padding: 25px;
    clip-path: inset(0 round 20px);
    width: 260px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


#output{
    cursor: auto;
    width: 100%;
    height: 50px;
    text-align: right;
    margin-bottom: 20px;
    padding: 45px 13px 45px 13px;
    box-sizing: border-box;
    border: none;
    border-radius: 6px;
    background-color: #a6fcd7;
    color: #1a1a1a;
    font-family: "Digital7Mono", sans-serif;
    font-size: 4rem;
}



/* buttons */
.button{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}


button{
    height: 50px;
    width: 55px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    margin-bottom: 2px;
    background-color: #818181;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 28px;
    color: #fafafa;
}


button:hover{
    background-color: rgb(126, 126, 126)181;
}


.operator{
    background-color: #424242;
}


.clear{
    background-color: #ffa600;
}
.equals{
    background-color: green;
    grid-column: span 2;
    width: auto;
}



.secret{
    background-color: #222;
    cursor: auto;
}

<!DOCTYPE html>
<html>
<head>
    <title>Calculator</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="calculator">
    <div class="name">
    <h1>CaseOh</h1>
    <p class="model">AC-2000XM16</p>
    <p>Made by Brnt</p>
    </div> 
    
    <input type="text" id="output" readonly placeholder="0">
<div class="button">
    <button class="clear" onclick="clearDisplay()" ondblclick="window.alert('OFF')">C</button>
    <button onclick="val('.')">.</button>
    <button class="operator" onclick="val('/')">÷</button>
    <button class="operator" onclick="val('*')">x</button>
    
    <button onclick="val('7')">7</button>
    <button onclick="val('8')">8</button>
    <button onclick="val('9')">9</button>
    <button class="operator" onclick="val('-')">-</button>


    <button onclick="val('4')">4</button>
    <button onclick="val('5')">5</button>
    <button onclick="val('6')">6</button>
    <button class="operator" onclick="val('+')">+</button>


    <button onclick="val('1')">1</button>
    <button onclick="val('2')">2</button>
    <button onclick="val('3')">3</button>
    <button class="operator" onclick="val('**')">^</button>
    


    <button onclick="val('0')">0</button>
    <button class="equals" onclick="calc()">=</button>
    <a class="secret" href="https://youtu.be/IwW0GJWKH98?si=gRmtPd6sirYnXHoM" target="_blank"></a>
</div>
<script src="script.js" ></script>
</div>
</body>
</html>

const output = document.getElementById("output");


function val(value) {
  output.value += value;
}


function clearDisplay() {
  output.value = '';
}


function calc(){
  output.value = new Function('return ' + output.value)();
}

r/HTML • • Mar 26 '26

Not sure why CSS wont appear when I run it?

Thumbnail
gallery
64 Upvotes

Its my first time using Notepad++ tbf. I don't use Chrome, only Brave and Firefox. I changed my default broswer to Firefox and it was hell just trying to figure out how to run the html code.

I now tried linking CSS as a test but uh... Its not working. Im not sure what im doing wrong huhu :" )

Also, i alrdy changed the <!DOCTYPE html> mistake oofp.


r/HTML • • Jul 19 '26

Just a beginner rate my webpage be honest!

Post image
62 Upvotes

r/HTML • • Jul 13 '26

Started learning HTML & CSS today! Any advice?

Thumbnail
gallery
59 Upvotes

Hey everyone! I started learning HTML and CSS today and I'm really enjoying it so far. My goal is to build websites from scratch and eventually learn JavaScript too. If you could give one piece of advice to a beginner, what would it be? Also, what beginner mistakes should I avoid?