Most voted "html" questions
Use this tag when the question refers to some resource, information or problem related exclusively to the HTML language (Hypertext Markup Language). HTML is the main markup language used to structure web pages and format content. The latest revision of the HTML specification is HTML5.
Learn more…14,259 questions
Sort by count of
-
3
votes2
answers168
viewsRemove array item when unchecking checkbox
I’m taking the value of a checkbox and putting in an array valores, My question is: how, when unchecking the checkbox, to remove this value from my array? Because if I check and uncheck the checkbox…
-
3
votes2
answers202
viewsNgshow two parameters - Angularjs
Hello all right? I hope so! I’m still kinda Noob on the angular and today I came across a doubt, I need to spend two Xpression in the ng-show of Angularjs, I need the same do the show or Hide and…
-
3
votes2
answers179
viewsSpan within Headings H1...H6
It is semantically incorrect to put a span inside a Heading? Ex: <h1>Isso é <span>verdade</span></h1>
-
3
votes2
answers101
viewsLimit typed number
I have a field number where I need to type a value from 0 to 25, in case the user type a number above 25 he does not allow, I tried to use the max="25" but it only blocks if the person does not…
-
3
votes1
answer6079
viewsWhat is the head tag for in html?
I am reading a book which at a certain point says the following: "Now we need a place to place our templates - one way is to use an existing element in our HTML, preferably hidden. You can achieve…
-
3
votes1
answer251
viewsCapture the username logged in to Windows by IE 11
I need a code that captures the username logged in to windows. I know it’s possible to do Activex, but only works for versions of IE 7 down. I am also aware that there are java functions like…
-
3
votes2
answers42
viewsI can’t find which Style is separating my elements
Hello, I have a website that’s on the air. I know this doubt seems really silly, but I’m not finding what is causing a gap between Google Maps and my banner. Website link:…
-
3
votes1
answer619
viewsRandom matrix filling with javascript
I’m trying to create a map with earth and water in javascript but I want it to be completely random, so I assigned 0’s and 1’s in an array and where I had 0 put the floor and where I had 1 put…
-
3
votes1
answer40
viewsIn SEO using more than one link in HTML to another page is bad?
It’s bad SEO practice to use more than one tag a in an HTML structure to another HTML page href the same link? Ex: <div> <div> <a href='link1.html'><img src='path/img.jpg'/>…
-
3
votes1
answer90
viewsMoving piece, adds new game board
Good morning, I’m having a little problem drafting a board game. When I try to move a tile by returning a new frame(array of arrays), it is added to the page instead of replacing itself. I get two…
-
3
votes1
answer146
viewsclick on span and mark checkbox
I’m trying to make sure that when clicking on the span, the checkbox is marked, but it seems to be in error. Help me please. <input type="checkbox" id="remember_pass"> <span…
-
3
votes2
answers859
viewsHow to change the border color of a Modal Bootstrap
I created a modal with bootstrap and I would like to know how I can change the border color of the modal without changing the structure of it, thanks in advance!
-
3
votes1
answer147
viewsMargin conflict in css
Well, I have two classes: 1 - container who receives some information 2 - top_menu who receives the menu. I can’t explain how this happens, but every time I put a div with the class container the…
-
3
votes3
answers896
viewsWebpack not updating Bundle.js
I’m new to this React and Webpack thing, and I’m studying a lot, but I’ve come up with a problem that I’m not finding a way to solve. const webpack = require('webpack') module.exports = { entry:…
-
3
votes1
answer190
viewsAlign left-hand Divs with css, separating them into groups, with no line break
I’m looking for a way to line up divs on the left, however, keep them divided into groups, without a group breaking the line. The code below comes close, but would like to get the result of the…
-
3
votes2
answers73
viewsRedirect: HTML or JS?
Commonly I see two main methods for redirecting the user to another page, being them: HTML: <a href="pt.stackoverflow.com">StackOverflow</a> and Javascript:…
-
3
votes3
answers274
viewsPlacing two functions within one
I made a function that by clicking the button it changes the color of the text and background of a div However, I had to do two lines of command. Is there any way to do everything in one line?…
-
3
votes2
answers879
viewsLinkedin profile plugin on web page
Dear, I would like to add my Linkedin profile on my site made in HTML, I thought it was just copy the code generated in the link: https://developer.linkedin.com/plugins/member-profile, but adding it…
-
3
votes1
answer107
viewsHTML design looks strange
This is basic HTML structure and I’m running it with a live-server, however, the web design is strange. Some body text is very far from the left edge, the css file that is in the code, is a CSS…
htmlasked 5 years, 6 months ago Vagner Wentz 481 -
3
votes1
answer1251
viewsReload or Refresh Datatables
Good morning, I have a Datatables that is loaded by a WHILE coming from a QUERY in which I mount at the beginning of my page by PHP. My problem is when I need to insert or edit some information that…
-
3
votes1
answer247
viewsinput and javascript tag
Hello, My question is this: HTML <input id="cakeDonuts" type="number" name="numCake" min="0" value="" onchange="updateOrder()"> <input id="glazedDonuts" type="number" name="numGlazed"…
-
3
votes3
answers1060
viewsIs there any way to let the vscode tags close as is the sublime?
When you open a tag in the sublime as <div> write the content and then type "</" it automatically closes the tag that was opened, without having to type div. You can do this on Vscode?…
-
3
votes0
answers210
viewsHow to place particlejs on a Parallax banner with text in the center
I wonder how I can put the effect Particlejs in a banner Parallax with a text in the center of the div. Thus: For example, in this banner I wanted, in the center of it, there to be a text and the…
-
3
votes4
answers2171
viewsCSS, Bootstrap4 Cards Side by Side
good morning! All right? I am having difficulties with bootstrap 4, when using cards I would like them to line up side by side, but they are below each other and I do not know how to leave them side…
-
3
votes1
answer46
viewsformat paragraph <p>
I run some js functions in a given text. adding classes and removing classes. The final html generates some breaks in the paragraph, like this: <p style="text-align: left;"> “obviamente” “ nem…
-
3
votes2
answers711
viewsHover div inside div
I have a div that is part of a link that are inside another div, I wanted if it passed the cursor in any part of the div there is apply both in the text of the link and the inside div. The Hover is…
-
3
votes2
answers1423
viewsHow to force download local information in the browser?
I’m trying to do something kind of like this: $('button').on('click', function() { obj = {}; $('pseudoform').find('input,textarea').each(function() { obj[$(this).attr('name')] =…
-
3
votes1
answer64
viewsWhat are HTML interfaces for?
Every specification (documentation) that I see of a certain HTML element, always specify the element to a type of interface as, for example: HTMLTableCaptionElement HTMLButtonElement HTMLBRElement…
-
3
votes1
answer1987
viewsChange information according to select
Someone could assist me on how I can change the information that is in blue in the image below, according to the selection of the select (monthly, quarterly, semi-annual and annual)? I need you to…
-
3
votes2
answers65
viewsPrint an Array in <li> line by line with javascript
I need to place the array values inside a list (li), line by line, but the result received brings values in single line. let x = [ { y: 'Título 1', z: ['1' , '2'] } ]; html = ''; for(let i of x){…
-
3
votes1
answer27
viewsAdd extra spacing between dots with text-Decoration-style: dotted;
Is there any way to add extra space between the dotted inserted with text-decoration-style: dotted? I own this anchor: .anchor { text-decoration: underline; text-decoration-style: dotted;…
-
3
votes2
answers637
viewsHow to draw a pizza using css
I’m having trouble making the lines on a round button to be like the partitions of a pizza what I have : <div class="panel-body no_padding padding_bottom_top_list" style="display:…
-
3
votes1
answer1054
viewsCSS Carousel inside another image
I need to make a carousel/slideshow of images only it happens inside another image. Example: I have this picture of the notebook in png, the slideshow should take place inside his screen. However,…
-
3
votes2
answers1400
viewsVertical alignment with CSS?
I’m trying to display an image and next to it a text. My problem is that this text should be aligned with the bottom of the image, but only appears aligned to the top. I have tried many codes and…
-
3
votes1
answer305
viewseffect with css Transition in Angular
Well I’m using a Progress-bar whenever I’m loading some data on the page. To stay cool I’m trying to put an effect for when she shows up and disappears. But the effect only works when it is hidden,…
-
3
votes2
answers8342
viewsQuotation marks inside quotation marks and again inside other quotation marks?
I have a string variable called [Content] and I want to assign it the tag of a button that calls a javascript. I’m trying this way: Conteudo = "<input id='btnOculta_" + lin + "' type='button'…
-
3
votes1
answer231
viewsHow to simulate a radio type input to the screen reader?
I’m doing a satisfaction survey that should be accessible to users with screen reader. For each question answer options containing a text are shown "Great, Lousy, ..." and an image corresponding to…
-
3
votes1
answer67
viewsWhat’s the difference of using function with THIS or OBJ parameter?
Making a Javascript code recently, I found that when using a Function, when I put THIS as a parameter it was not executed, but when putting OBJ, it worked normally. Can someone tell me the…
-
3
votes1
answer4164
viewsProblems with angular-input-masks?
I am trying to use this module that is available on github and I think this module is very complete, provides the masks I need, however is very confusing its documentation. The point is, I cloned…
-
3
votes2
answers466
viewsHow to make a listbox where I can select more than one value?
I want to make a listbox, where the user can select several options, but using select Multiple, I have to hold Ctrl, however this is not ideal, many people will not know it. Anyone can help? <div…
-
3
votes3
answers2288
viewsHow do I open a floating div tooltip style by clicking an input?
Hello. I got a problem I can’t fix. I have a text input and I needed when I clicked on it to open a window or floating div underneath it like a tooltip but with HTML inside it. How can I make that…
-
3
votes2
answers249
viewsInput elements outside the tag form
I wonder if it is considered a bad practice input attributes outside of the tag form. In w3schools The brand <form> is used to create an HTML form for user input. The element <form> may…
htmlasked 7 years, 5 months ago Felipe Duarte 6,284 -
3
votes3
answers422
viewsClone <select> jquery / javascript
Guys, I’m a beginner and I’m having a hard time running this code I used from another topic right here (Add and Remove Fields with Javascript). Here it did not run, but on my localhost it even…
-
3
votes1
answer178
viewsShowing data when typing
I need to show two pieces of information when the user enters the commission amount, in case the information that should show IR and Valor líquido. For example, if the user types 1.200,00, on the…
-
3
votes1
answer88
viewsFill in the bar?
How do I so that when I open the site with this code, it already "fills" this bar and remains filled, without me having to stay with the mouse on top? div { width: 50px; height: 50px; background:…
-
3
votes2
answers234
viewsReset an option-based Select
How could I do to reset a value of a select based on the option of another select, for example I have these two check boxes, when the "View" option is checked I would like to reset the value of…
-
3
votes0
answers49
viewsSEO, what are the odds that Googlebot will read this Rich Snippets code?
What are the odds of Googlebot read that code Rich Snippets? Tips on how to improve are welcome... I can only use Front-END, if you hadn’t already used one PHP to solve this. <script…
-
3
votes1
answer79
viewsProblems with overlapping rotated elements
I wish I could rotate a div, and for that I used 'Transform', in CSS, but I would like a div to be superimposed. Here’s the code: #divgirada { width: 500px; height: 500px; background: red;…
-
3
votes2
answers73
viewsForm Validation with Javascript
It shows the error only in one field at a time, i.e., the part of "getElementById('tuser')" and the other tpass, is the error element. I would like if both are null, show the error in both at once.…
-
3
votes1
answer229
viewsBlack screen in youtube EMBED loop
I put a background video on the login screen of my page but when the video comes to an end it stays with the black screen for 3 seconds until restarting the video as I do for it to do it instantly ?…