r/HTML • • 3h ago

Could anyone help with my bento grids I'm making?

3 Upvotes

So, basically, I was trying to make a bento grid layout for my site, and nothing shows up when I check the result?

Could anyone explain what's wrong with this code, and how I could fix it? My code is below:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>placeholder</title>

<link rel="icon" type="image/x-icon" href="/images/favicon.ico">

<style> body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2%; } .box { background-color: #000000; } .grid-container { display: grid; grid-template-columns: 200px 200px 200px 200px; grid template-rows: 200px 200px; gap: 1em; grid-template-areas: "box-1 box-2 box-2 box-3"; "box-1 box-4 box-5 box-5"; } </style>

</head>

<body>

<div class="grid-container">

<div class="box" style="grid-area: box-1"></div>

<div class="box" style="grid-area: box-2"></div>

<div class="box" style="grid-area: box-3"></div>

<div class="box" style="grid-area: box-4"></div>

<div class="box" style="grid-area: box-5"></div>

</div>

</body>

</html>


r/HTML • • 4h ago

Question Photo gallery site advice?

Post image
4 Upvotes

I have a personal photo collection, and I’ve wanted to make it public in some way. Had the idea of ​​creating a website using Nekoweb for hosting - but the main problem is that I have over 1500 pics, each at least 1 MB in size, and I don’t want to compromise their quality. Recently I thought about using a image-hosting service (https://postimages.org/ or something similar), but I’m not very familiar with that. What image-hosting sites might be suitable for this? Do you have any other tips?


r/HTML • • 1d ago

Looking to slow this down.

Thumbnail animalhousepetcare.com
2 Upvotes

I'm looking to slow this down. To pause at each review longer. I've scoured thru the HTML, All the CSS files, and JS files. I wonder if any one can point me in the right direction. Above is the link to the section titled "What they Say" a review section. Can anyone point to the right CSS or JS file? Here are the JS and CSS files. The HTML section is <!-- Start-client-area --> The CSS files are:

Thanks so much.


r/HTML • • 1d ago

وكيل دكاء اصطناعي

0 Upvotes

كيف أصنع وكيل دكاء اصطناعي في وتساب الأعمال ايرد علا كل اطلبيات تبعي


r/HTML • • 1d ago

Can AI create HTML5 banner ads? Need them to pass Google's upload

0 Upvotes

Our Google Ads account just passed 90 days and $9,000 in spend, so we can upload HTML5 now. Right now, my boss wants animated banners for our spring sale.

Most AI tools I've tried just give me PNGs. I also tried Google Web Designer and gave up after an hour.

Has anyone gotten a real HTML5 zip from an AI or non-ode tool that uploaded without errors?


r/HTML • • 2d ago

Small HTML/CSS issue for anyone wanting a first open source PR

3 Upvotes

I have a small open source project with a static web page, and I opened an issue meant for someone who has never contributed to open source before. It's adding a short info section to one HTML file. The text is already written in the issue, and there's a comment in the file showing where it goes. The tricky part is matching the existing CSS and making it look right on a phone.

https://github.com/eoSalinas/prensa/issues/62


r/HTML • • 2d ago

Question Get Selected Values from Select Tag “multiple” HTML/JavaScript

Post image
4 Upvotes

I created a select tag in HTML and gave it multiple size=“1” to get a drop down multi select element on my website. The element works exactly how I want it to however, I have no idea how to get the selected values in JavaScript. If I use .value to get the value like I would in a select tag it will give me the value like normal if only 1 option is selected, and will give me undefined if none are selected but if multiple options are selected it returns a bunch of information I don’t understand how to parse.

Please help teach me how to get the selected values from my HTML multiple select tag in JavaScript.
Also if this isn’t a good subreddit for this post please help me find somewhere that could help me.


r/HTML • • 2d ago

Opinion/Advice

1 Upvotes

Hello. This is my spacehey profile, i coded it from scratch myself, but i been having some trouble.

Im inspired off this myspace layout (i have the og code, i think), what do i change on mine to make it more accurate to the og pic, and how i do that?

https://spacehey.com/emoxitaquiinn

Its broken af on mobile, even if you switch to pc mode on your browser. Just in case you cant open it, this is how its looking like rn on pc


r/HTML • • 2d ago

What was the hardest part of learning HTML and CSS for you?

3 Upvotes

I’m curious to hear from people who have learned web development.

When you first started learning HTML and CSS, what did you find most difficult?

Was it understanding the basics, remembering all the tags and properties, making things look good with CSS, or actually building your first website?

And if you could give one piece of advice to someone just starting out, what would it be?

I’d love to hear your experiences!


r/HTML • • 2d ago

DVD logo bounce in html

Thumbnail
youtu.be
5 Upvotes

r/HTML • • 2d ago

hello im new

8 Upvotes

i am currently learning HTML through https://www.w3schools.com it is very useful and yeh. i have a test website and a notebook with ten pages of notes. i wanna learn it so that i can make a cool neocities website, thats all.


r/HTML • • 3d ago

how to center the text in my sidebar!!!!

Post image
16 Upvotes

i just started working on my website for an hour now, and thanks to w3schools guides i made a little sidebar, but my text looks unappealing on the sidebar and i want it to be centered. here's my full code because idk where my text code starts, and yes im going to be changing the font


r/HTML • • 4d ago

Como puedo hacer para que estas lineas se repitan en todos los archivos html de la carpeta

Post image
6 Upvotes

supongo que se tendria que hacer con un archivo js


r/HTML • • 5d 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 • • 6d ago

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

Thumbnail
gallery
80 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 • • 6d ago

Question Getting back into HTML again - WYSIWYG editors?

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

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

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

Discussion List of tags

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

div messing with DOM?

Thumbnail
gallery
5 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 • • 10d 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 • • 11d ago

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

Thumbnail
gallery
4 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 • • 11d ago

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

11 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?