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
-
2
votes2
answers109
viewsPut input at the end of the container with Bootstrap
Good evening, I’m trying to put this input at the end of this bootstrap container, but I can’t at all. I need this search input to be at the end of this Row. <!DOCTYPE html> <html…
-
2
votes1
answer148
viewsBack to previous page
https://www.jqueryscript.net/demo/Smooth-Single-Page-Transition-Effects-Using-jQuery-CSS3-page-js/ I want to make 1 site like this, one page only but divide it into two parts, right and left. The…
-
2
votes2
answers95
viewsMove a div and remove it to release content behind
.atras{ display: flex; flex: 1; height: 100vh; justify-content: center; align-items: center; } .frente{ position: absolute; top: 0; right: 0; display: flex; height: 100vh; width: 100vw;…
-
2
votes1
answer44
viewsProblems creating items from a dropdownmenu submenu using Javascript
I have a dropdownmenu that works normally when I load it using Asp.net core + Razor. Inside it I have the submenus Phones and WEB... When I try to recreate the submenus due to an app need, their…
-
2
votes1
answer71
viewsAsynchronous request to return the updated table
I’m using an asynchronous request to return the updated table and replace the previous one, but I’m having trouble showing the data. Code with my table: <div id="spoiler" style="display:…
-
2
votes3
answers403
viewsAlign Ivs side by side in the center
I’m having a hard time shaping the way it’s supposed to be in exercise... I wanted to leave the image attached I’ll leave the code of my attempts: .header{ background-color: lightgrey; border: 1px…
-
2
votes2
answers83
viewsHow do I change a second fixed image by hovering over the first image?
To explain better, I would like to change a second image as I move the mouse over the first. Example: Situation where no mouse passes over the first image. When I hover over the first image, the…
-
2
votes1
answer45
viewsDoes it make sense to use the alt attribute in the tag area?
Well, from my perspective the attribute alt does not do its job by being assigned to the tag area I have already done my tests and it does not do its goal, which is to put an alternative text when…
htmlasked 5 years, 5 months ago user162649 -
2
votes4
answers3053
viewsWhenever the button is clicked a new square should appear on the screen
<button class='botao' id='btnCriar' onClick="gerarQuadrado()">Gerar novo</button> <div id="app"> <div class="box"></div> </div> <script> var btnCriar =…
-
2
votes1
answer2388
viewsI can’t center the video
Guys I’m trying to center the video, trying to use the margin:0 auto; there’s the possibility of me positioning through the padding or something like that, I made the other page exactly like this…
-
2
votes2
answers139
viewsHow to display/hide an element in Javascript
I want to view and hide items from a list when the input is clicked. The code works if in css the ul tag has display:block, but not when it’s display:None; which is what I want. Javascript:…
-
2
votes2
answers1505
viewsClickable image redirecting to another HTML page
I am very beginner in programming, however, to train I am doing an RPG in Browser, and the home page is the choice of class, and I want the person to choose, click the image and this image redirect…
-
2
votes1
answer45
viewsError converting integer in JS from an HTML input
Good afternoon friends, today I started my journey in JS learning and in the course I’m doing was passing an exercise that I tried in another way that the teacher taught and ended up going wrong. I…
-
2
votes1
answer281
viewsWhy doesn’t the required attribute work?
I have these two codes below, where Javascript does not allow enable the attribute required and I’ve tried many forms, but they have no effect. Someone has a solution for this? /** * Captuar o…
-
2
votes0
answers107
viewsHow to find an image that is stored in the database and display it in an HTML IMG?
So, I am making a page on which the user uploads an image and it is stored in the database (Mysql). See below how it is stored in the bank: So far so good. Now I would like to take this image and…
-
2
votes1
answer117
viewsHow to avoid loading a favicon?
I have a site in wordpress, the problem is that it pulls the site favicon somewhere that I can not find, I checked in all the files of the site and found nothing written favicon, I want to remove…
-
2
votes1
answer49
viewsChanging the image of a Section using javascript
I have a section that contains in your file .css the following: .cid-qTkA127IK8 { background-image: url("../../../assets/images/background4.jpg"); } However, my goal is instead to use the CSS to…
-
2
votes1
answer683
viewsDate sorting problems in Datatables
Hello. I know there are several topics here on Stack, but I’ve tried all the options suggested in the answers and failed. My problem is that when I click on the table header to sort it by date…
-
2
votes1
answer36
viewsI can’t line up Divs
I’m a beginner in the area and I’m trying to build a layout with floating elements using html and css, but when I create the second div it doesn’t align with the original div. * { margin:0; padding:…
-
2
votes2
answers343
viewsInput with CPF/ CNPJ mask undergoing change by keys like TAB and ENTER
Good morning guys. I have an input where this is typed a value and as the size of this gets the mask CPF or CNPJ. The problem I’m having is that when a CPF is typed with the correct size for…
-
2
votes1
answer400
viewsHTML Doubt Credit Card Form
I saw a form that suggests the credit card that’s on autocomplete. But I honestly don’t understand what’s different about this form autocomplete work? If the fields input of form have not type how…
-
2
votes1
answer73
viewsHow to adjust a div correctly?
I’m trying to do a chat input, but I’m having a hard time adjusting the input size with the buttons. The problem is that if I put the input of fixed size, in a larger cell phone may remain size. And…
-
2
votes1
answer89
viewsPivot Table.js - Filter default value
I am implementing on my page a pivot table similar to this: https://jsfiddle.net/nicolaskruchten/w86bgq9o/ I have the following question. Whereas the values of the Pivot Table field sex comes as…
-
2
votes1
answer402
viewsHow to change pages through nodejs?
Well, I tried to switch pages hit the login button, but I get this error: "path must be absolute or specify root to res.sendFile". My folder structure: HTML form (index.html): <div…
-
2
votes0
answers62
viewsI can’t run a query with PHP and SQL
good night I’m new to php, and I’m having trouble making the search field work. I’m making a system that has a tutorial page, which has the cards with the tutorial information and a search field. I…
-
2
votes1
answer134
viewsPicking up div’s contents inside an HTML
How do I get all the values inside <div class='conteudo'></div>? I’ve tried it like this: $links = "<ul><li>CONTEUDO <div class='conteudo'>CORPO 1</div>…
-
2
votes3
answers998
viewsDisplaying successful Alert() on the same page. PHP, Html
I wanted to send the message of success or error after registering products from my site on the same page, without loading a new blank with the message, I saw similar questions, some using ajax that…
-
2
votes2
answers52
viewsWhy is if not comparing to html < entity?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta…
-
2
votes1
answer951
viewsHow to take the automatic background color out of the elements on mobile devices?
Well, I realized that by using Pseudo Classes as :hover, :focus in input elements and in certain other elements, to be able to change from the current state to another state differs from a browser…
-
2
votes1
answer377
viewsHow to align text with the center of the div with Materialize?
I have a div with a text and an image: This div has a block of text that should be aligned with the center. To make the alignment, I used the class .valign-wrapper, that worked perfectly with the…
-
2
votes1
answer255
viewsHow to define an image, coming from the database and stored in binary, as background-image of a div?
I have an image that is stored in the database of binary form. I rescued this image (through a select) and would like to insert it as a background-image of a div. I can only insert it as src of a…
-
2
votes1
answer198
viewsMy carousel button stopped working when I uploaded the images
Good, I put a bootstrap Carousel in my HTML but when I put the images the slide change buttons stopped working. You can see what’s wrong? <head> <link rel="stylesheet"…
-
2
votes2
answers370
viewsAlignment of same input Row using form validation
I am developing a React registration form, and for validation of input'I use the Yup. On the third Row of the form I have 3 input's, when Yup does the validation and inserts the notification…
-
2
votes1
answer55
viewsDiv side by side is slightly lower
Good afternoon, I have been developing a page, very similar to another famous one, but for some reason in the Ivs that I have side by side one of them gets lower do not know why, someone knows how…
-
2
votes2
answers43
viewsAlignment of div to the center of another div
I have 2 div’s, a div is the main one, and inside this div I have another that contains 1 graph as the image shows. I need to put the graph div to the center of the main div, how can I do that?…
-
2
votes1
answer49
viewsProblems with Progress-bar in Flip card
Hello, friends, how are you ? I’m having trouble with a Progress bar on a Flip animated card. Apparently, the Progress bar enters right, but with the effect of the mouse on top of the card, when…
-
2
votes2
answers71
viewsHow do I declare a ternary operation for it to show on an HTML page?
<script> function calcular() { var ns1 = window.document.getElementById('nt1') var n1 = Number(ns1.value) var ns2 = window.document.getElementById('nt2') var n2 = Number(ns2.value) var ns3 =…
-
2
votes1
answer67
viewsAdd class using Jquery in a specific form?
How to add a class to the palette button I click on "Like"? For example, I have several color palettes, but when I click on Like, all buttons get the class .red, I wanted just what I clicked to get…
-
2
votes0
answers35
viewsImage expanding through my div
Hello, I’m starting in CSS, and I decided to create this layout, but after setting my flexbox my central image (given) this occupying all the space of the div, as if there was another image behind ,…
-
2
votes0
answers293
viewsChange Horizontal menu to vertical with dropdown
Good afternoon, I have this menu in w3school bootstrap. The menu is horizontal and has the vertical dropdown. I intended to place the menu vertically, that is, below Home to have Page1, then Page 2…
-
2
votes1
answer151
viewsI am building an HTML page and want to redirect the 'client' if the user and password typed are correct
I have 3 input, one type email and another type password: <input id="usuario" type="email" placeholder="Usuário"> <input id="senha" type="password" placeholder="Senha"> And a Ubmit which…
-
2
votes2
answers824
viewsToggle status (True/False) by clicking a button - Javascript
Good night! I am testing and learning JS, and there was a doubt that so far I could not solve. I have a simple HTML page, where the idea is that every time I click a button, I want it to have an…
-
2
votes1
answer173
viewsHow to get the span number by an ID
I have the following situation: <span class="integral" id="precoVinho01"> <span data-attr="Integer">100</span> <span data-attr="Decimal">,99</span> </span> How do…
-
2
votes1
answer356
viewsInsert embed video with mysql
Good afternoon, I am developing a website to simplify the search for educational videos for my TCC. I made a system with two combo box to search the disciplines in the database and the contents,…
-
2
votes1
answer669
viewsProblem to export table in xls format with PHP
Good afternoon. I have a button that generates a file . xls that should bring a spreadsheet from an SQL query... The file is generated, the problem is that a message appears in Excel saying that the…
-
2
votes1
answer118
viewsCall ASYNC - AJAX
I have a problem with calls in AJAX, I need to make more than one call in AJAX to store in different variables and in that I can treat them. I’m just having trouble with AJAX’s ASYNC, because it’s…
-
2
votes1
answer54
views -
2
votes1
answer39
viewsCorrecting Error Nan
Where is wrong to generate this error? I believe it is in var preco = $(this).next("input.preco").val(); as it replaces the Number(preco) for Number(qtde) works, but I need you to be the…
-
2
votes1
answer80
viewsConditional Display in Javascript
Good afternoon guys, I have an expense code, I want an input form called "number kilometer" with display:one to appear only if in the expense field, is selected "Mileage". I removed the code to be…
-
2
votes2
answers144
viewsProblem with Carousel HTML AND CSS
When I click on the link that directs me to the respective slide, it’s kind of anchoring and sliding the page down a little bit, how do I get it to slide without html understanding that as a link…