#html - Questions and answers
46 questions,
3 pages,
20 questions on this page
5 points
EN
As in the question, I am looking for a simple way to deselect <input type="radio" /> button on next click. Is there simple solution?
5 points
EN
After checking MDN Documentation I have noticed there is no ontype event for <input type="text"> element. I don't want to use onchange event. Is there some way how to handle event always on text chang...
8 points
EN
I try to write own HTML escape function in JavaScript, but I am wondering if all special characters like <, >, &, " and ' should be escaped in <a href=""> attribute. Anyone could confirm, my doubts?
0 points
EN
How can I add HTML entities using CSS content property? I wanted to add non-breaking space using but instead it prints ' ' between the words. My code:
8 points
EN
I am trying to set nbsp from JavaScript source code but it doesn't work. Simplified code: Any idea what is wrong?
0 points
EN
How can I add border to my svg element? Let's say I have the following code:
0 points
EN
How can I use the HTML <img> tag as the element's background instead of CSS background-image property? I need to have two elements like:
0 points
EN
When I try to embed YouTube iframe I get the following error: How can I fix this?
0 points
EN
How can I get the position of HTML element using JavaScript? I need to find X and Y coordinates of elements such as images or divs.
0 points
EN
How can I make a div element to be not larger than its contents? I would like the .parent element width be only as wide as the .child element. My code:
3 points
EN
I am trying to print all <p> elements from my web page using custom printParagraphs() function. I have 4 paragraphs in my HTML code but the function returns 5, the last one is undefined. Why is that s...
3 points
EN
I have a problem working with images with their aspect ratio. For example: Its height and width are already specified and now I want to add a CSS rule for images: But for my image.jpg, I get width=300...
0 points
EN
Can you tell me how to simulate mouse click on multiple div elements using JavaScript? Let's say I have three div elements: I want a for loop that loops through all my-elements and fires their onclick...
0 points
EN
How can I get HTML elements by part of classname or id using JavaScript? I have a code similar to this: Now what I want is to get the handle to all elements containing "my-element" inside id. and save...
6 points
EN
I would like to create an unordered list (<ul>) from an array of list items. How can I create a function that creates such a list filled with items based on the array passed into it? For example, I ha...
0 points
EN
How can I rotate a gradient to make it from left to right instead of top to bottom? Let's say I want to change the following gradient direction to horizontal:
3 points
EN
I'm working with web workers and I want to run my website on http://localhost. How can I do it instead of being opened under a specified path like C:/example/path/index.html? My project structure: Jav...
3 points
EN
I want to add borders of the same width to all cells inside my grid. How can I get rid of multiplying borders? What I have: What I want: I've tried to modify the solution below using box-sizing to hav...
0 points
EN
How can I add onload to the div element? It doesn't seem to work. Example:
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us