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
-
1
votes1
answer265
views -
1
votes3
answers746
viewsHow to change the color of several Ivs at the same time with Hover?
I’m doing a project where it has 8 Ivs. At first, they all have the white color, but when the mouse is passed on top of each one, the colors change. I would like to make sure that when you hover…
-
1
votes2
answers69
viewsFix last element of the list unordered in footer
The HTML displays a menu with minimum height, is it possible to keep the last item aligned in the footer of the menu in a fixed mode? I put 5 items before "all" but it is possible that there is less…
-
1
votes1
answer38
viewsI am facing problems editing margin in media query
Sorry to ask, it’s kind of silly but I need help. I’m using Bootstrap to make it easier when it comes to grids... I need two Ivs on the page, one with col-Md-9 and another with col... and to…
-
1
votes1
answer78
viewsInsert new fields dynamically, one next to the other
Hello, I need to clear up the following question. I have a web application, made in Asp.Net, in a new functionality I have 6 fixed fields containing a combo, a space for viewing the photo and an…
-
1
votes1
answer194
viewsJS Multi-parameter function that returns an HTML
Updated: Based on SAM’s answer, let me clarify what I need. Considering only JS, I want a variable that saves a text as follows: var x = "any text"+function(y parameters)+"plus a little text and the…
-
1
votes2
answers56
viewsShow div containing search content
I created a search button and some search options within the Divs .opcao. How do I make it so that only the divs where the contents of the button contain the words typed in the search field? For…
-
1
votes2
answers256
viewsSubtract value using JS
Until now my code was using a sum of values Example: const inputs = [...document.querySelectorAll("input[class='serv']")]; const res = document.getElementById("resultado"); const total =…
-
1
votes1
answer118
viewsPositioning of a button
I’m having a hard time positioning a responsive button, whenever I can place the correct position on a screen with a certain resolution whenever I see it on the other screen it gets bad again. This…
-
1
votes3
answers222
viewsShow div after a certain amount of input digits
$(document).ready(function () { $('#textFind').click(function () { $('.pesquisas').toggle(200); }); }); $(function () { $.expr[":"].contains = $.expr.createPseudo(function (a) { return function (e)…
-
1
votes1
answer42
viewsChild element count returns 'Undefined' in jQuery
I am trying to count child elements of a parent element with jQuery in the HTML I created, but it is returning the value 'Undefined'. <div class='dataGrid'> <div…
-
1
votes2
answers1137
viewsStore JWT token and redirect
I created a login screen and when I click login I get back a JWT token and its expiration. What I want to do is store this token and redirect it to another page. I know I have to do the…
-
1
votes0
answers79
viewsphp variable that stores html code
I haven’t used php for 2-3 years, I even learned about it, but recently I went to look at some code to make some modifications to a site and I’m having a great difficulty, the first is this, has a…
-
1
votes1
answer140
viewsError using filter_input in PHP
Hello, folks. I have one and I’m trying to process its data in the php file. (I’m using AJAX to upload to the PHP file). The query was normally performed before I put the filter_input. However,…
-
1
votes1
answer205
viewsVertical Alignment on card-header with bootstrap
I have a card and a title as a card-header. I would like the title to be aligned vertically below. I have tried align-text-bottom but it didn’t work. Follows the code: <link rel="stylesheet"…
-
1
votes2
answers140
viewsCalculate output per hour using HTML5 and PHP
Good, I’m new here and also in the programming language :) I’m developing a Production per hour calculator in PHP. I was part of the code, I can feed the input and do the calculation, but the result…
-
1
votes0
answers531
viewsSave input to HTML and PHP txt files
Hi, I’m trying to save the information typed in the HTML Input in txt. I already have my code that seems to be working.. But it is not creating txt. Can someone figure out why? That’s the form,…
-
1
votes1
answer58
viewsAdd values in the array from a JSON that has the value of a variable
I created a variable called arrayFaixaD: var arrayFaixaD = new Array(); and created a for which reads the entire JSON file: for(var i = 0; i < json.length; i++) within that for I put some if:…
-
1
votes1
answer157
viewsFill the src attribute of an iframe and make it visible via jQuery when user click item
I have a web page with a navbar at the top and an iframe that loads another page below. The idea is that when the user clicks on the menu item via jQuery I fill the src attribute of iframe with the…
-
1
votes2
answers133
viewsIf with tab active
would like to know how to make an if with tab active in Javascript <div class="nav-tabs-custom"> <ul class="nav nav-tabs"> <li class="active"><a href="#negociosRealizados"…
-
1
votes2
answers41
viewsHow to position DIV in text
I am trying to put a DIV in the same line of text, when I run the HTML below, the DIV is at the bottom line of the text. <html> <head> <style> div { width: 10px; height: 10px;…
-
1
votes1
answer146
viewsI have two modals on the same page, but only one of them closes when clicking on the outside
Hello I am developing two modals for my company and I am facing the following difficulty I have 2 modals one that carries a popup of customer feedback and another that shows a screen of repassar…
-
1
votes2
answers43
viewsDiv doesn’t get 100% height
I am doing the content division, and I put to my box to be 100% tall and she does not stay, I wanted to know why ? It only stays when I put it in px My html <!DOCTYPE html> <html>…
-
1
votes1
answer32
viewsJavascript displays no value on screen
Good morning, good afternoon and good night! I’m developing a cli style question and answer game in HTML and Javascript. But my javascript function does not display the answer on the screen. Follows…
-
1
votes1
answer123
viewsColors of names in a Javascript chat
I’m starting to program, and a problem has arisen. I need to develop a kind of extremely simple chat, just indicating the name and the message, without communication with other computers, just…
-
1
votes2
answers174
viewsDatabase does not recognize text with special characters even in UTF-8
I’ve made a lot of changes to the code and I’ve researched several sites and nothing has solved my problem! HTML code: <div class="w3-container w3-padding-32" id="about"> <h3…
-
1
votes1
answer32
viewshref only works last box
I’m trying to make a simple accordion, each one will hold some x of links coming from the bank, but when I put the mouse on top of the links of the accordion simply has no action (the pointer nor…
-
1
votes2
answers169
viewsConflict between anchor and smooth scrolling
When I click on the anchor and scroll the page there is a conflict between the smooth scrolling script and the anchor script causing the site to roll to the top, I have tried anyway to resolve this…
-
1
votes0
answers36
viewscolumn cannot be null error when using multpart/form-data
if I use multpart/form-data in the FORM tag I can save the file but it does not save the file name in the database but if I take the Multipart/form-data does not send the file but saved in the…
-
1
votes1
answer316
viewsTable row with link
How do I get links in each row of my table, for example, I want it to be similar to the emails of Gmail, Hotmail etc., which has several lines and when you click on a specific one, open the full…
-
1
votes1
answer42
viewsZebra table in gray and white
I’m solving a college exercise, and I’m having trouble passing the exact color to a zebra table. I did the function this way, but when the table is built, it is coming out in green and yellow:…
-
1
votes1
answer1129
viewsAngular 7, p-table Primeng: Error: Invalidpipeargument: '[Object Object]' for pipe 'Slicepipe'
I am trying to make a list in a "p-table" of primeng, until yesterday I was listing everything perfectly, but today when running the angular project I noticed that this error was occurring. I have…
-
1
votes0
answers58
viewsAdd values with jquery
I have an input of type number that is a select with two different options and values, I have to add the value of my input with the value of my select but whenever I try, it reports me this error…
-
1
votes1
answer103
viewsPass an input value from page 1 to another input on page 2
beauty? I have a specific calculator and I want that when you click on the button it calculates and shows the values on another page. I tried to use window.open and I couldn’t. To open on the same…
-
1
votes1
answer63
viewsUse H3 for product title in the display case
I have a list of products where I put their name within a span using the itemprop="name" of Schema.org to define that this is the name of the product, but a marketing agency of my client contacted…
-
1
votes0
answers34
viewsurl giving 404 error when adding page
good afternoon guys, I have a huge "headache" here on the trampo, I’m trying to add page on a site here, but it’s not working: I have to add a url like this: /novapagina sem extensão, but in htacces…
-
1
votes2
answers115
viewsHow do you make the <div> with the <img> tag only appear after the photo is loaded?
good afternoon friends. I’m using Jquery so as soon as I receive the image by the "file" input, send it to the img tag placed next to it, however, I want the image to appear only after loading... If…
-
1
votes1
answer526
viewsMake image appear stay a while and then disappear - JS
I’m playing a game of snake (Snake) and I need to make an image appear on the canvas every 3 seconds, but it needs to last 4 seconds before it disappears. I’m trying to use the setInterval() but the…
-
1
votes0
answers110
viewsLoop a javascript DOM element - Each element in a <li>
I am developing a memory game and the icons they are not going one for each li but every loop appearing one more icons in the corresponding li. In the last li appears 16 icons instead of a. const…
-
1
votes2
answers37
viewsChange a class that is inside an id with Javascript
I need to change the word SUBSCRIBER that is in DIV id="nav_menu-5" within the H3 by services. <div class="col-sm-4"> <div id="nav_menu-3" class="widget widget_nav_menu"> <h3…
-
1
votes3
answers96
viewsGenerate HTML using Javascript
I have a small form for phone registration, and I want the user to be able to click the "Add new phone" button and an identical copy of the form is created below, so the user can put as many phones…
-
1
votes1
answer169
viewsJquery validation input Multiple file
Currently valid only file extension on input file, need valid a file multiple. Code I have so far: Html <label>Arquivos .XML<br> <input type="file" multiple name="arquivoXML[]"…
-
1
votes1
answer106
viewsPlace the fields of a Django form on the same line
I have a form in Django and in the template I display the fields to be filled: <div id="interval" class="form-inline form-group"> <div class="two wide field"> {% for price in prices %}…
-
1
votes1
answer24
viewsWrap Divs with the same class
I want to apply the insertion of labels with Javascript or jQuery. I have this code: <div class="name">...</div> <div class="name">...</div> <div…
-
1
votes2
answers61
viewsProblems with the return of $_POST values
I am sending, through a form, an email. I do the tests, but it receives only 3 of the 4 fields, it is simply as if the field with the name and con_phone did not exist. HTML: <form…
-
1
votes1
answer28
viewsgetelementsbytagname is returning wrong values
I’m trying to make an HTML table selectable, when I try to get the table rows by getElementsByTagName(), is returning different values when reloading the page. My Table: Javascript: var tabela =…
-
1
votes3
answers75
viewsHow to add dropdown to menu
When hovering over a category in the menu, I would like you to show sub-categories. Something like this This is the menu I have: .menu { width: 100%; background: #1f1f1f; border-bottom: 4px solid…
-
1
votes1
answer56
viewsReceiving blank emails with PHP
I created a form so that users could contact me through the site, however, when the form data is filled and sent, the email arrives blank and an email called postmaster. Despite my attempts to…
-
1
votes2
answers38
viewsDropdown problem in the menu
When you display the submenus it is increased the height of the menu, what I want is it to override the menu or anything else that is below. .menu { width: 100%; background: #1f1f1f; border-bottom:…
-
1
votes1
answer628
viewsscroll bar changes content setting
Hello, everybody! I want the scrollbar on my div to appear only when the Hover is activated and so far so good. The problem is that when the scrollbar appears, the content of the div is thrown to…