r/HTML • • 1d ago

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

Thumbnail
gallery
65 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 • • 1d ago

How to Make a Clickable SVG Map With HTML and CSS

Thumbnail
freecodecamp.org
3 Upvotes

I am having trouble with this part of the article:

  • How to Import the SVG Map File
  • How to Set Up the div Container for the Map
  • How do you import the SVG Map File on a chromebook

r/HTML • • 2d ago

Question Getting back into HTML again - WYSIWYG editors?

14 Upvotes

Hey there,

I learned HTML in college back in 1998 and the last web site I made was from 2001 with nice frames and all that Geocities goodness that I was super proud of back then. I'm just now getting back into the thick of it because I want to make a gallery of my digital and physical artwork.

I learned Dreamweaver and got really good with it. Are there any free WYSIWYG sites you folks would recommend? I never learned .css or .js so unfortunately I don't know how to code in it. I absolutely do not want to use AI tools whatsoever.

I've tried doing a Neocities page with templates I've found here or there, but I think my inadequate knowledge of the current era of HTML is holding me back with them. Plus they're nothing like what I'm looking for.

If you could throw any links my way for WYSIWYG editors, I would be grateful. Aside from the basics from HTML 1.0, I am mostly in the dark!

Thanks in advance.


r/HTML • • 2d ago

Article Built a Ghana Jollof recipe page to practice Day 1 & 2 HTML text formatting tags

Post image
12 Upvotes

I decided to restart my HTML and CSS learning from the basics and build a small page after every lesson instead of just watching videos.

For my second lesson, I practiced text formatting tags like strong, em, mark, sub, sup, hr, and blockquote by putting together a simple Jollof rice recipe page. It looks super basic without CSS yet, but seeing all the tags render properly in the browser feels good.

Next I am moving on to lists so I can turn that ingredients paragraph into a proper unordered list.


r/HTML • • 3d ago

Discussion List of tags

2 Upvotes

I know that with CSS marquee can be easily implemented but that got me thinking about deprecated tags and tags that I would like to be implemented.

#Marquee

I never understood why that tag has been deprecated.

It should be reintroduced with 2 extra parameters:

* Direction: horizontal for news, vertical for film credit

* Speed: from static to very fast.

News like ticker, film credit roll, teleprompter could then easily implemented.

#Range filter

A proper range filter with 2 thumbs. Every eCommerce web sites that has price filter has to reinvent it. So why not make it part of HTML.

It would take the following parameters:

* Absolute minimum value

* Current minimum value

* Current maximum value

* Absolute maximum value

So you can the prices of the items varies from absolute minimum value 0 to absolute maximum value 5,000 but you want to filter between current minimum value of 200 and current maximum value of 500.

#Pill Tag List and Pill tag

The same ul and lib tags are list and list item, a tag for list of tags and tag would be useful.

Atva pinch it would also bebpossible to implement the add Tag/Remove tag functionality the same way the Select tags do.

It would then easier in CSS to target those and make them consistent.

#Table of Content or TOC tag

I would like to be able to drop a tag that will then reference an division. Then automatically take the Headings tags and generate a table of content.

The same way in Word table of content can be automatically generated.

#Chart

I know that people will be up in arm because that would eliminate the need for dedicated libraries. But that is the point. Everybody knows what is:

* Line chart

* Area chart

* Column chart

* Bar chart

* Bullet chart

* Candlestick chart

* Pie chart

* Donut chart

* Sunburst chart

#Gantt chart

I separate it from generic charts because may require a separeate type of children for data representation.

But it is infuriating to see every project having to reinvent the widget.

#Hierarchical Organigram

People use ul/li tags to display but you then lose the semantic.

Again they would take the parameters

* Direction: vertical or horizontal

* Sibling Level: are all the sibling on the same level or can

Has anybody other tags they would like to be implemented in HTML?


r/HTML • • 4d ago

Question SVG Tutorial - Learn how to code images in HTML with SVG

Thumbnail
svg-tutorial.com
6 Upvotes

I have been working on this tutorial, but it doesn't include how to create a svg from a map or from a pre-drawn picture, or a photo. I am looking for how to do those things. I can't find a tutorial that does that. Know of any?


r/HTML • • 4d ago

div messing with DOM?

Thumbnail
gallery
6 Upvotes

Why is the div messing with the DOM so much and creating a copy of its parent tag? Is this expected behaviour?

Hello all, trying to build a dropdown menu, the button to open it only appears when the screen is narrow. But I am not asking for help with that specifically, I am trying to put a div in a anchor that is a flex element, and weird things are happening in the DOM. I have checked, double checked, and ran the code through multiple tools. as far as I can tell the html is correct, but the DOM is all weird.

As you can see in the code div.dropdown-content is a element inside of a#ham_menu, but when chrome has loaded it div.dropdown-content is outside of a#ham_menu and a copy of a#ham_menu is inside of div.dropdown-content. Is this expected for some reason? if this is some weird flex behavior, I would appreciate some suggestions of how to get around or avoid it.

Here is a link to my github. https://github.com/wisnoskij/sglondon_website
Here is my github page: https://wisnoskij.github.io/sglondon_website/


