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
answers113
viewsKeep gif for a while after removing the mouse
Good morning, my problem is this: I have a gif of a Bulbasaur and I want that when I pass the mouse on top of it the gif change to another, but when I finish the animation of 2°; gif I want it to…
-
3
votes3
answers88
viewsTextarea that calls a User List when the F2 key is pressed
Good morning Personal was given me a task that is being challenging. I need to develop a textarea when I click the F2 key inside the textarea, a list of system logins appears. Something similar was…
-
3
votes1
answer46
viewsCan someone help me get on board?
function Somar() { var somaN1 = window.document.querySelector('input#somaN1') var somaN2 = window.document.querySelector('input#somaN2') var somaRes = window.document.querySelector('span#somaRes')…
-
3
votes1
answer98
viewsPass an indeterminate value of an input to Javascript
I’ve seen a lot of similar questions but none that would solve my problem. The script basically is the following, there are 3 inputs, and the values of the inputs who will say is the user (the user…
-
3
votes2
answers255
viewsHow to make a horizontal line between two <td>?
I have a <table> divided into two columns, and I need that in the vertical middle of each column have a line starting from the <td> from the left to the <td> right, in this format:…
-
3
votes1
answer691
viewsInsert a Datetime into a date type input tag
I am trying to insert the current date into a tag input of the kind datetime-local. Tag Input: <input type="datetime-local" id="inputDateNow" class="registerInput inputCodeDate"…
-
3
votes3
answers144
viewsHTML Doubt Send text from an inputtext to php
Hello I’m starting in html + php I’m having trouble sending the information from a text field to my php. follows my html code. <html> <head> <title>.. Telefone ..:</title>…
-
3
votes1
answer164
viewsHow to center one div under another, exceeding the limit of the first?
Hello, I’m learning about CSS3 and I’m trying to center one div underneath the other so it’s more or less like this: Yet mine has remained so: I tried using margin-bottom: -150px It didn’t work. And…
-
3
votes1
answer57
viewsHow to place the list of letters received from the database in a horizontal position and join it in a single page to the list of words of the searched letter
I am building the database of a dictionary and I made the code of the page Indice.php that shows the letters of the alphabet: a) The list appears vertically but I wanted to be horizontal. b) How to…
-
3
votes1
answer75
viewsValidation of inputs does not update
I did the following function: function verifica(){ var csenha = document.getElementById("csenha").value; var csenha2 = document.getElementById("csenha2").value; if(csenha != csenha2){…
-
3
votes1
answer122
viewsHow to change two fields in JS
So, I don’t understand much of js, and my problem is this: I have a list of products in my cart that shows the quantity, discount, unitario total and subtotal. js would need to change the quantity…
-
3
votes3
answers65
viewsvertical menu with select
Could someone give me a north on how to display a vertical menu when the first items select is selected, I’m doing it in a very crude way, as they will notice that I put margin-top to move the…
-
3
votes1
answer746
viewsHow to Dropdown Menu Overlay Div Content
I am trying to make a Dropdown Menu, the problem is that I would like this menu to overlap the contents of the div. I have tried using the position: absolute, works, Entering the div of the dropdown…
-
3
votes1
answer64
viewsConverting from HTML/CSS to pdf using pandoc in R
Folks I’m having trouble converting my generated html/css file into Rmarkdown. You could help me? Follow my code: My file . Rmd --- title: "Table" output: html_document: css: "test.css" --- ```{r}…
-
3
votes3
answers57
viewsHow to make the text inside the button not be tilted?
<!doctype html> <html lang="pt-br"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta…
-
3
votes1
answer53
viewsHow do the width and height of an element start from the center and expand to the left and right?
<!doctype html> <html lang="pt-br"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta…
-
3
votes1
answer1037
viewsLoad HTML file into another HTML file
I have a file index.html: <body> <div class="application"> <header class="header"></header> <main class="content"></main> <footer…
-
3
votes1
answer122
viewsHow to avoid distortion of pixels in HTML elements in various screen/screen settings?
I noticed in a simple situation that elements with pixel are not always rendered as you imagine, a simple example is when one adjusts the browser zoom to more or less than 100%, making it appear…
-
3
votes1
answer56
viewsHow do I pass a variable in an id field in html?
Devs! I have the following problem: On my Ionic html page, I have a structure that creates some elements based on how many photos I have in my Storage (internal database) <ion-col size="6"…
-
3
votes1
answer333
viewsHow to validate 2 checkbox groups
Personal in my form I have 2 distinct groups that have 4 checkbox each. The 1st group is already validated. Which is this: HTML with PHP, it loops with the amount of items in the database: <?php…
-
3
votes3
answers993
viewsRemove "disabled" with Javascript
Good evening. I wanted to remove the disabled attribute from a tag when a certain condition is met, but I couldn’t find any idea how to do that. Below the HTML: Escreva aqui: <input type="text"…
-
3
votes4
answers5284
viewsHow to center the elements within a div?
I’m trying to align the elements that are three circles with their respective descriptions within my div center using the following class: .center { margin:auto; } However, I did not succeed in this…
-
3
votes3
answers986
views -
3
votes1
answer65
viewsMessage from the validate datetimepicker
Good morning, everyone, I’m having a problem with my form validate() with the datetimepicker in a modal, the message is showing up to the right of the input and before the button, I need it to…
-
3
votes1
answer59
viewsIs there any way to style the resize button?
Example: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">…
-
3
votes1
answer158
viewsRead file line by line and collect strings
I have these two functions in Javascript: function verificaExtensao($input) { var extPermitidas = ['txt']; var extArquivo = $input.value.split('.').pop(); if(typeof extPermitidas.find(function(ext){…
-
3
votes1
answer257
viewsJavascript read txt file and interpret as code
I am working with the following code to import and display text files: HTML <input type='file' accept='text/plain' onchange='openFile(event)'> <div id='output'>...</div>…
-
3
votes1
answer41
viewsWhat does it mean and how to use the value (Number)n+(Number) in the Nth-Child() property?
I’ve seen several examples using the property nth-child() with values such as a number to select a particular element or select even and odd elements with values even and odd, but I saw that you can…
-
3
votes1
answer51
viewsHow would I let this expression of mine beyond the character - (less) be accepted the + (more) as well?
I have an expression on a input, using pattern, that has some rules, among them: Accept uppercase letters, lowercase, minimum of 5 characters, do not accept special characters (only accept the -).…
-
3
votes1
answer629
viewsKeyerror: '>R' in Google Colab Python
I copied the following code from a data visualization tutorial in Python, but it does not perform properly, warning Keyerror as seen in the title. Can someone help me? There’s something wrong there?…
-
3
votes0
answers21
viewsWhy even without creating a variable referencing the elements in HTML the code still works?
let demo = document.querySelector("#demo"); let button = document.querySelector("#button"); button.onclick = () => { demo.innerHTML = "Novo texto!"; } <p id="demo"></p> <button…
-
3
votes3
answers125
viewsSave or remove accent on a Textareafor
Hello. I have a Textareafor which receives the HTML content, however when saving the data, the accents and special characters are encoded and I have problems later when editing or viewing the data.…
-
3
votes2
answers92
viewsText appears fast
The page is running all right, but when I click on the menu it displays the text very fast and then deletes. Could someone give me a light why the text disappears after the click?…
-
3
votes2
answers65
viewsGET by passing all records in URL and POST Presents only the last record
Good afternoon guys, all right ? I’m trying to create a page to insert items inside a cart, this page keeps the client code and the command code in a variable and passes it between screens, on my…
-
3
votes1
answer56
viewsHow to bring an array that is in a separate file to the application?
I have a JS (data.js) file that contains an array of the information below: module.exports = [ { "photo":…
-
3
votes0
answers122
viewsHow to add/remove shadows from an element with "position: Sticky" as scrolled?
I made a table with the header and the last fixed column using position: sticky. To give an impression that it is above other columns/rows, I used box-shadow, but it gets weird to leave the…
-
3
votes1
answer234
viewsValidate input by accepting specific amount of letters and numbers in javascript "for an RA, ex: p3087748"
I did a validation in HTML using pattern, I tried to put letters and numbers at the same time. But I believe that there is no way to determine the minimum of letter and numbers. Example: Only one…
-
3
votes2
answers93
viewsLaravel 6 escaping html Blade template
I am displaying news registered in the database using Windows and Blade template, only that html is being escaped, I have tried several ways but I can not solve. My controller returning query result…
-
3
votes0
answers41
viewsMake procedural paradigm Javascript application for object orientation
At the beginning of my Javascript studies, I made a simple application of a supermarket stock, where the customer could search for a particular product and see if it was still in stock or had…
-
3
votes1
answer212
viewsAngular 8 - reactive form Directive and disabled attribute
After I upgraded from Angular 7 to Angular 8 in an application the [disabled] stopped working in various parts of the template. And to load the application I needed to change to [attr.disabled]. I…
-
3
votes1
answer35
viewsCSS mismatch in Firefox and Chrome alignment
I’m failing to leave the same image alignment pattern Hallo-top_fd2.png in the Chrome navigator, where I’m missing? Grateful #container { display: table-row-group; position: relative; align-items:…
-
3
votes0
answers42
viewsHow to listen to coordinate changes on a canvas via a mobile device?
I created this component in Angular that has a canvas and when the user clicks and drags on that frame, the canvas is filled with coordinates positions. I tried to reproduce this same behavior in a…
-
3
votes1
answer32
viewsHow do I put this vertical div in the top left corner of the screen?
<html> <head> <title>Impressão de Carnê</title> <style> .vertical { transform: rotate(270deg); margin-top:…
-
3
votes3
answers45
viewsProblems centering content when working with flexbox in CSS
I’m trying to learn CSS and I came across flexbox and I’m not getting to work with the tutorials I see on the internet. The goal was to center, axis X and Y, 3 squares on the page, but I could only…
-
3
votes2
answers59
viewsHow to maintain a responsive daughter DIV without overriding parent DIV and without using overflow:Hidden
Guys, I’ve been trying to apply an HTML layout for a while but I’m having trouble keeping Divs responsive. Basically the layout I want is this one. However when adding more color Divs Tomato the…
-
2
votes1
answer117
viewsIs it possible to use Query String and Hash at the same time?
I am developing a one-page site only using the hash’s html to scroll the page until the id specified, but the need to use also a query string with php, but now every time I try to use both of them…
-
2
votes3
answers2650
views@font-face does not work in Firefox, but in IE and Chrome they work
Always use @font-face in my projects and never had this problem. I have doubts if you have a problem with my CSS. The @font-face not working on Firefox. My code is like this. <link…
-
2
votes2
answers129
viewsAlternative Flow in Spring
Faced with the situation: I am on the registration screen of cars, where I can select the brand and type the model. In case I need to register a model that does not have the brand previously…
-
2
votes2
answers2633
viewsInput type date, how to format output
Is there any way, using only HTML attributes to format a <input> to receive date formatted for ano/mês/dia? If it does not exist in HTML there is some way to do this via Javascript when…
-
2
votes2
answers4360
viewsHow to fix column in table accessible?
I have a table with several columns and I need the first column to be fixed on the table. However, all the "ready" solutions I found create two tables, which is inaccessible. I need the result…