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
votes0
answers261
viewsDisplay result of a query in an HTML tab. NODE.JS/SQL SERVER
Hello, I need urgent help. I made a connection to the sql server database via Node.js Only to know the amount of items you have in the table (Count). I would like to show this quantity result in a…
-
1
votes2
answers274
viewsDoubt/problem scanning QR Code with javascript and displaying the result in input
I’m trying to get the QR code to be scanned it prints its value in the input, but I’m not getting it, I used some functions I know but the qr code is not printed in the input in any way, I’m new at…
-
1
votes1
answer55
viewsHelp with PDO data in PHP!
Guys, I’m pulling data from a bank SQLSERVER with PDO for an HTML/PHP page, I used the following code: $query = "SELECT * FROM [BD].[Feriados]"; $stmt = $conn->query( $query ); while ( $row =…
-
1
votes3
answers59
viewsRepeat fields according to dropdown number
As I don’t know much about javascript I would like a help of how to do that when choosing a number in the dropdown, I repeated the fields by the chosen value <select id="valores5" class="valores1…
-
1
votes1
answer22
viewsCheck if the value of an object of a certain class has been changed
I want when one value is changed within one object of a certain class, another to change as well. Example: class minhaClasse{ constructor(valor1, valor2){ this.valor1 = valor1 this.valor2 = valor2…
-
1
votes2
answers153
viewsDisplay the result of a calculation on the screen
I need to present the result of this function on the screen, I’m only using Alert to see if it’s working, but I need to display it as a paragraph on the screen. I tried using innerHTML, but I…
-
1
votes1
answer60
viewsSelect row from table
I have the following table, js and Cs: HTML: var tr = $('table tr:not(:first-child)'); tr.on('click', function () { var self = this; tr.each(function(){ if(this == self)…
-
1
votes2
answers45
viewsInternal link problem using pure Javascript
Good morning, late or evening to all. I’m having a hard time trying to make a navigation menu with internal link using pure Javascript. The problem is that I’m probably trying to is that I’m not…
-
1
votes1
answer510
viewsSearch using Javascript only in all table fields
The script which I will post just below copied from the answer to that question: Static search list using Javascript instead of PHP, that was made here in the community. window.onload=function(){…
-
1
votes2
answers112
viewsDynamic CSS in backgorund-color
I am creating a grid of cards and each card can have up to three different background-color, is there any way to make this color dynamic? Instead of creating three identical classes in html, just…
-
1
votes1
answer30
viewsFunction does not fire
I’m starting to work / learn the DOM, but I’m having difficulties, because: const celsius = document.getElementsByName('celsius')[0] const fahrenheit = document.getElementsByName('fahrenheit')[0]…
-
1
votes1
answer50
viewsHow do these symbols (text Fragments) work in the "#:~:text=" URL?
I see some sites use these symbols #:~:text= links as a way of highlighting the text or a certain part of the text of the site on which it is relevant. As, for example, below is opened a MDN page…
-
1
votes3
answers55
viewsHow to use mouse events to create enter/out effect without the German inside the selected element interfering
I wanted the div with class block was with an outline when I entered with the mouse inside the div and then the border disappeared when I take the mouse out. Problem, when I pass the mouse over the…
-
1
votes1
answer232
viewsResponsive table with scroll if screen is smaller than data
I am having difficulties in a certain responsive point of the site I am creating. I need a north. In this image the side menu is closed, occupying less space. As my div has fixed size it remains the…
-
1
votes1
answer540
viewsCustomize radio input
Good afternoon! I am editing an OPENCART store and need to customize the input radio shoe size, doing as follows: .input-option356 { list-style: none; margin: 0; padding: 0; } .input-option356:after…
-
1
votes1
answer202
viewsHow to convert the characters inside the form and print on screen?
How do I make the characters of - are converted into : number inside the form. When pasting a number inside the form, as in the example above; I want the - are converted into :, getting 00:00:00:00.…
-
1
votes1
answer66
viewsWhy even when margin and padding ta set to 0px there are still spaces between the elements?
#header{ margin: 0px; padding: 0px; border: 0px; width:100%; height:100px; background-color:#00F; } #conteudo{ widows: 100%; margin: 0px; padding: 0px; border: 0px; height:500px;…
-
1
votes1
answer110
viewsHow do I direct the link to the anchor and close the modal at the same time?
I have some links in a modal made in React that go to anchors of the page that the modal was opened. I am using href for the anchor and the onClick event to close the modal. Example: <a…
-
1
votes1
answer59
viewsRefresh page when an XML refreshes (Shout cast)
Friends, greetings to all... I have a question, I have been researching and I do not know if it is possible, because I think that when we look for something too much it is not possible or I am not…
-
1
votes1
answer37
viewsHow does a div go past the grid size?
Guys, I’d like to leave it at that: But so far, I’ve only been able to keep it that way: I am the css grid, I can’t get the div to pass over the other. My codes: #sobre { width: 100%; height: 100vh;…
-
1
votes1
answer194
viewsHow to use a date mask at Angular 10
I have a form in my application where the user can edit various data, including his date of birth. In the edit date field I am using this input: <div class="col-md-6"> <label…
-
1
votes0
answers251
viewsMargin problem when generating PDF with MPDF
I need to know how to take the margin or edge of the mpdf pages, at first I wanted to create a pdf file that had the first page with this background = background: linear-gradient( 40deg, #4169E1…
-
1
votes0
answers38
viewsParticles.js as background using Dash Plotly
I’m using the library Dash plotly from Python to create a view of macroeconomic indicators, I would like to use as background the Particles.js because it creates an incredible effect, here is the…
-
1
votes0
answers95
viewsRead XML with Ajax, Javascript, DOM
As it is possible to read this XML using Ajax, I tried several ways, but so far unfortunately I could not succeed, the goal is to take the number of inum (810265006252830) that will be using in…
-
1
votes1
answer208
viewsProblems with HTML indentation using Prettier in VSC?
Can anyone tell me why the indentation of Prettier (extension of VSC) is not working in HTML file, configured to indent with 4 spaces, works in CSS and in the JS, but does not work in the HTML. How…
-
1
votes0
answers57
viewsWhen the Checkbox with javascript is not working
Next. I have an input select with States (Rj, SP, MS), When I select it, it does a search via ajax ($.post) and brings me as a response, in JSON, the data of the cities (code, name, Uf, status) in a…
-
1
votes1
answer650
viewsRun python script by clicking html button
I need to feed a page html that will load and display the content dynamically with ajax/fetch. The problem is that I need to take this data from other websites that also upload this content through…
-
1
votes1
answer110
viewsConditional structure (if Else) javascript
I am studying Javascript and I have the following problem: <!DOCTYPE html> <html lang="pr-BR"> <head> <meta charset="UTF-8"> <meta name="viewport"…
-
1
votes1
answer25
viewsHow to position/align a field (which is inside a div) together with other Fields
Greetings to all! Within my "form-group Row" I am placing Fields with their respective sizes, however, in the middle of them (to be more specific, between the first and the third field) I created a…
-
1
votes0
answers60
viewsHelp with IF and ELSE in JS
First of all I have to say that I’m starting now to work with JavaScript, I’m sorry if I misspell the name of something or talk some nonsense, come on. My goal is to have a modal with steps, with…
-
1
votes2
answers91
viewsHow to hide thead when all tbody tr are hidden?
Good evening, I am trying to make a search bar that Filtre by cells between various tables, and I would like this search hide the <thead> of the tables that do not possess results…
-
1
votes1
answer45
viewsmax-height is not working
Good morning first. I’m trying to limit the height of my div classy contacts inside my div classy contact-page, however the height of contacts exceeds the contact-page, even with the max-height. The…
-
1
votes1
answer38
viewsappend function only adds last item of my array
I have the following code. For some reason at the time of giving the append to show my li With my data it only shows the last item of my array. Please someone help me window.onload = initPage; async…
-
1
votes1
answer75
viewsHow do I enable Hover without creating a css file?
Good afternoon, someone could assist us in this issue, I’m trying to activate Hover to change Background-color, if you have how to activate Hover without creating a css file. <body>…
-
1
votes1
answer34
viewsBring values from a select with AJAX automatically
I started using AJAX for a while and I have a question. I own a <select> and I am trying to bring the value of it on the same page (without giving refresh), however, it is only displayed the…
-
1
votes0
answers45
viewsForm of insertion into accordion in multiple items with AJAX
Hi, I’m trying to make a requisition for updating item of accordion in the mysql, but only one item is updated. The code works as follows: Sample of Code 1, creates the cards within the modal. Each…
-
1
votes0
answers9
viewsAssign CSS to a div with that div’s id
Can you help me with this Since i have two Carousel in same page and mess Around with the other one. #patrocionadores { .carousel-inner .active, .carousel-inner .active+.carousel-item,…
-
1
votes1
answer20
viewsFunction error not set when working with Ecmascript modules in the browser
I am trying to work with modules in Javascript and came across a problem when calling a function that is in the file main.js for index.html. <!doctype html> <html lang="en"> <head>…
-
1
votes1
answer81
viewsHow to make several elements participate in Event Listener?
I created a card page and added a Fontawesome icon to each one. However, when I try to make this action repeat on the other cards, it doesn’t work. When I click on any other card, only the first one…
-
1
votes0
answers35
viewsHow to make items within the site responsive?
I am creating a labeled Forms inside a view and I would like that when this zoom or go to small Content does not deform. How to do this? <head> <link rel="stylesheet" href="~/css/site.css"…
-
1
votes1
answer83
viewsPerform JS datalist value operation
I got a problem: the JS code it can take the value of the datalist and return through an Alert the selected item, but I need to do functions for each operation, IE, I need JS to interpret which item…
-
1
votes1
answer72
viewsAutomatic calculation of buttons
I’m with an item calculation project where by clicking the buttons + or - I have a field that does the calculations automatically. The problem is that this way I have to create a variable for each…
-
1
votes2
answers49
viewsHow to take Settings from a URL and put in a Button?
how to make one page redirect to another using URL parameters for example: www.dominioaqui.com.br/index.html? link=https://www.google.com in this example I have a page with a button that redirects…
-
1
votes1
answer51
viewsJavascript, action on selected option
I am doing an HTML work and I want to select the option "Não está nas opções", a text box appears. HTML: <head> <title>Ajuda</title> </head> <body> <center>…
-
1
votes1
answer27
viewsKeyframe in css for background effect
Hey, how you doing? I tried to make a background change using keyframe, but the images when they change blink the first time, as if I was loading. Is that normal or did I do something wrong? Here’s…
-
1
votes1
answer56
viewsPrinting a permanent array in html
Good morning , I am developing a registration system, but after printing the data on the screen when reloading the printed data disappear. Any solution? Grateful. var aluno = []; var dados = ["Nome:…
-
1
votes2
answers34
viewsHow to make buttons have the color defined in css when selecting Row in a datatable
When I select Row from my datatable, the delete button turns white and does not obey the green color I entered in css. When I place the mouse over and the button, the focus disappears and the green…
-
1
votes1
answer98
viewsHow to Pin a DIV to the Bottom of an Element?
have a "Dashboard-box" with 3 Four main children and would like to fix the last div "box-footer" at the bottom of the box, only this div, how do I do? I want to put the Div of the message "Last…
-
1
votes1
answer360
viewsSend Formdata with Fetch API
I’m trying to send a Formdata() to the backend via Fetch API, but I can’t read the form inputs in NODEJS. By the way, req.body is empty. I’m wearing the body-parser and express. Backend: const…
-
1
votes0
answers28
viewsHow to add the path of an anchor to the page address
I created an onepage, used anchors and id to do the internal navigation. I need at the end of the site url to be shown which part of the site is being displayed. Example: When accessing the site…