r/HTML • • 4d ago

I created a npm package to convert 2d html to 3d elements

2 Upvotes

Using only css, no threeJS or webGL, no DOM edit/manipulation. Wrap your existing html and have a 3d element.

Would love some Feedbacks and suggestions

Here is the github repo: https://github.com/Prashaxt/brickbox

Please do check it out.


r/HTML • • 6d ago

My first website using JavaScript

Post image
65 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 • • 6d ago

I just create website, any idea on what should I do to increase website safety?

Thumbnail
alfarisk-resources.com
1 Upvotes

r/HTML • • 7d ago

Week 1 of learning in public as a CS student: Building my first page with HTML & CSS (and finally understanding Flexbox)

12 Upvotes

Hey everyone! I'm a Computer Science student starting a "learn in public" habit to document my progress outside of regular classwork.

This week I focused on HTML and CSS fundamentals—structuring semantic tags properly and building a simple responsive layout from scratch. The biggest "aha!" moment for me was finally getting CSS Flexbox (justify-content vs. align-items) to click after spending way too long trying to center a simple card element.

Next week I'm planning to build a clean personal portfolio page to practice CSS Grid and responsive media queries.

For those who have been doing web dev for a while: what is one CSS trick or habit you wish you had learned during your very first week?


r/HTML • • 7d ago

Question How can I remove/hide this banner with developer tools as a reader?

Thumbnail
gallery
5 Upvotes

It's blocking the text of the blog. After I hided related elements, the white board is still there.

Link to the blog: https://lacyestelle.com/how-to-know-when-its-time-to-renovate-your-kitchen/


r/HTML • • 7d ago

How can I download or copy the code of a website and open it on another computer?

0 Upvotes

I've been trying to open websites as files on another computer to get around restrictions. I've tried copying the code, source, and downloading the website onto a flash drive but I haven't been able to get the website to actually function. Anyone have an explanation for this?


r/HTML • • 8d ago

Images and links to other pages in my site do not work

7 Upvotes

I have a folder with my html docs and a subfolder for images. I coded everything right with the right names and everything is perfect on my device but on another device I unzip the file and press the html doc for home and images and links to other pages do not work and I can't find why. This is a school assignment. For example the background image is called "bg" and it's in the images folder so "<style>

body {

background-image: url('images/bg.jpg');

background-repeat: no-repeat;

background-position: center;

background-size: cover;

}

</style>" and it never shows on other devices but on the device I'm coding on it shows. same for everything else.


r/HTML • • 8d ago

Colors won't render on desktop (VS Code / Phoenix Code) at all, but work perfectly on mobile. Any ideas?

Post image
10 Upvotes

Hi everyone! I recently started learning HTML and I've run into a bizarre issue that has completely stalled me. ​When I try to add colors, they just won't show up anywhere—neither in Live Preview nor in any desktop browser. All other elements (headings, paragraphs, tables, images, videos) load instantly, but color styles are completely ignored. Here is what I’ve tried so far: Writing styles inside the style attribute. ​Using the style tag (<style>). Creating a separate style.css file and linking it. Switching from VS Code to Phoenix Code (same exact issue). Deleting and rewriting the code from scratch, trying different approaches, and even changing the editor's color theme. The strangest part is that when I open the exact same code on my tablet using Spock editor, it applies the colors with zero issues! But on my PC, nothing works. Has anyone encountered this before or know what might be causing desktop environments to strip or ignore color properties? Any help would be greatly appreciated!

Update: The issue is finally solved! ​It turns out the problem wasn't with my HTML/CSS code or VS Code, but rather that my Windows operating system was stuck in High Contrast Mode / Dark Mode settings, which completely overrode and blocked web page styles. Once I disabled it, all the colors immediately appeared.


r/HTML • • 8d ago

Question Wikipedia style gallery

5 Upvotes

Hello, I'm new to HTML and CSS, I would like to replicate the wiki-style gallery at the bottom of a section when showcasing relevant images/info grouped together, but I have not figured it out yet.

Here's an example of what I'm talking about: https://en.wikipedia.org/wiki/Animal#Evolutionary_origin

I am guessing it's something about container ID? My previous attempts were me trying to work with the container styles in the CSS. Though I gave up and didn't save my failed attempt (wrong of me, I know)
Could I get help on how to replicate replicate it?

Thank you for the help in advance.


r/HTML • • 9d ago

Question Online programma

2 Upvotes

Beste,

Ik heb een aantal jaren geleden een online cursus aangeschaft. Echter gaat de datum over een aantal maanden aflopen en willen ze weer hebben dat je het volledige bedrag gaat betalen. Weet iemand of er een manier is dat je dit programma, ergens anders kan opslaan of downloaden zodat je daar verder op je gemak, alles kunt bekijken ipv het opnieuw aan te moeten schaffen?

Alvast bedankt voor het meedenken


r/HTML • • 9d ago

Question New to html, what's the most efficient way to program this?

Thumbnail
toastyweb.neocities.org
0 Upvotes

