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
votes3
answers1126
viewsHow to open window to select file after pressing the Submit button?
I am creating an application and I need the customer to send in a <form> a file for the server. On my HTML page I have two buttons, download and upload, and I would like to have the client…
-
1
votes1
answer80
viewsIs it necessary to specify the MIME type in the src property when rendering an image in Base64?
I’m doing some image rendering tests on Base64 and I had some doubts. I realized that even passing the extension of the wrong image on mime type, it is still possible to render the image, in the…
-
1
votes2
answers140
viewsAdd an action to a <select>
I have the following "type" button in the image, when I click it opens a dropdonw, when I click an item in the dropdonw opens a collapser with more options. I need that when selecting the option in…
-
1
votes1
answer263
viewsHow to Query between two php+mysql Dates?
I can make the query between two dates. However, the query returns dates beyond those that were searched. Example: Consultation between 01-02-2000 and 02-02-2000 Below is my code: <?php…
-
1
votes1
answer37
viewsSeparate tabs on a page
How can I make a double tab on the same page, keeping the contents open and only switching between each double? I just want to switch between the content of London and Paris / Tokyo and Dublin, but…
-
1
votes2
answers71
viewsHow to prevent a function from being executed when a condition is reached and reactivate it when necessary?
I’m in a skirmish here to try to stop a function when a certain condition is reached and rehabilitate it if a certain button is clicked. In my case, I have a text and buttons that change the font…
-
1
votes1
answer164
viewsHow to hide/show my HTML elements?
<ul> <li onclick="mostrar('img')"> PASTA - Fotos <ul> <li id="img" style="display: none;">Imagem1.jpg</li> <li id="img2" style="display: block;"> Imagem2.jpg…
-
1
votes1
answer128
viewsAdd 365 days to a date in an input type="date"
I have a problem I have an input that I type a date input format , I wanted to add what was typed + 365 but I can’t get by id nor by class: function somaFerias(){ var Hoje = new Date();…
-
1
votes4
answers312
viewsLimit input value with Javascript
How do I limit the value in my input? I tried to use it didn’t work use min="1" and max="3" function process(quant){ var value = parseInt(document.getElementById("quant").value); value+=quant;…
-
1
votes1
answer595
viewsRead and Edit JSON File via JS!
So guys, I want to understand how JSON file reading and editing works. I’ve tried so many ways, but without any results. I will leave the base structure I already have here to understand my goal.…
-
1
votes2
answers269
viewsHow to call and get via GET an external HTML page using Axios?
I am trying to get any external html page via an Axios.get(), passing the url of the page in question as parameter: axios.get("http://www.google.com") .then(resp => { retorno = resp.body }) Only…
-
1
votes1
answer364
viewsHow to receive multiple fields in php and insert in table(mysql), not knowing the amount
First question here, so if you need anything else, please let me know. I have a simple html screen that has a basic table and in this table there are inputs where put the values description and…
-
1
votes1
answer20
viewsJquery.click() function with problems running
According to my code below, when I click the button Ver senha on the web is making a GET when I really just want you to show the password field. What might be wrong? $('.passwordShowLabel').hide();…
-
1
votes2
answers287
viewsHow to insert a div into a specific div using Javascript
This is my code, I want to insert it into a div with the specific id. But right now I’m having a hard time getting him to show up on the div that I want. var html = '<div class="card">' +…
-
1
votes1
answer65
viewsDetect which button was pressed (html) and change variable in (js)
I have an interface where I have several buttons and each one represents an instrument. When I press, to select the instrument I want, I have to change the library variable I’m using. Something…
-
1
votes1
answer245
viewsI need to make a flexbox table
I made the following code I am not able to center the images that are in the middle and also I am not able to padding the last column I need to do something like it is in the image. .container {…
-
1
votes2
answers85
viewsIs it possible to change the value of a Readonly with conditions?
Good morning. I didn’t find anything similar in many posts so I decided to ask you: is it possible to change the value of a readonly field? For example, suppose you have two fields (number 1 and…
-
1
votes1
answer33
viewsDiv mother occupy all height of absolute content
I would like the mother div to fill in all vertical area, but with the code below I’m not getting it. Could you please help me? HTML: <div class="boxes"> <div class="box-01"> <div…
-
1
votes0
answers70
viewsevent change without effect when triggered by a select field dynamically added to the page using Jquery
Can someone help me with this problem ? Steps to generate the failure: click add change field value from 2° line to load field, also from 2° line the flaw <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML…
-
1
votes1
answer36
viewsHow should the dynamic filling of the gender of a particular piece of clothing be done?
I have a "dilemma" when registering a product, because not all clothing options are for any gender, for example the option Saia and Vestido cannot be of the genre M (Masculino), for gender only F…
-
1
votes2
answers190
viewsAlign icons and text on button
I would like to have my icons (Svgs) and text aligned within the same "container" of my navbar using flexbox, but I’m not able to use the correct rules. The closest I could get is reported in the…
-
1
votes1
answer229
viewsHow to calculate the number of lines in a text in a <p> or <div> with Javascript?
My question is not restricted to the amount of line breaks <br> or with the use of \n in tags <pre>. What I want to know is how many lines a text displays in an HTML tag like <p>…
-
1
votes1
answer30
viewsEmpty space on top of page when creating a UL on the sidebar side
On my HTML page I created a sidebar and beside a <div> that will guard a <ul>. Before adding this <ul>, the page was the way I wanted it, with no space on top of the sidebar and…
-
1
votes1
answer36
viewsRemove DOM elements with javascript
I am trying to make that whenever I click the button the image is removed, I did this code but it only hides the image and whenever I do Load appears again, I wonder how I do to remove the content…
-
1
votes1
answer61
viewsHow to iterate a list in Flask
I have this code in Flask (which uses the Jinja2) {%block content%} {% for i in posts %} {% set x = x + 1 -%} <p style="border: 1px solid black; padding: 5px 5px; border-radius: 5px;">{{ i[x]…
-
1
votes1
answer42
viewsAlign the contents of the div to the center, but the texts are on the left
I have this code. I want the text to stay centered on the div, but with the alignment on the left. I put a text-align:left, but the text is still centered. <div style=" width:1000px;…
-
1
votes0
answers19
viewsI’m having trouble sending video to the server
Hello all right ? I’m having problems with sending video to the server, with image (the same code practically) it sends, but not with videos. My server is a Linux Ubuntu VPS, I have the vestaCP…
-
1
votes1
answer178
viewsHow to import a css file within JSX by link tag or script (React)
Hello, I’m learning React, I saw some basic concepts in a micro-course on youtube, and to train I would like to turn a site I already have into html and bootstrap for React. One of the problems I…
-
1
votes0
answers36
viewsDifficulty to complete slide animation
Speaks friends, I am trying to make a slide using animations with the opacity property. I want the first photo to be the starting point and not suffer from the effect of animation, then I set None…
-
1
votes1
answer103
viewsDisplay text near the mouse pointer when resting it on an image
I am searching since yesterday how to display a text while resting the mouse pointer on an image and see information (as a title, but where I can edit the font color, background and etc) and with…
-
1
votes1
answer386
viewsInsert HTML code in iframe directly by Javascript
Hello I need to use a variable that contains my HTML code to display within a iframe, but my page does not display. What may be wrong ? My code: <html>…
-
1
votes0
answers80
viewsFunction that works on Edit/Django but does not work on the/Django wiki. Why?
I’m trying to make a feature to edit wikis. When I enter Edit/Django it returns me all right, but when I enter the wiki/Django, for example, where you have the edit button, it returns this error:…
-
1
votes1
answer97
viewsIs there any way to reuse a window with the target form?
We know that by property target HTML form we can tell if the request window will open in the same window or in a new. When using target="_blank" a new window is opened, it makes sense even by the…
-
1
votes1
answer162
viewsHow to edit the CSS of an image Link made by <a>
Wanted to round the edges of an image she was made with the tag <a> HTML, but I’m totally lost. This is the code I used to import the image: <a className="imagepost" href={post}> <img…
-
1
votes1
answer63
viewsAngular 10 - table error
I am making a table and using json-server as backend at angular 10. The table does not show the data and the console points an error in the tag. I can’t figure out the mistake, someone can help me?…
-
1
votes1
answer13
viewsNavigation error with jQuery
I’m making a site to use portfolio and decided to make a menu for navigation. I also decided to implement a Feature to change the color of li always when scrolling the scroll. It was even working,…
-
1
votes0
answers16
viewsCSS applying the before to all elements
Hello, I have the following code: html <head> <link rel="stylesheet" href="./teste.css"> <script src="https://use.fontawesome.com/7a5258e51f.js"></script> </head>…
-
1
votes2
answers326
viewsRegex to capture links from sites specific to an HTML page
My goal was to make a Rawler web that found links (in many ways, but starting with http/s) in the HTML page of a site, I used requests and regular expressions, a part of the code went like this:…
-
1
votes0
answers36
viewsAdd Endpoint to the web application
How to use Endpoint in a web application that consumes the API created with Microsoft Custon Voice. index.html <!DOCTYPE html> <html> <head> <title>Microsoft Cognitive…
-
1
votes1
answer56
viewsCSS side menu: VUE component content pushed right
What I want is that there is no overlapping of the side menu on top of my main content, but that this is pushed to the side when the menu is opened. I know how to do this with images, using Section,…
-
1
votes1
answer57
viewsDeactivate the page scroll at a specific time
I made a kind of carousel with CSS and a little bit of Javascript with some images and as I use the mouse scroll on top of the images the images move to the side, the problem is that the page also…
-
1
votes0
answers29
viewsHow popular is a select according to the previous select taking data from the database?
So guys, I’m trying to create two selects being that one carries the specialties of doctors recorded on a table at the bench and the other shows the doctors according to each specialty marked, i am…
-
1
votes1
answer47
viewsAlignment of Text to Input
Good evening, everyone, I hope you’re all right. I’m having trouble aligning Text on top of Input. HTML <div class="form-group2 col-md-4"> <label for="inputState">Estado</label>…
-
1
votes1
answer62
viewsSending HTML email in Java project
I’m having to develop a system that makes a query in a database and the results are sent by email, for formatting we use HTML, the first way I saw was to store the HTML code in a variable, but the…
-
1
votes0
answers14
viewsProblem with dynamic JCROP
I have the following code that opens a modal with the jcrop to cut and then put the cut in a preview, but when I close the modal and select another photo it does not update in the modal. already…
-
1
votes3
answers159
viewsError in php/mysql register
I made a login and registration system, and within the registration section I put a condition, if true register, if false do not register. However, as much as if Else is true, when I enter the…
-
1
votes2
answers195
viewsManipulating CSS Property with Javascript
I need to insert a WIDTH worthwhile 140px in the following CSS class: #menu_global2 ul li .icon_menuG The intention is to read the size of my width #menu_global2 and then apply changes to the CSS. I…
-
1
votes1
answer313
viewsTwo Buttons type Submit in the same form
I have the following situation: a form and two buttons (Submit), and the button (Register new point of sale) will register the data in the database and re-load the registration page so that the user…
-
1
votes1
answer610
viewsOpen modal pop-up automatically when opening the site only once
I have a Modal window that should open only once when opening the site. Below, I have the button I use to open the Modal screen, in addition to the responsible div, I need this button to run the…
-
1
votes1
answer57
viewsList the names of all objects within the array
I’m using the Angular JS chip system and I have a problem showing the name(description) of the objects inside the array. The code html that’s the one: <div layout="row" layout-xs="column">…