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
-
0
votes1
answer478
viewsJquery add and remove attribute not working
I’m trying to create a way to minimize and maximize a DIV. Minimize works, but maximize does not. What am I doing wrong? $("#chatMinimizar").click(function() { $("#chat").attr("style", "height:…
-
0
votes1
answer62
viewsCreate animation "Fadeout"
The table is created by javascript code when clicked on an item in another table, but it has no animation. The animation I want to put is "Fadeout". When the table item is clicked, it should appear…
-
0
votes3
answers52
viewsFill each value of an input with a string variable character
I have a variable var string = 'TEST', and I intend to do something like: <input type="text" id="um" value="T"> <input type="text" id="dois" value="E"> <input type="text" id="tres"…
-
0
votes1
answer39
viewsHow to run a Javascript command on all browser tabs?
I’m trying to do a project, but to do it I need a Javascript function to run on all the user’s browser tabs at the same time. Is there any way to do that?
-
0
votes1
answer56
viewsScript to preview not working
I’m trying to preview the image, but I can’t. I created the following code in pure javascript: var imageFileInput = document.getElementById("fileUpload"); imageFileInput.onchange = function(event){…
-
0
votes1
answer51
viewsWhy do media queries work like this?
I was creating a responsive menu, and u noticed that if I don’t put the media queries from the smaller to the larger it doesn’t work properly. @media only screen and (min-width:560px) { .menu li {…
-
0
votes3
answers110
viewsVisited in tr table
I have a table that when being clicked a tr, a screen is generated on the page itself according to what was selected, I need a css code (if possible), that when being clicked the tr it is with a…
-
0
votes1
answer22
viewsProblem with system loading using "fopen"
if($tarefa<> NULL && $data <> NULL){ salvarTarefa($tarefa,$descricao,$data); } if($conclusao<>NULL){ salvarConclusao($conclusao); } gerarColunasLinhas(); I am using these…
-
0
votes2
answers294
viewsStart function by Onclick
Boa Tarde Amigos. My question is this, I have a script that keeps reading one. log basically in real time and shows it on screen, but the point is that it starts with the DOM, I would like it to…
-
0
votes1
answer24
viewsSite anchor in iframe moves the main page
Hello, I have a website where I have a timeline that I’ve set up, when I click every year of the timeline, the iframe below it moves towards a specific text on the page, the problem is that…
-
0
votes1
answer23
viewsFill external website URL with typed data
I need to create a code, in HTML as simple as possible, where a person types a certain string and clicks a button. With this, a URL with this string is opened in a new tab (example.com/string). I’m…
-
0
votes2
answers969
viewsHow to position one element in relation to another easily?
I’m creating kind of an online store, but I’m not getting to stylize my HTML right, I’d like to <div>s empty (I put div in the example just to illustrate, but in fact are images), stay with…
-
0
votes1
answer35
viewsWhat sources can I guarantee will be available on all platforms?
What sources I could ensure was available on whatever platform.
-
0
votes1
answer367
views -
0
votes1
answer49
viewsHow to implement a line break in Javascript/HTML
I am programming in Javascript inside the HTML and wanted to know where I would add the line break br along those lines? document.write('Seu nome em maiúsculo é ' + nome.toUpperCase()) For I get…
-
0
votes2
answers51
viewsImage is not centering
Guys, I’ve tried several ways, but the image is not centering. Follow below the code to better understand the problem: .logo2 { color: pink; position: absolute; margin: 0 auto !important; float:…
-
0
votes2
answers451
viewsGrab Div’s internal element on the side
I’m trying to make sure that by clicking a button, the contents of div next door is editable. Better visualizing the code: <div id="nome" class="container"> <div class="col-10"> <p…
-
0
votes1
answer31
viewsHow to change pagination using specified keyboard keys using javascript
How can I execute page change event using javascript so that when clicking on the arrow keys (< or >), run href of the links with ids Prox-pg and ant-pg, shown below. <a href="url da pagina…
-
0
votes0
answers12
viewsDoes viewport influence the use of the css touch-action attribute?
I’d like to use the pincer css (touch-action) event in a container, but I don’t know exactly why it’s not working in my container: css: .container { position:relative; top:0; left:0; z-index: 15;…
-
0
votes3
answers1803
views -
0
votes1
answer54
viewsUL with Checkbox Angularjs Problems
I’m trying to create a Checkbox tree but I’m having problems with my directive when passing the model. Follows code: <ul class="main-level"><li> <mdi-input-checkbox mdi-reverse="true"…
-
0
votes1
answer51
viewsRandomize Ivivs jQuery
Fala galera! I have the following code. What I’m trying to do is to randomly appear the 6 Ivs. I’ve tried to cross shapes but without result. If anyone can help, thank you. PS: I cannot put the Divs…
-
0
votes1
answer26
viewsHow to catch the table scroll event?
I have a table with the following structure: <table id="tab-grid"> <thead></thead> <tbody></tbody> </table> and need to trigger Trigger javascript below when…
-
0
votes0
answers95
viewsjQuery timepicker with various input function
I have a code in jQuery that uses the timepicker in all 35 input. follows below the second: Below my HTML: <table> <tr> <th height="40">Indicador</th>…
-
0
votes1
answer388
viewsStart css animation in div only after opening menu
I am having doubts about starting a CSS animation only after opening the menu in the +OPEN MENU option. The animation will occur in the element <div class="product"></div> Example link…
-
0
votes1
answer3390
viewsHow to pick a td value from the column name
It would take the value of td of a table by the column name. //index definido por numero $valor=$('.table td').eq(0).text(); alert("resultado com index numérico = "+$valor); //index definido pelo…
-
0
votes0
answers7
viewsHow to remove a box from an index?
Well, my question is something very simple, I’m starting now with html and php, and wanted to know about one thing, is there any way to remove this box that gets around? It appears only when I click…
-
0
votes0
answers10
viewsChange option blue color
I want to change this blue color of the option when selected <select size="4"> <option>Volvo</option> <option value="saab">Saab</option> <option…
-
0
votes1
answer25
viewsHow to decrease values in the database of another table, after performing an Insert
$sql = "INSERT INTO `saida` (`nomeProduto`, `quantidadeProduto`, `pa`, `setor`, `dataSaida`) VALUES ( '$nomeProduto', $quantidadeProduto, '$pa', '$setor', '$dataSaida')"; $inserir =…
-
0
votes1
answer70
viewsInput Submit value in two colors
My first question here... starting my studies... I have the following problem: <input type="submit" value="Enviar E-book"> I need in the Bt text, "Send" to be one color and "E-book" to…
-
0
votes1
answer87
viewsHow to show other codes within HTML?
I would like to present on a WEB page that shows other codes, for example the language documentation pages, they show code snippets... I have the idea to show you some code snippets in the same…
-
0
votes1
answer55
viewsSearch validation
I started studying yesterday JavaScript and I’m having a hard time with the search validation. I am following the steps of a book that I am using for the proposed project. Needed to send the search…
-
0
votes1
answer32
viewsMy select does not resize to the font size. How to resolve?
I added a select in my form, but when I put the font size of 35px the select does not fit the font size, a cut occurs. See in the image below what happens: I need the font size to be really 35px,…
-
0
votes1
answer2509
viewsHow to change the font size of select options?
I have a select in my form but I can’t change the font size of the options. See image below: How to increase the font size of the list of options? Because I’ve tried font-size and nothing worked.…
-
0
votes1
answer199
viewsAutocomplete insert the value into two different inputs?
I have this code <script type="text/javascript" src="js/jquery-1.4.2.js"></script> <script type='text/javascript' src="js/jquery.autocomplete.js"></script> <link…
-
0
votes2
answers231
viewsE-mail Marketing e colspan
I am studying HTML to use in email marketing and was looking at this email here: I understood the beginning of the code, but did not understand the application of colspan: <tr> <td>…
-
0
votes1
answer482
viewsSum of days on a date
I’m finding it difficult to perform a calculation for a form. I wish I could add days to a date selected by the user. I saw that there are several examples in the forum but with specified days…
-
0
votes0
answers69
viewsAngular JS Checkbox Questions
I have a little problem in my application, I have a Grid with check-box and a check-box to mark all. I want a job that weaning the check-box that marks all when you don’t have all the grid…
-
0
votes1
answer40
viewsJS and HTML masks do not work
I tried it both ways (js and html) and also tried to unite the two, as represented below, but it still doesn’t work. PS: I will use all these masks, but if you have a problem with them you can…
-
0
votes3
answers1868
viewsMask in table values
I am looking for a way to create "Masks" for the values of my table in ASP.NET. Currently, I am displaying the values like this: @model TB_RESUMO_GERAL List<TB_RESUMO_GERAL> rg =…
-
0
votes3
answers188
viewsTwo classes or more in the same element in HTML
I would like to know if it is possible to assign two or more classes in the HTML element. For example, I have a div, I could assign two class to her? <div class="primeira_classe"…
-
0
votes1
answer37
viewsHow to remove html extension from urls
Hello. I built a website, but I can’t "hide" the "html" extension of the urls, even using, after a lot of research, the codes below in the -.htaccess file_. Below follows the code inserted in…
-
0
votes2
answers4019
viewsHow to change the color of the text ?
<html> <head> <title>Efeito digitar em página web</title> <script type="text/javascript"> var posicao = 0; var mensagem =…
-
0
votes1
answer56
viewsHow to get the value of an HTML input and put into a "href" attribute?
<h2>Pesquisar Usuários</h2> <form action=""> <input type="text" id="name" name="name"> <a href="#" onclick="window.open('/Usuarios/Usuario?id=' + input)"…
-
0
votes1
answer197
viewsSort Both by Publication Date and by Update
Guys I’m setting up an Index and I’m trying to do the following... I will have this 'mini highlight' and at the moment I managed to order it by only DATA, but a few times the news will be updated…
-
0
votes1
answer33
viewsButton that when clicked displays an image, if clicked again displays another image
All right? I’m creating a button that when clicked it displays an image, and if clicked again it goes back to the old image, at the angle, currently I’m only able to catch the first action, I can’t…
-
0
votes1
answer662
viewsAuto complete Chrome bringing wrong fields as login
I have a problem with a criminal record. When registering the browser asks if it wants to save the user and password, the problem is that it saves a field nothing see as user but the password it…
-
0
votes2
answers971
viewsHow to fix content to the right inside a navbar?
I’m developing a website and I need to leave a lead pickup fixed on top, along with the top menu, to the button direct (as shown in the image). .lp-menu{ min-height: 70px; background-image:…
-
0
votes1
answer19
viewsI am using Sweet alert2 to display a form pucked with ajax, I need a way to close when Save, Cancel or X is clicked
The main goal here is to display the form inside the popup, so that if the user clicks cancel or the x above the popup disappears, the library used is sweetAlert2 (https://sweetalert2.github.io/)…
-
0
votes0
answers30
viewsHow to get the text width of a textarea tag?
If in the code below the font was monospace and each character was 10px wide, the output would be 330px, the font size and type interfere with this value. <textarea>fonte monospace com 33…