r/HTML • • 9h ago

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

6 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 • • 8h ago

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

Thumbnail
gallery
2 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 • • 16h 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 • • 1d ago

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

5 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 • • 2d ago Bravo

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 • • 2d ago

Question Wikipedia style gallery

4 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 • • 2d 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 • • 2d 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 • • 3d ago

Question My first website

25 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 • • 3d ago

Question Do browsers not support mkv video playback?

1 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 • • 3d 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 • • 4d ago

help me

2 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 • • 4d 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 • • 5d 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 • • 6d 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.


r/HTML • • 7d ago

I Need a Custom Video Player!

3 Upvotes

I'm making a website that I need to put a video in but I can't seem to find a decent custom video player. Right now I'm using the default video player from the browser. Any recommendations?

<video controls>
<source src="/assets/video/trailer.mp4" type="video/mp4">
<source src="sample-video.webm" type="video/webm">
Your browser does not support the video tag
</video>

r/HTML • • 7d ago

are anchor links the right thing for this?

Post image
11 Upvotes

i am not great with html, but i do like making my blog look nice. i wanted to make my blog be able to have each post accessed individually (instead of scrolling through them all) but without making each new post its own html page because that sounds awful. ive been looking into how to do this, and the closest thing i can find would be to use anchor links and 'jump' to the right post, but i wouldn't want the user to be able to scroll through the posts and they would have to click on the side bar to navigate them. would i need to use javascript for something like this? if it can be avoided i would love to avoid it.

so i dunno, if anyone has any idea how to start with this it would be greatly appreciated ! :-)


r/HTML • • 8d ago

Question [JavaScript/HTML] Unboxing simulator: Dual image display issue & daily forced wins

Thumbnail
unboxingtimecraciun.neocities.org
3 Upvotes

please note that I am a beginner at this and I don't know much about coding

Hi! I'm building a Christmas unboxing web app for my boyfriend, featuring a skin-case style spinning wheel. I'm running into two main issues:

  1. Dual Images & Display: I want the wheel to show a 'mystery/boxed' version of each item (e.g., canax.png), and then reveal the actual item image (e.g., cana.png) in the win popup modal when it lands. However, when I try to implement this, the images on the wheel disappear. (Note: All my image files and the HTML file are in the same root folder, no subfolders). What am I doing wrong?
  2. Forced Daily Outcomes: I want to be able to hardcode or easily change a variable every day so the wheel always lands on a specific item (e.g., day 1 is a mug, day 2 is a hoodie, etc.), allowing me to manually update just the item for that specific day. How can I structure my code to easily configure daily forced wins?

r/HTML • • 9d ago

Goodbye you legend to me 🥹

Post image
73 Upvotes

r/HTML • • 9d ago

Question I need help with this

Thumbnail
gallery
2 Upvotes

(RESOLVED)

I'm currently learning Responsive Web Design for a college class, and I have a bit of a problem with my header. Its supposed to span 80 to 90% of the viewport, but for some reason it isn't. Even my teacher is stumped without going too in-depth into my code. I have tried adding:

max-width:80%

display:

max-width: auto

and it hasn't fixed the problem, so how would I fix this issue?


r/HTML • • 10d ago

One Place for Menu?

Thumbnail
dalekelly.org
4 Upvotes

How can I put the menu in one place so I don't have to edit all places when I edit the menu? I will be browsing for this.


r/HTML • • 10d ago

my html web os simulator project: Mergen

Thumbnail
gallery
0 Upvotes

https://ziwoos1.edgeone.app/

code: https://files.catbox.moe/fvd039.html

I know it has a lots of bugs like JS Tester only test "alert("blablabla")" codes, it's stuck on Turkish and many more, but I am trying my best to make this simulator project much better. I use AI (sorry for AI haters 😭) for this project, mostly ChatGPT and Gemini. I would appreciate your feedback for my project. Oh also here is the websites that I tried on pic 2 and 3:

vexoryn.edgeone.dev

arbusearch.edgeone.app

Thanks.


r/HTML • • 10d ago

Discussion Does anyone else use HTML for creating PPTs?

1 Upvotes

My job requires me to make a few PPTs with a lot of tables with rounded edges and a lot of pointers.

In many such cases the native Powerpoint UI is too clunky for me and the Co pilot PPT generation is so horrible I am recently discovered that it is faster to have pre-saved snippets of html and drag and drop them into a single file

then render the web page, capture a screenshot and paste that screenshot into the PPT.

I'll give one simple example, I needed a page with 3 tables with rounded edges and 4 bullet points each, i also needed a burgundy colour theme with burgundy border and even spacing between tables,

This was done in a few minutes in HTML but before doing it in HTML i struggled for 30 mins in power point trying to find the right theme, using the correct font and so on

please tell me im not alone


r/HTML • • 10d ago

Tumblr Causing Issues On Theme

3 Upvotes

Hi

Can someone help me please? I've been editing this tumblr theme ( https://18hiraeth.tumblr.com/ ) on my own blog all night with no issues.

I fixed the first issue where it suddenly decided to keep bringing up the error code about:

Uhoh! We couldn't save your
theme. Looks like your custom
theme references assets from
non-HTTPS URLs. Please try
again using only HTTPS URLs.

Now I can't make the Home | Inbox | Archive links work for some reason.

Here is the pastebin: https://pastes.io/TFsdREJv

Any idea?

Thanks

Edit: I haven't put my own blog url here because it's a nsfw fanfic Tumblr.

Where the following is:

/home /ask and /archive, I have actually put the full url in followed by those. And it's still behaving like regular text, just sitting there.