Category "html"

Using <input> inside for loop in jinja flask

I am struggling to figure out how to access individual <input> elements, that have been created through a for loop. For example: <form id="score" metho

How do I know when HTML has fully rendered

case 1: I load a very large HTML page that includes a lot of complex layout and fonts. The page will take some unknown time to render. case 2: I use jquery .

Is there a way to make the bottom half of a background image completely white?

new user here I'm currently working on a personal project and wanted to know if there was a way to take this image, https://unsplash.com/photos/XXA8PTuLD1Y, and

how to create html table in php

I have the following snippet of code that basically uses explode to split out these values: <?php $data=array(); $Inputfile = file("prod.txt"); foreach ($In

Does the <script> tag position in HTML affects performance of the webpage?

If the script tag is above or below the body in a HTML page, does it matter for the performance of a website? And what if used in between like this: <body&

How to remove 'autocomplete disabled' from input field

I have a field in which the user is ask to input a year. My html looks like this <div class="form-group {% if form_search2.year_search.errors %} error {% en

How to align two divs side by side when one has margin auto

I have a div that has margin: auto so it can float in the center of the page. This page also has a zoom feature that zooms in on that element and I want there t

Jenkins Content Security Policy

I'm confused about Jenkins Content Security Policy. I know these sites: Configuring Content Security Policy Content Security Policy Reference I have a html p

Limit file format when using <input type="file">?

I'd like to restrict the type of file that can be chosen from the native OS file chooser when the user clicks the Browse button in the <input type="file">

How to dynamically create '@-Keyframe' CSS animations?

I have a requirement to rotate a div and stop at a particular position ( The value will be received from the server). I tried native JS to rotate and stop but

Is it possible to write HTML-withASP-withJavascript-withCSS in EMACS?

I am enjoying learning the EMACS text editor...but I can't help thinking that the HTML mode could use some work. I am currently programming in Legacy ASP/Jav

How can I make a table cell have a minimum width of 3 digits?

How can I make each cell in my table have a minimum width of 3 digits and not much larger? Now I am hard coding min-width, but I don't like to hard code a value

Centering two lines of text next to one line, HTML/CSS

So I've made what I'm looking to achieve in jsfiddle. I'm wondering if there is an easier way to achieve this same effect: <div class="date"> <spa

Pass Golang Variables into Javascript

I am trying to pass my Golang variables into a Javascript file. I have read multiple articles online, including How to pass variables and data from PHP to JavaS

CSS tabs with rounded base (smooth base transition) [duplicate]

Hi I am looking for the most efficient way to create a "tab" with HTML/CSS with rounded corners but also a smooth, rounded transition to the b

How to apply min and max on textarea?

Is there a way in HTML5 forms to add a min and max character to a textarea? It seems I can apply it to a regular input using pattern. <input pattern=".{3,}"

JavaScript Scale Text to Fit in Fixed Div

In JavaScript/jQuery, how can I scale a varying-length line of text inside a fixed-width Div so that the one line always fits inside the Div (as one line)?

Chrome doesn't support `font-family: "Arial Bold"`?

In Chrome v75 Windows 10 font-family: "Arial Black" works, but font-family: "Arial Bold" doesn't. They both work in Edge. I know I can still use font-weight.

How to call a REST web service API from JavaScript?

I have an HTML page with a button on it. When I click on that button, I need to call a REST Web Service API. I tried searching online everywhere. No clue whatso

How to call a REST web service API from JavaScript?

I have an HTML page with a button on it. When I click on that button, I need to call a REST Web Service API. I tried searching online everywhere. No clue whatso