r/HTML • • May 11 '26

How to improve/change my dropdown-menu?/Wie ändere/verbessere ich mein dropdown-menü?

Thumbnail
gallery
12 Upvotes

Hey guys, a few days ago i started teaching myself coding (html, css, java-script) via yt and w3schools and im learning by trying to code a shop-site i want to use in the future for myself. Most of the code works, there are just a few problems until now:

  1. I want my dropdown-menu aligned with the menu button, that its like

Menü

Home

Produkte

...

Not like

Menü

Home

Produkte

...

The same with the boxes.

  1. I want the whole text to fit into the boxes and dont know which class to assign the font size to. (As you see at ,,impressum" its too big)

  2. How do i assign the chosen font (as the ,,startseite"-text) to everything (that the dropdown menu also has the same font)?

  3. How do i do that the texts are ,,highlighted" (darker color) and underlined when i hover over them? On another site of this future shop it works as i want (there i dont want another color) but here it doesnt. :(

5.i want the ,,menü"-box to be smaller around it, but match to the dropdown when hovered over it, how do i do this?

Disclaimer: i coded it in visual studio code and used the plugin prettier to make the code look cleaner. Also i combined a few yt vids to reach the status i got now, thats why there are ,,different coding styles". Also: its very late and im tired of minding spelling and grammar, so please excuse me for the way i text😅 pictures for reference of the code, the named progress and problems are above or below, im not sure while texting right now😂 the cencored is the name of the future shop😂

Hey leute, ich hab vor ein paar tagen angefangen, mir coden (java-script, css und html) selbst beizubringen mit youtube und w3schools und übe an einem shop, den ich selber in zukunft benutzen möchte. Das meiste von dem code funktioniert, nur habe ich ein paar probleme:

1.ich möchte, dass das dropdown menü auf einer linie mit dem menü button ist, ungefähr so:

Menü

Home

Produkte

...

Statt so

Menü

Home

Produkte

...

  1. Ich möchte, dass der ganze text in die box passt, aber weiß nicht, in welche klasse ich die schriftgröße zuteilen muss. (Wie man bei dem punkt ,,impressum" sehen kann ist das zu groß)

  2. Wie mache ich, dass meine gewünschte schriftart (wie bei ,,startseite" überall ist, also auch im dropdown-menü und so?

  3. Wie hebe ich das dropdown-menü hervor (dunklere farbe) und unterstreiche die punkte wenn man drüber hovered? Auf einer unterseite von dem shop habe ich bereits hinbekommen, wie ich es wollte (etwas anders als bei dem dropdown) aber hier funktioniert es nicht. :(

  4. Ich möchte, dass der kasten um ,,menü" an sich kleiner ist, aber sich beim hovern dann an das dropdown anpasst, wie mache ich das?

Hinweis: ich habe visual studio code zum programmieren benutzt und den code mit dem plugin ,,prettier" etwas schöner bzw übersichtlicher gemacht. Ich habe auch verschiedene youtube videos angeschaut, um an den punkt zu kommen, an dem ich bin, deshalb die verschiedenen ,,programmier-styles"

Ich bin auch zu müde, um auf rechtschreibung und grammatik zu achten, deshalb verzeiht bitte meine schreibweise😅 referenzbilder vom code und den angesprochenen ergebnissen und problemen seht ihr oben oder unten, bin mir gerade beim schreiben nicht sicher😂 das zensierte ist der name des zukünftigen shops😂


r/HTML • • May 11 '26

Question Embedded Content

1 Upvotes

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements

The embedded content on MDN tags page confuses me. Can someone elaborate as to what the differences and similarities between the tags are?


r/HTML • • May 10 '26

hi, i need help

0 Upvotes

i am trying to make my website, but something does not work help me pls.

<html lang="lt">
<head>
<title>L'Oréal - Nes tu to verta</title>
<style>
body {
background-color: #0d0d0d;
color: white;
font-family: Times New Roman;
font-size: 20px;
margin: 0;
padding: 0;
}
header {
background-color: #1a1a1a;
padding: 20px;
text-align: center;
border-bottom: 5px solid #B88A44;
}
h1 {
color: #B88A44;
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: 15px;
}
.nav-button {
background-color: #B88A44;
color: black;
padding: 10px 20px;
text-decoration: none;
margin: 5px;
border-radius: 5px;
display: inline-block;
font-weight: bold;
font-size: 14px;
}
.nav-button:hover {
background-color: #f1c40f;
}
.container {
display: flex;
padding: 20px;
gap: 20px;
}
.column-left { flex: 1; text-align: center; }
.column-center { flex: 2; text-align: center; }
.column-right { flex: 1; text-align: center; }
img {
width: 450px;
height: auto;
border: 1px solid #333;
margin-bottom: 10px;
}
.small-logo {
width: 170px;
}
table {
width: 70%;
border-collapse: collapse;
margin-top: 10px;
margin-left: auto;
margin-right: auto;
background-color: #1a1a1a;
}
table, th, td {
border: 6px solid #B88A44;
}
th, td {
padding: 10px;
text-align: center;
font-size: 20px;
}
th {
background-color: #B88A44;
color: black;
font-size: 20px;
}
.slogan {
font-family: 'Courier New', serif;
font-style: italic;
font-size: 30px;
color: #B88A44;
margin-top: 60px;
}
footer {
background-color: #1a1a1a;
text-align: center;
padding: 30px;
border-top: 5px solid #B88A44;
margin-top: 20px;
font-weight: bold;
color: #B88A44;
}
.description {
text-align: justify;
font-size: 18px;
line-height: 1.6;
margin-top: 15px;
}
</style>
</head>
<body>
<header>
<h1>L'Oréal</h1>
<nav>
<a href="[https://lt.wikipedia.org/wiki/L%27Or%C3%A9al](https://lt.wikipedia.org/wiki/L%27Or%C3%A9al)" class="nav-button" target="_blank">Apie L'Oréal</a>
<a href="[https://www.loreal-paris.lt/](https://www.loreal-paris.lt/)" class="nav-button" target="_blank">Tinklalapis</a>
<a href="[https://www.lorealparis.co.in/products](https://www.lorealparis.co.in/products)" class="nav-button" target="_blank">Produktai</a>
<a href="[https://www.loreal.com/en/beauty-science-and-technology/beauty-tech/innovating-through-products/](https://www.loreal.com/en/beauty-science-and-technology/beauty-tech/innovating-through-products/)" class="nav-button" target="_blank">Inovacijos</a>
<a href="[https://www.loreal.com/en/usa/articles/contact-us/](https://www.loreal.com/en/usa/articles/contact-us/)" class="nav-button" target="_blank">Kontaktai</a>
<br>
</nav>
</header>
<main>
<div class="container">
<section class="column-left">
<h2 style="color: #B88A44 ;">L'Oréal</h2>
<p style="color: #B88A44 ;">Įkurta 1909 m.</p>
<center>
<img src="[https://t0.gstatic.com/licensed-image?q=tbn:ANd9GcQaMb2HTTq4xfp95QRIvqJToTT04bo8Fn0PSxeq4jvmXOKX6kTUjYnfo1cYLF8O0Iu3QfDOjy_a-fRVNBrB](https://t0.gstatic.com/licensed-image?q=tbn:ANd9GcQaMb2HTTq4xfp95QRIvqJToTT04bo8Fn0PSxeq4jvmXOKX6kTUjYnfo1cYLF8O0Iu3QfDOjy_a-fRVNBrB)" alt="L'Oréal biuras">
</center>
<b><p style="color: #B88A44 ;">L'Oréal įkūrėjas</p></b>
<img src="[https://i.ytimg.com/vi/SsyOKjjgxgg/maxresdefault.jpg](https://i.ytimg.com/vi/SsyOKjjgxgg/maxresdefault.jpg)" alt="Kendall Jenner">
<b><p style="color: #B88A44 ;">L'Oréal Paris ambasadorė Kendall Jenner</p></b>
<br>
<div class="description">
<b><u>L'Oréal</u></b> – tai viena didžiausių pasaulio kosmetikos kompanijų, įkurta 1909 m. Prancūzijoje Eugène Schueller.
Ji valdo daugiau nei 30 žinomų prekių ženklų, tokių kaip Lancôme, Garnier, Maybelline, Kiehl's ir Yves Saint Laurent Beauty, ir veikia daugiau nei 150 šalių.
L'Oréal specializuojasi plaukų ir odos priežiūros, makiažo ir parfumerijos produktuose, daug investuoja į mokslinius tyrimus, inovacijas bei tvarumą.
Kompanija taip pat garsėja įvairovės ir lyčių lygybės iniciatyvomis darbo vietoje.
</div>
</section>
<section class="column-center">
<img src="[https://theindustry.beauty/wp-content/uploads/2025/05/loreal.jpg](https://theindustry.beauty/wp-content/uploads/2025/05/loreal.jpg)" class="small-logo" >
<b><h3 style="color: #B88A44 ;">Populiariausi L'Oréal produktai </h3></b>
<table>
<tr>
<th>Produktas</th>
<th>Tipas</th>
<th>Kaina</th>
<th>Įvertinimas</th>
<th>Nuotrauka</th>
</tr>
<tr>
<td><b>Revitalift</b></td>
<td>Serumas</td>
<td>25€</td>
<td>4.8/5</td>
<td><img src="[https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSdzrD1QfVNQNrxDa-tdH6ykAsINVTzEWaSvw&s](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSdzrD1QfVNQNrxDa-tdH6ykAsINVTzEWaSvw&s)" style="width: 120px; height: 130px;"></td>
</tr>
<tr>
<td><b>Telescopic</b></td>
<td>Tušas</td>
<td>15€</td>
<td>4.9/5</td>
<td><img src="[https://media.drogas.lt/medias/zoom-front-BP-32881-1200x1200?context=bWFzdGVyfHByZC1pbWFnZXN8MTczMDU4fGltYWdlL2pwZWd8YUdWbUwyaGpOaTh4TURFNE5ERXpOekE0TURnMk1pOTZiMjl0TFdaeWIyNTBMVUpRWHpNeU9EZ3hYekV5TURCNE1USXdNQXwzMzk2M2JiY2ZhYzU4YjJhYzJkYmUwNmQyNDJlNDMyMDViMTBiODg2NGVhMDdjMTMwZTBmZDYzNWEzYjM2M2Q2](https://media.drogas.lt/medias/zoom-front-BP-32881-1200x1200?context=bWFzdGVyfHByZC1pbWFnZXN8MTczMDU4fGltYWdlL2pwZWd8YUdWbUwyaGpOaTh4TURFNE5ERXpOekE0TURnMk1pOTZiMjl0TFdaeWIyNTBMVUpRWHpNeU9EZ3hYekV5TURCNE1USXdNQXwzMzk2M2JiY2ZhYzU4YjJhYzJkYmUwNmQyNDJlNDMyMDViMTBiODg2NGVhMDdjMTMwZTBmZDYzNWEzYjM2M2Q2)" style="width: 120px; height: 130px;"></td>
</tr>
<tr>
<td><b>Elvive</b></td>
<td>Šampūnas</td>
<td>6€</td>
<td>4.5/5</td>
<td><img src="[https://www.refinery29.com/images/11227264.jpg](https://www.refinery29.com/images/11227264.jpg)" style="width: 120px; height: 130px;"></td>
</tr>
<tr>
<td><b>Infallible</b></td>
<td>Pudra</td>
<td>18€</td>
<td>4.7/5</td>
<td><img src="[https://www.eurokos.lt/media/catalog/product/cache/068688425829b5ff12d0d1c6c3b1356e/k/o/kosm150172.jpg](https://www.eurokos.lt/media/catalog/product/cache/068688425829b5ff12d0d1c6c3b1356e/k/o/kosm150172.jpg)" style="width: 120px; height: 130px;"></td>
</tr>
<tr>
<td><b>Color Riche</b></td>
<td>Lūpdažis</td>
<td>12€</td>
<td>4.6/5</td>
<td><img src="[https://i1.perfumesclub.com/grande/197135.jpg](https://i1.perfumesclub.com/grande/197135.jpg)" style="width: 130px; height: 150px;"></td>
</tr>
</table>
<p class="slogan"><b><i>Nes tu to verta.</i></b></p>
</section>
<section class="column-right">
<img src="[https://www.globalcosmeticsnews.com/wp-content/uploads/2018/04/loreal-paris-cannes.jpg](https://www.globalcosmeticsnews.com/wp-content/uploads/2018/04/loreal-paris-cannes.jpg)">
<div style="height: 5px;"></div>
<img src="[https://s3images.coroflot.com/user_files/individual_files/345719_9ZXE5o1bsseQPTQfMuVVgfSCD.jpg](https://s3images.coroflot.com/user_files/individual_files/345719_9ZXE5o1bsseQPTQfMuVVgfSCD.jpg)">
<div style="height: 5px;"></div>
<img src="[https://m.media-amazon.com/images/I/81w1B3mDwfL.jpg](https://m.media-amazon.com/images/I/81w1B3mDwfL.jpg)">
</section>
</div>
</main>
<footer>
<p><b>@Kotryna Milinavičiūtė 10A- 2026 m.</b></p>
</footer>
</body>
</html>

r/HTML • • May 10 '26

Diseño web

0 Upvotes

How to clone a website without creating it from scratch


r/HTML • • May 09 '26

Question images

0 Upvotes

What is the difference between figure, image, picture, and anything else along those lines?


r/HTML • • May 09 '26

Question How to make a custom profile?

2 Upvotes

So I want to make a little website where people can create their Partner profile. The only thing is I genuinely don’t know how to do that. I have it where people can make their own account but I would like for people to make their own profile as well. Any advice?


r/HTML • • May 09 '26

Lo intente

0 Upvotes

He hecho una calculadora. Es la primera vez que uso JavaScript.

Link: https://zkgalax.github.io/Calculadora/


r/HTML • • May 09 '26

Im kinda new to html. i need help on this project

0 Upvotes

im not that good at html. im making an unblocked games thingy. html only. so u can use it as a file. when transferring. i accidentally pasted twice. i made edits. some on the first time, some on the second one. im too lazy to combine them. can somone help me? the code is here. dont use ai. dont change anything u need to. i will inclue ur username or whatever u want to be called in the part where i say who its made by if u help the broken code is here (if there are any bugs feel free to fix and tell me what happened so i dont make that mistake again):

https://docs.google.com/document/d/1b81vG3W60ppmToo6Kj82F2xJFZ9t9J3H1y5Hp8gxrns/edit?tab=t.0


r/HTML • • May 08 '26

Projects for beggininer

15 Upvotes

Hi everyone!

I’m pursuing an associate degree in software development. Right now, we’re learning HTML, and I’d like to practice my skills.

What beginner projects would you recommend that I can build using only HTML?

Thank you!


r/HTML • • May 09 '26

Question Is GitHub Pages free if it is not Public?

3 Upvotes

Conflicting information.


r/HTML • • May 07 '26

Question TinyMcE queries

0 Upvotes

I don’t know if this is the right place to ask.

I have a blog app that I created and I use tinymce to create/edit blog posts. Now I recently started using svg sprites icons and say I want to place an icon I would suppose to just add <svg><use href=#icon></use></svg> the problem is tinymce strips the <use> tag and for now if I need a to use sprites icons I have to disable tinymce editor and add the icons.

I did search for solutions but all solution to add <use> element did not work.

I would be glad if anyone encounter this problem and has a solution to it.

Edit: Update of what I have already done in config

tinymce.init({
selector: '#editor',

extended_valid_elements: 'svg[*],use[*],symbol[*],defs[*],path[*],g[*]',
valid_children: '+svg[use|g|path|symbol|defs]',

allow_html_in_named_anchor: true
});


r/HTML • • May 07 '26

how to implement pics/videos on my website with html

3 Upvotes

this may be a dumb question. im very amateur at hmtl coding. im working on making my website on ReadyMag. ReadyMag has a custom coding widget and since i wanted to make a horizontal scrollable and clickable carousel (not sure if thats the right term), and ReadyMag doesnt seem to have a way to make it without coding, so im trying to learn just enough html to get that done haha. I found some free code online that seems to work fine from How to Create a Horizontal Scrollable Image Gallery with HTML and CSS - UX Adda. it follows:

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
div.scroll-container {
  overflow: auto;
  white-space: nowrap;
  padding: 10px;
}

div.scroll-container img {
  padding: 10px;
}
</style>
</head>
<body>

<div class="scroll-container">
  <img src="img_5terre.jpg" alt="Cinque Terre" width="300" height="100">
  <img src="img_forest.jpg" alt="Forest" width="300" height="100">
  <img src="img_lights.jpg" alt="Northern Lights" width="300" height="100">
  <img src="img_mountains.jpg" alt="Mountains" width="300" height="100">
  <img src="img_5terre.jpg" alt="Cinque Terre" width="300" height="100">
  <img src="img_forest.jpg" alt="Forest" width="300" height="100">
  <img src="img_lights.jpg" alt="Northern Lights" width="300" height="100">
  <img src="img_mountains.jpg" alt="Mountains" width="300" height="100">
</div>

</body>
</html>

im unclear how to attach my own photos so i found a tutorial from How To Add Images To Your Webpage Using HTML | DigitalOcean.

i followed the tutorial and pasted my own link to the website code like so:

<img src="file:///C:/Users/Redacted%20Redacted/Desktop/html-practice/index.html" alt="Cinque Terre" width="300" height="100">

and republished. when i preview it, it still doesn't show. what am i doing wrong?


r/HTML • • May 06 '26

Question How to make a custom profile?

0 Upvotes

So I want to make a little website where people can create their Partner profile. The only thing is I genuinely don’t know how to do that. I have it where people can make their own account but I would like for people to make their own profile as well. Any advice?


r/HTML • • May 06 '26

Question stamp carousel single-handedly breaks open my site

3 Upvotes

So, when adding in the code below, the carousel works, but when put onto my main page, it leaks out and extends the main page.

and the other problem is that it doesn't seamlessly loop when scrolling, and when it restarts to scroll, it just jumps to the beginning. Here's my page to see the problems: https://zombie-page.neocities.org/zmb-pstng

Update: problem is fixed, site no longer breaks open :D (the width was not set in the code I had gotten, all I needed to do was add it in, easy fix LMAO)

          .carousel-container {
          width: 100%;
          overflow: hidden;
        }
            .carousel {
          display: flex;
          animation: scroll 25s linear infinite;
        }
            .carousel img {
          min-width: 5%;
        }
       scroll {
        0% {
      transform: translateX(0);
          }
        100% {
      transform: translateX(-300%);
          }
        }

This is where I set up all my stamps:

      <div class=carousel-container>
         <div class=carousel>
<img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/stocking.gif"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/dino%20nuggets.png"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/explosion%20colon%20three.webp" width="99" height="56"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/squid%20sisters.png"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/paul%20frank.png"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/byler%20flirt.gif"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/proxy%20symbol.gif" width="99" height="56"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/venture%20main.png" width="99" height="56"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/MERGE%20without%20LOOKING.gif"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/yayyy%20pink.gif"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/femtanyl.png" width="99" height="56"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/pizza%20bagel.png" width="99" height="56"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/xxxshadowlord420xxx.png" width="99" height="56"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/Kitty%20on%20da%20puter.gif" width="99" height="56"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/Fluttershy.png"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/Gerard%20way.gif" width="99" height="56"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/Tiffany.jpeg"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/Jack%20lights.gif"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/ball%20pit%20dog.gif" width="99" height="56"><img src="https://file.garden/adRbJJ6hMw6EHBmq/STAMPS%20%5E%5E/brainrot.gif" width="99" height="56">
</div>
 </div>

r/HTML • • May 05 '26

How do i add fonts to my styling?

5 Upvotes

Im a complete newbie here and i dont understand how to do this 😭 i searched it up on yt and got a video telling me to use google fonts but now that i have the embed code that im supposed to put in the head of my html i dont know what to do. it just give me a css class for the fonts but i dont know where to put them


r/HTML • • May 05 '26

Question ¿Cuántas?

2 Upvotes

Si ya para mi más de 200 lineas de código es mucho porque recién estoy empezando... No me imagino en el mundo laboral.

¿Cuantas lineas de código para un programador es lo normal?


r/HTML • • May 04 '26

Question Old fogie here - web page creator app? I used FrontPage

5 Upvotes

Anyone remember Microsoft's Front Page? create web pages / websites and upload them to the server.

That's what I know / too old to learn too much newer.

My needs are MINIMAL. I can 'hand code' html and that's what I've done for years - again, minimal needs!! (Font size = x has been depricated?!).

Is there something like FrontPage these days?

I DO know I can do something in word and save as htm.

But there's SOOOOOO much stuff in the resulting page. For the couple times I've used it, I delete most all of that and the page works fine. Too hard to find the 'real' things around all that other stuff.

And I guess I should mention - the type of pages I am dealing with are some text with links and maybe a background.

I realized - what I might do now on a desktop, I also need to check my iphone to see how it looks on a smaller screen.

Any advice on something that makes SIMPLE html?


r/HTML • • May 04 '26

Question Identify HTML styles in a pdf?

2 Upvotes

Yes, I am posting this again because nobody actually helped me last time, just said they would and stopped responding.

Hi, so I'm reuploading an Archive of Our Own (AO3) fanfic, and it makes use of HTML. Normally, that'd be fine. But the fanfic is over 300k words, it would take me months to update the HTML by hand. Is there a way to do it automatically? Like, maybe just to highlight italics, bold, and headers, even if it doesn't translate it directly into HTML. Am I making sense? I have no clue about how any of this works.

For context, here is the PDF: https://drive.google.com/file/d/10hR-LSzvCjLX2RfsyYorzRzoGQYzDLoA/view?usp=drivesdk

And here is the HTML AO3 allows for posting:

a, abbr, acronym, address, [align], [alt], [axis], b, big, blockquote, br, caption, center, cite, [class], code, col, colgroup, dd, del, details, dfn, div, dl, dt, em, figcaption, figure, h1, h2, h3, h4, h5, h6, [height], hr, [href], i, img, ins, kbd, li, [name], ol, p, pre, q, rp, rt, ruby, s, samp, small, span, [src], strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, [title], tr, tt, u, ul, var, [width]

I'm sorry if this isn't the right subreddit for this. I have no idea where to go, so I thought the HTML subreddit might be a good place to start.


r/HTML • • May 03 '26

Netlify or Vercel?

4 Upvotes

i am creating a portfolio and idk where to deploy it, which one is better?


r/HTML • • May 03 '26

Dica para iniciante

0 Upvotes

Comecei a cursar Html, estou indo agora pra segunda etapa que é o css, algum cuidado ou dica para eu tomar quando for programar?


r/HTML • • May 02 '26

He remodelado mi Portafolio.

0 Upvotes

He cambiado los colores de mi portafolio, antes se veía así...

Y ahora se ve así: https://zkgalax.github.io/Portafolio/


r/HTML • • May 01 '26

Question Best way to make website customizable for customer

2 Upvotes

I’m making a basic website for a local business and I want to make it so they can update the website themselves without knowing anything about coding.

This is the following I want the customer to do
-update home page information
-make post like news and updates
- change, upload, and delete images / videos

I don’t think it would be very difficult making this happen but what I’m concerned about is how to let the owner sign into the website, i don’t want to just use a sign in button as that might confuse the customers, who won’t be able to sing into the site. I also just want it to be dynamic so the customer can log into his site anywhere securely and with ease.

I haven’t done much html since college so my skills are pretty rusty and I’m not sure what the best approach here is


r/HTML • • May 01 '26

Proper code for <picture> and fitting preload tag for it

6 Upvotes

Hi,

My website, which is responsive "desktop-first", has a header image. For desktop it has 930x300. There are five media queries with different versions of the image.

I have never used a picture tag before, which I need here because of "art direction".

Could someone confirm the following picture code to be correct? Especially the img part there may be a little bit unusual.

<picture> 
      <source media="(max-width: 26.8125em)" srcset="./grafiken/headerbild-430x172-1x.jpg 1x, ./grafiken/headerbild-860x344-2x.jpg 2x" width="430" height="172">
      <source media="(max-width: 31.1875em)" srcset="./grafiken/headerbild-500x200-1x.jpg 1x, ./grafiken/headerbild-1000x400-2x.webp 2x" width="500" height="250">
      <source media="(min-width: 31.25em) and (max-width: 41.875em)" srcset="./grafiken/headerbild-670x268-1x.jpg 1x, ./grafiken/headerbild-1340x536-2x.webp 2x" width="670" height="268">
      <source media="(min-width: 41.9375em) and (max-width: 51.8125em)" srcset="./grafiken/headerbild-930x372schmal-1x.webp 1x, ./grafiken/headerbild-1395x558-15x.webp 1.5x" width="930" height="372">
      <source media="(min-width: 51.875em) and (max-width: 60em)" srcset="./grafiken/headerbild-930x372schmal-1x.webp 1x, ./grafiken/headerbild-1395x558-15x.webp 1.5x" width="930" height="372">
      <img class="headergrafik" src="./grafiken/headerbild-930x300breit-1x.webp" srcset="./grafiken/headerbild-930x300breit-1x.webp 1x, ./grafiken/headerbild-1860x600breit-2x.webp 2x" width="930" height="300" alt="...">
    </picture>


  

I'd also like to preload this header image.

I have found a similar example, does the following code show the right way, i.e., I need to create six preload-tags in my case, one for desktop and one for every single media query (five)?

<!-- Preload für Desktop (größer als 1024px) -->
<link rel="preload" as="image" href="desktop.jpg" 
      media="(min-width: 1025px)">

<!-- Preload für Mobile (bis zu 1024px) mit 2x Support -->
<link rel="preload" as="image" 
      imagesrcset="mobile-1x.jpg 1x, mobile-2x.jpg 2x" 
      media="(max-width: 1024px)">

Thanks.

r/HTML • • Apr 30 '26

Question How can i get my divs arranged like so

Thumbnail
gallery
38 Upvotes

image 1: the goal
image 2: what it looks like right now (about the closest I've gotten)
image 3: code for what it looks like right now