1,185,362 questions
Score of 2
1 answer
113 views
Avoid synthetic sounds overlapping
I have the following simple program in HTML and JavaScript:
let Soundon = 0;
document.addEventListener('click', function(evt) {
let Key = evt.target.id;
if (Key == "btn1") frq = 200;
if (Key =...
Score of -2
0 answers
85 views
Force a format for input type="date" regardless of locale
The admin section of our site has a mix of American and British users, who are sometimes located in each other's locales. For date chooser inputs, I have previously used the datepicker JavaScript ...
Score of -3
2 answers
169 views
How do I make it so that the script responds differently for each element?
I'm trying to make it so that each button opens up a different dialog box.
The script I use only allows for one dialog box, but not the other.
<html>
<style>
body{
...
Score of 0
1 answer
70 views
How do I disable the default iOS form styling in place of my CSS?
I'm trying to customize some form elements (input, button, select, etc.) with CSS to apply a glassmorphism effect, although it appears that on iOS a white background is slid under it which makes all ...
Score of 2
1 answer
104 views
In an HTML table, what's the use of the scope attribute for <tr>, <tg>, and <td>
the Mozilla developer network's article on <th> says that scope "Defines the cells that the header (defined in the <th>) element relates to".
What does it mean for a cell to be ...
Score of 1
0 answers
56 views
EleventyImageTransformPlugin images are not stored and referenced at the same place
We are using eleventy and its image plugin to display images. The content is markdown converted with MarkdownItFootnote, e.g:

In our local ...
Score of 0
1 answer
109 views
ASP.NET Core MVC displays bool as text not checkbox
I have a project in ASP.NET Core MVC. In this project there is a model with property type bool.
In the model class, I have this property:
public bool? IsConfirmed { get; set; }
The scaffolding ...
Score of -4
1 answer
114 views
CSS for display with flex across multiple browsers? [closed]
I'm using flex for a drop-down menu. I want the desktop display to be as viewed on Firefox, to be the same on other browsers (Chrome, Safari, etc.) Hamburger menu displays fine on all mobile ...
Score of 2
1 answer
143 views
I want to filter the class but got error .filter is not a function [duplicate]
I got a div in JavaScript, which has two classes one for category (specific for each) and one for CSS styling. I got that div correct div in .closest method but I want to fetch its category class ...
Score of 0
1 answer
165 views
How can different parts of a HTML Text node be formatted differently?
On this site, different parts of a simple <div> are rendered with different styles. Here is the <div>:
<div class="ods-price__value" data-v-b273d44f="">4.99*</...
Score of -4
3 answers
124 views
At what point does it become good practice to indent the content of a <p> tag? [duplicate]
So I know you can code text in HTML like this:
<p>Short text</p>
And for longer blocks of text, you'd indent everything inside the <p> tag, like this:
<p>
Okay just ...
Score of 0
0 answers
57 views
How to automatically change width of div based on number of certain children using no js [duplicate]
I feel like there should be a way to do this. How would I dynamically change the width of the #main based of the amount of .content? I believe I'd have to use :has() and the nth-child selector, as ...
Score of 2
1 answer
55 views
How to correctly implement JSON-LD LocalBusiness schema in HTML?
I'm adding structured data to a client's website to improve local SEO visibility in search results. Trying to implement the LocalBusiness schema using JSON-LD in the <head> of a static HTML page....
Score of -1
0 answers
110 views
Why does getComputedStyle for a 15px border-width return 14.5455px on 110% page zoom?
document.documentElement.innerHTML = '<body style="margin:0;border-top:15px solid black;"></body>'
getComputedStyle(document.body).borderTopWidth
'14.5455px'
document....
Score of 0
1 answer
95 views
Best practice for serving shared HTML header/footer and extensionless URLs in static HTML [closed]
I am migrating a WordPress site to static HTML hosted on a VPS (Nginx). I need to preserve existing extensionless URLs (e.g., /partnerships/) for SEO purposes while maintaining clean, modular code for ...