Questions tagged [html]
HTML (HyperText Markup Language) is the markup language for creating web pages and other information to be displayed in a web browser. Questions regarding HTML should include a minimal reproducible example and some idea of what you're trying to achieve. This tag is rarely used alone and is often paired with CSS and JavaScript.
1,189,125
questions
2
votes
5
answers
60
views
How to update the title in a <li> using Javascript
Here's the code that I have, where I need to update the "Charge Amount" to something else using JavaScript
I've tried various things but haven't been successful. There's no id associate to ...
389
votes
6
answers
647k
views
Which characters need to be escaped in HTML?
Are they the same as XML, perhaps plus the space one ( )?
I've found some huge lists of HTML escape characters but I don't think they must be escaped. I want to know what needs to be escaped....
2
votes
1
answer
71
views
Some required attributes are not validated while using form and javascript
I'm using a form for issues with mandatory fields but some aren't taken into account.
Of the 6 required input blocks only 4 are correctly validated when you try to submit the form. The 'IVR status' ...
0
votes
1
answer
13
views
Embed on web page a Twitter Video, just like a YT video
(Complete beginner here, fighting to assemble some web page.)
If a "copy video address" in X (Twitter), I get something like:
https://x.com/i/status/1814440131505598541
If I get the embed ...
0
votes
0
answers
15
views
Selecting elements in HTML using tree generator extension
I have recently been trying to understand how to select elements and manipulate them using the html tree generator and JavaScript. How do I select the second last element of the last element child and ...
-1
votes
1
answer
20
views
searching for this font animation but couldn't find
I want to implement this font animation in my project but I don't know what animation is this since I'm not a CSS master please someone can help me in that
I really appreciate any help you can provide....
0
votes
1
answer
506
views
Update `theme-color` when class/theme of page is toggled
I have a Javascript toggle that adds/removes classes on the html element to change the colour/theme of my page. 1st (no class) = white, the 2nd (.dark-mode) theme is black, the 3rd (.retro) is beige.
...
-1
votes
0
answers
20
views
How does browser control + f search works? If I added a search bar on my page and want to apply same logic to get highlighted words which are written [closed]
When I enter "Control + F" on a browser then there is a search bar in the bottom in which if we search any word, then all the words related to that are highlighted. So I have added a search ...
-1
votes
1
answer
20
views
Need help dividing a page into two using HTML and CSS ? - left portion of 40% with an image and right portion of 60% with texts
Similar to the attached example, I'm trying to divide a container into two - left side to be of, say, 40% and the right side to be of 60%. in the left side of 40%, I need to upload an image and the ...
0
votes
2
answers
41
views
Centering entire main element
I have put some content and form inside the main element. Here is the HTML:
<main>
<h1>My main content</h1>
<form action="/action_page.php" id="form">
...
-3
votes
3
answers
52
views
program doesn't start and there isn't an issue that comes up after I run it. While loops, myFunction() and if
I am making a program where you have to guess the secret password. If you don't then the program will alert you. I expect that the problem lies with label. I have tried innerText, innerHTML, ...
-1
votes
0
answers
28
views
html hyperlink bleed over, href still active on content below [closed]
All content acts like link
Hi I am a novice in HTML and CSS etc. I have made a little website mostly from copying the working of Traversy media on youtube, tbh ive butchered the code a lot.
Ive ...
0
votes
0
answers
14
views
Add component to html body
I have an Angular 13 (vanilla) app, and I need to print a part of the app. I use the @media print for that an it work (in the angular app alone)
But my angular app is build a js file and use by other ...
200
votes
23
answers
87k
views
Stop LastPass filling out a form
Is there a way to prevent the LastPass browser extension from filling out a HTML-based form with an input field with the name "username"?
This is an hidden field, so I don't want any ...
-1
votes
1
answer
36
views
Problem with size parent element that has image less than 100% inside
This is my default look with all images set to 100% width:
enter image description here
These images must have different height and width because they have to keep ratio. Because of that I can not use ...