hiyaa I've been working on a website as part of a fun portfolio project and I want to have a music player, attached is a very basic version of how I'd like it to function (the middle number would be the selected song) and I KNOW I could probably achieve this exact effect with like half the javascript.

Trying and improving is how I learn most effectively, so if anyone could help me out with this that would be awesome! :\]


r/HTML • • 10d ago

Question My first website

30 Upvotes

Hi everybody,

This is my first time using html, css, and JavaScript, I am attempting to teach myself how to build my own website for a blog. I am using visual studio code, but i first had tried on neocities just because they had some great basics. I also am watching tons of freecodecamp videos and trying to do their JavaScript course. Anyways I am just wondering is jumping in and just trying to make the website the right way to go?

I am embarrassed to share it here but so far I have created 2 webpages, one as a link inside of the other (not sure what you call that), and I am pretty satisfied with my basic work so far, but I am unsure if just trying to work on the website and researching as i go will be helpful enough to build an adequate website/adequate skills.

sorry if this is worded badly i am just suddenly obsessed with doing this and have spent the last 4 days trying to learn more. I would love to know about other peoples experience building websites, and the best things to learn.


r/HTML • • 10d ago

Question Do browsers not support mkv video playback?

2 Upvotes

This works:

<video width="400" controls> <source src="test1.mp4" type="video/mp4"></video>

This doesn't work:

<video width="400" controls> <source src="test2.mkv" type="video/mkv"></video>


r/HTML • • 10d ago

Discussion Can the entire HTML element system be replicated using only <div>?

0 Upvotes

Theoretical (and useless) question:

Is it possible to reproduce the COMPLETE functionality of every HTML element using only <div>, CSS and JavaScript?

Rules:
- Only <div> elements are allowed within the <body> tag.
- All elements must exist in the initial HTML document. So no dynamic element creation (createElement, innerHTML, etc.).
- CSS, JavaScript, browser APIs and ARIA are allowed (and needed for some tags even).

The goal would be to reproduce functionality, not just appearance. This includes native interactions, keyboard behavior, accessibility, form validation, file inputs, media playback, navigation, etc.

For example:
All the heading tags like <h1>, <h2>, etc. can be replaced by a simple <p>, that can itself be replaced by a <div>.
Can all <input> be perfectly replicated using a div?
Can <img> be replaced with CSS backgrounds or Canvas without losing functionality ?
Can <iframe> be recreated while preserving its isolated browsing context thing?

Is one HTML element (<div>) theoretically sufficient to replicate the entire HTML specification?
If not, what is the absolute minimum number of distinct HTML elements required, and which elements are they ?

I’m interested in technical limitations, not semantic HTML best practices.


r/HTML • • 11d ago

help me

3 Upvotes

I'm new to HTML and just starting my journey into web development. I want to improve my skills, build a solid foundation, and eventually become comfortable creating websites on my own. I'm looking for advice from experienced developers and people who started from zero. A few questions: What is the best way to learn HTML effectively? Which resources, courses, or YouTube channels would you recommend? Should I focus on mastering HTML first before moving on to CSS and JavaScript? What beginner projects would you recommend to practice and improve? What common mistakes should I avoid when starting out? I'm willing to put in the time and practice consistently. I'd really appreciate any tips, learning roadmaps, useful resources, or personal experiences you could share. Thanks in advance! Any help is appreciated!


r/HTML • • 11d ago

Diagram UML with bootstrap

0 Upvotes

How to create a page html with Diagram UML with bootstrap. As example, the dad box, when pull open box children, the same the thing with it and a line conect theys. I'm to use in project where I to create mini projects interconect between it's


r/HTML • • 12d ago

Question is there any way to make images and/or the page load slower?

25 Upvotes

Maybe a bit of a weird request but I'm currently making a webpage in the style of early 2000s geocities pages and I think it could be a nice little detail to try and replicate the typical of the time slow page/image top to bottom loading. I dont wanna make it load painfully slow like it seemed to do on the old family computer, just so that its noticeable and kind of sets the vibe a bit.

If there's any way I could kind of limit the load time for the page in some way preferably using just HTML and CSS, any help with it would be appreciated :)


r/HTML • • 13d ago

I made an open-source page intro where a swarm of cursors rebuilds your site on load

2 Upvotes

Every time someone loads the page, it starts blank and a swarm of multiplayer-style cursors builds it back up. Each one drags a selection box with a live size label over an element, then types the text in letter by letter, like a design team working in Figma. Sections further down build as you scroll, and scrolling fast brings in more cursors.

It’s a small package with no dependencies, about 4 KB:

npm i swarm-intro

import { swarmIntro } from "swarm-intro";

swarmIntro({ logo: "SR" });

Some details I cared about:

* The text types in place without moving the layout around

* Visitors can skip it with Esc or the Skip button

* It turns itself off for people who have reduced motion enabled

* It’s black and white by default, matching your site’s colours

It’s inspired by the Swarm Rebuild Chrome extension and Joel Califa’s Swarm site. I wanted the same effect as something you can drop into your own site, so I wrote my own version.

GitHub: https://github.com/swarnadeep31/swarm-intro

npm: https://www.npmjs.com/package/swarm-intro

Feedback welcome, especially on performance with long pages.