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
-
4
votes3
answers342
viewsAdd a new label to every button click
This is probably a very simple question, but I’m new to programming and I need a little help. I need every time I click a button a new label appears, but you need to add that label in a way that I…
-
4
votes3
answers4397
viewshtml file does not identify CSS
I went for a style on the page and HTML does not use the CSS file. First I put it like this: <link rel="stylesheet" href="main.css"> <link rel="stylesheet" href="bootstrap.css"> And on…
-
4
votes1
answer113
viewscss responsive misaligned
Hello, everybody! I have an image gallery coming from a database that defaults some items when the screen resolution is reduced to 1150px. This is done when the title under the image is too large…
-
4
votes1
answer415
viewsLoading before displaying content
I need to make a gif animation before I load my graphics, and after the upload is done, the animation stops appearing, I’m using Highcharts to create the graphics, but I have no idea how to do this…
-
4
votes2
answers1250
viewsHow to close menu by clicking outside or anywhere on the page?
Could someone help me get this menu to close when clicking outside, or anywhere on the page? 'Cause it’s closing just by clicking .button menu.…
-
4
votes1
answer244
viewsDetect the URL where iframe is being displayed
How to detect the URL where the iframe is being displayed and performing a function if the page is being displayed at a specific URL. Example: when accessing the page https://www.../exemplo.html…
-
4
votes1
answer419
viewsLines beside in css
I’m trying to put lines next to a word, but when I go into mobile resolution, the lines go up and get misaligned. How do I make them vertically aligned and of the same horizontal length? First…
-
4
votes2
answers430
viewsAlert message Response Headers
I’m on a project. NET, in which I create a login page and check the DLL, and in this check, is passed a string of a message that I need to capture with a Typescript to give the alert. This message…
-
4
votes2
answers638
viewsCapture input value dynamically with Jquery
I’m having a problem where I need to multiply the value of two input fields (price and quantity) to play in a third field (product price). My problem occurs where I try to get the value of these…
-
4
votes5
answers815
viewsCheck if URL has string
hello, I am making a code using Typescript and I need to do a check to know which page the user is on, I am doing this check as follows: const url = window.location.href; if (url.indexOf("/Menu")) {…
-
4
votes2
answers108
viewsWhy doesn’t the <p> tag inherit your father’s color?
I have the following very simple code <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,…
-
4
votes2
answers144
viewsWhere is the error in the leap year code?
I’m wondering where I went wrong in this code where the user types a year and appears on the screen whether that year is leap or not. function calcularBissexto() { var bi =…
-
4
votes1
answer57
viewsWhat is this :Object = ""?
I found an excerpt of code that I didn’t understand what it does. I searched but did not find an answer (or did not use the correct terms to search). Code: <div v-if="returnedObject"…
htmlasked 5 years, 7 months ago user133918 -
4
votes5
answers1315
viewsJoin two events that have the same function
I am new to programming and I was creating an html code, in which I am calling JS functions in my own input. Anyway, I have this excerpt, in my input code: <input type="text"…
-
4
votes1
answer56
viewsHow do I take the position of a marker on a map and adc in a text field automatically each time I place this marker?
function onMapClick(e) { popup .setLatLng(e.latlng) .setContent("You clicked the map at " + e.latlng.toString()) .openOn(macarte); var marker= L.marker(e.latlng).addTo(macarte) }…
-
4
votes1
answer364
viewsMusic player with playlist
Eai, you guys! I’m trying to create a music player with playlist, but I’m not having much success, because when I click on some music the music player opens on another page and not on the main page…
-
4
votes1
answer42
viewsTable does not add last request
Good morning guys, I’ll get straight to the point... I have this Success from my json where validating the following function: for(i=0; data.length>i ;i++) { let cliente = data[i].item; let…
-
4
votes2
answers451
viewsValidate only one comma in input type ="text"
The problem I’m facing is that I can’t let the user type more than one comma into input (I am using ASP.NET with Behind in C#), but also I cannot use the input type="number" because the version of…
-
4
votes5
answers3663
viewsHow to scan an array and insert the elements into HTML with JS
I am studying the DOM of JS and had some difficulties. I need to show the elements of this vector as li tags of HTML: let nomes = ["Diego", "Gabriel", "Lucas"]; My code is this: function gerar(){…
-
4
votes1
answer528
viewsHow do I use the same id more than once with getElementById()?
Hey, guys. All right? I have a chronometer that is in javascript and I want it to appear more than once on a specific page. The problem is that it works only the first time it appears on the page. I…
-
4
votes3
answers1081
viewsHow to put a <p> on the same line as <hr>
It is possible to place the element <hr> in front of an element <p>? hr{ border-top: 1px solid red; } <p>Colocar a tag <b>hr</b> em frente do <b>p</b>…
-
4
votes1
answer60
viewsWhat are content categories for?
Recently I discovered that in HTML5 there are categories that are called Content Categories (content categories) and are they: Metadata content Flow content Sectioning content Heading content…
htmlasked 5 years, 1 month ago joão batista 161 -
4
votes2
answers401
views"Watermark" with CSS
Test scenario I have an input on a <td>, in which the background of <td> has color: td { padding: 2em; background-color: yellow; } <table> <tr> <td class="marcado">…
-
4
votes1
answer168
viewscheck not allowed characters within the input and alert user
Good morning. On a system I’m working on, there’s this input inside the first div, and I need to check when the user type the letters I, The, Q in any of the 17 characters of the input, a text…
-
4
votes1
answer57
viewsHow to identify the exact element that contains a specific word
To display only the element in which the searched word is found? In the example below he searches us filhos of container if the searched content is present in the element moves it to the saida. But…
-
4
votes1
answer93
viewsLimit number on an input - 2nd doubt
My goal in a previous post was to put a maximum and minimum value in a text field, a user solved it almost perfectly. Let’s use as an example at most the number 37: function checa(e){ const mi =…
-
4
votes2
answers277
viewsIs it possible to use the resize function of the textarea in an input?
Good morning, everyone. I’m making a form, and I wanted to make a <input type='text' /> that the user could set the width, with that drag resize that exists in the textarea. I want to insert…
-
4
votes1
answer48
viewsHow to make a parent <ul> element have the width of your children’s total <li>?
Have a div that dynamically displays a series of items grouped into a horizontal list. The parent element of this list has a maximum width defined in my CSS. It is possible to make the specific…
-
4
votes1
answer86
viewsMovement Chain of Ants
I got a flea behind my ear and I was wondering if you guys could help me out on this. I’m trying to make the edge (dashed) of a div (for example) turn clockwise as if it were a chain of ants going…
-
4
votes1
answer53
viewsHow to access the "this" of a class with an external function?
I want to create a function within a class that is defined externally, but I can’t access the this class. Example: class minhaClasse { constructor(objeto){ this.meuNumero = objeto.meuNumero…
-
4
votes1
answer71
viewsplace the result of each iteration of the cycle in html for
If you could help me with a question, I would really appreciate it! So, I’m very junior in javascript and I’m doing an exercise, where I wanted to put the results of my cycle out to appear in HTML,…
-
4
votes1
answer60
viewsProblem with JS and id that only work with the first id used
I’m not a professional developer, but as in any workplace, technical support does everything. I was asked to create a support page for the external sales team, where they can include information…
-
4
votes2
answers48
viewsHow to pass Corner Blob effect to right side of the screen?
I would like to reverse the effect demonstrated by starting from the right side of the screen and expanding to the left side, however, I did not achieve this. Someone could give me a light? const…
-
4
votes1
answer83
viewsHow to establish a minimum and maximum amount of a value required by an input in a JS request?
I have a field called Quantidade that the quantity of products for sale should be inserted. My form has a data request that returns the value and quantity of products in stock, this field Quantidade…
-
4
votes2
answers71
viewsHow to define a dynamic named CSS property via Javascript?
I need to use the value of a string to change a CSS property of an element. I tried to do this, but it didn’t work: function funciona(nome, valor, id){ id.style.nome = valor; } function…
-
3
votes2
answers364
viewsHTML zebra table with Ext JS
I need to do a zebra table in Extjs 4.1.2’s Xtemplate feature where I have two for loop loops. I implemented a basic HTML, but someone has some idea of how to do it?
-
3
votes1
answer215
viewsI can’t hide an element with css by taking the data-column attribute
I have an input with the code below: <input type="search" class="filtro tablesorter-filter" placeholder="" data-column="1"> I’m using a css page to try to hide it: <style>…
-
3
votes3
answers595
viewsResponsive images
I am building a blog with responsive design and currently use width:100% to resize the images inside the div. .eMessage>.pimg>img{ width:100%; -webkit-width: 100%; /*Chrome*/ -moz-width: 100%;…
-
3
votes4
answers5304
viewsHow to make an alert with animated echo?
How to make a more animated echo, I am using the following PHP code, which contains a alert() javascript: session_start(); $credito = $_GET['credito']; $soma = @$_SESSION['valor_total'] +=…
-
3
votes3
answers132
viewsProblems with table in IE
In IE, the cells of the tbody do not accept CSS values. td:first-child{ width: 52%; } I created a jsFiddle with the table html/css: http://jsfiddle.net/rqj6r/1/…
-
3
votes8
answers4914
viewsDo not allow saving image of a web page
I don’t want the "save image as.." option to appear when I right-click an image on an HTML page. That is, it will be impossible to save images from the site. How can I do this check?
-
3
votes3
answers19533
viewsHow to do a Ubmit sending filled data in the form to an email?
<div id="mainDiv"> <div id="marca"> <img class="imagens" src="media/img/titulo.png" alt="Titulo"> </div> <div id="anaMaria"> <img class="imagens"…
-
3
votes3
answers255
viewsHow to clear the cache in Opera 12?
So, I am developing with focus on Opera 12, it has a very interesting debugger, similar to Chrome, but one thing that bothers me a lot is that refresh does not clean the browser cache, often close…
-
3
votes2
answers2590
viewsHow to force a page to open always horizontally?
My page features bugs when viewed vertically, plus it is best viewed horizontally. Is it possible to force a page to always open horizontally on mobile devices? And stay fixed horizontal.…
-
3
votes3
answers2188
viewsUse symbol in input text, and disappear when typed
I have a text box, a input type text. And I wanted to insert an image in the corner, for example, a magnifying glass. And when the user starts writing, that magnifying glass disappears. It is…
-
3
votes2
answers7683
viewsHow to upload images to a folder using ASP Classic?
Is there any script for Classic ASP so I can upload an image to a folder. Ex: I click a button, upload the image, click to upload and go to a folder for example: C:\ASP\sistema\imagens.…
-
3
votes2
answers3652
viewsHow to make the container reach the footer? (even with little content)
I have a layout here, where, the background of container is transparent black, and it goes to the bottom of the page. but there is another problem, where it is written "Sitemap", is a menu that…
-
3
votes3
answers3981
viewsProblem with Hover in CSS
I have a table and I want each cell to be highlighted when the mouse is over. However, it is not working. It should be considered that I am using bootstrap as a basis for page styles and therefore I…
-
3
votes1
answer490
viewsGet components that are inside a xhtml file
In a source code facelets (xhtml) of the primefaces, I want to extract all tags <p:inputText>. After that, I want to take the attribute label. Could you do that? Remembering that the…
-
3
votes2
answers921
viewsText input box on the right
In a box the text is aligned to the right, as I do so that when focusing the text box regardless of the place the writing cursor goes to the right? I want that when clicking an input of type text…