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
-
2
votes1
answer113
viewsTo define the value of a css variable by java Script
I want to define the Progress css via java script, making it change with a value I put in the Html input. take a look: HTML: <link rel="stylesheet" type="text/css" href="HPCSS.css">…
-
2
votes0
answers31
viewsWhy does the attribute "autofocus" not work, coming from another document?
In order to understand my situation, I am trying to incorporate a document (page) in another document through the element <iframe>. This document I’m trying to embed contains a form that has a…
htmlasked 4 years, 8 months ago felipe cardozo 275 -
2
votes1
answer95
viewsPosition text before and after a hyphen aligned to the center
I have two information, an email and a number ( phone ), between the two put a hyphen. I want to center the hyphen in the middle of the screen and put the email on the left side of that hyphen and…
-
2
votes1
answer42
viewsLoop and how to enable editing to write in javascript
I’m making a notepad and I’m having some doubts, I want when you click on the "add" button add one more postit for this, I can use the loop or I have to use another command? On the button with the…
-
2
votes1
answer66
viewsHow to put an input value to be analyzed in a Promise?
"Create a function that receives a user’s age and returns a Promise that after 2 seconds will return if user is older than 18 years or not" When I open the page after 2 seconds the result loads even…
-
2
votes1
answer57
viewsHow to transform boolean input values to string values using C# (MVC)?
I’m having trouble transforming values from a Toggle input into a string value to be stored in a BD. The goal is to make a Buy/Sell Toggle that shows the type of operation the user is entering the…
-
2
votes1
answer32
viewsMVC switch from partial view with select control
I am making an application where the user chooses an option and a different form is shown for each of these options. My problem is that when I change the option, I cannot change to the corresponding…
-
2
votes1
answer33
viewsStop motion with css Animation
I made this move with css and my question is: How can I stop this movement in a certain place? I can style according to left, right, top etc. But how can I stop the car movement according to my code…
-
2
votes3
answers79
viewsSkip css line keyframes
I’m in a tremendous difficulty, I made a small freshness for when entering the site the text shows the same when typing alone with keyframe. Doubt: How can I skip line in my text without the…
-
2
votes1
answer63
viewsHow to apply capitalization in paragraph text with specific classes directly in the page body?
Basing myself in that question, I adapted a specific answer for my case, creating an array with the paragraphs of interest, where my intention is to capitalize the text present in these respective…
-
2
votes3
answers77
viewsPass two variables together with the form through the ajax
I need to pass two more variables through ajax, I tried to do it this way: JS: var usuario_cod = document.getElementById("usuario_cod"); var line_cod = document.getElementById("line_cod"); ...…
-
2
votes1
answer36
viewsI can only change the "bottom" position with "px" and not "%"
I am trying to change the relative’s vertical position ". switch", but I can only do it with px and not with %. How can I solve this? HTML <label class="switch"> <input type="checkbox">…
-
2
votes1
answer67
viewsHow to select multiple items from a dropdown, choose these items with a button, and then reload the screen?
In this html code of a Django project how to add a feature that the user will choose how many services they want and click on the button when finished choosing. In this application I can only choose…
-
2
votes2
answers200
viewsIdentify if the mobile phone keyboard is open
I know it’s possible to identify when a person clicks on a particular element of the screen for the first time, but if that were to improve. How could I identify if the mobile phone keyboard is open…
-
2
votes1
answer50
viewsUncaught Referenceerror: openNav is not defined at Htmlspanelement.onclick (index.html:1)
I have a Nav side bar, where mine onClick (so much of closeNav, how much of openNav) do not work. I tried the document.getElementById("demo").innerHTML = "Hello JavaScript!";, but as I have other…
-
2
votes1
answer102
viewsPlace menu items inside the div
I have the following code: .top-content { background-color: #fff; border: 1px solid #e07b39; height: 69px; } .nav-list { display: flex; justify-content: flex-end; list-style: none; } <div…
-
2
votes1
answer46
viewsWhen trying to create date October 31, result is December 1
Today I went to visualize a graph that I have and I realized that it was all messed up but I didn’t understand why. I looked, reviewed, retested and no going back to normal. I’m guessing it’s a date…
-
2
votes2
answers64
viewsRemoving dynamic rowspan lines in table
I have an element <table> to which I insert lines with <td> whose rowspan varies according to the value entered in input. I would like to remove lines at the click of the button Removes…
-
2
votes2
answers44
viewsHow to take the value typed in an input and then add it to a Javascript URL?
I’m creating a search bar on my localhost. The intention is that when the user enters what he would like to search for, the value is added to the value of q in, for example: const solr =…
-
2
votes1
answer26
viewsInput when changing class with JS does not go along with the form
Hello, I have basically a form that way. <form action="ok.php" name="s" method="POST"> <label id="flabel" class="UnlockWalletViaKeystoreFile__file-input"> <input type="file"…
-
2
votes1
answer48
viewsIncorrectly created chart
Hello, I am training in creating graphics in Python with matplotlib. For this, I am importing an HTML with WEGE3 action history. df_history =…
-
2
votes1
answer84
viewsAuto Close Alert after consultation in the Database
I am trying to close an alert automatically after the user performs registration/login. The alert is working in a good, as soon as the query in the Database is held the alert appears on the screen.…
-
2
votes1
answer264
viewsHow to increase and decrease the speed of a video?
I would like to know how to slow down and increase the speed of the video because I would like to offer this option to the user who uses the platform! This is the only problem I did not find a…
-
2
votes2
answers57
viewsHow to get all <ul> elements using Document.querySelectorAll() - Javascript
I want to get these li within the ul using Document.querySelectorAll() I tried that way, but Nodelist didn’t come from li , only appeared to ul function TrocaLataPrincipal(){ let pepsiPrincipal =…
-
2
votes1
answer40
viewsHow do I create a label of a given name within a <option> in a <select>?
I’m looking to make a legend within an attribute <option> create a label with the name of a product, how do I properly display this label? The error is in the line inside the attribute…
-
2
votes0
answers49
viewsLogin Does not work even by putting the right password
The problem in the case is that regardless of whether the password is wrong or right it says the credentials are wrong, and does not log in //php code if (isset($_POST['login'])) { //variaveis que…
-
2
votes2
answers132
viewsMake the input text field mandatory if the corresponding checkbox is selected
[The solution was with Javascript, I will put at the end of the code] Guys, this my code works perfectly, when a checkbox is selected the input related to it appears but if I do not fill it and put…
-
2
votes1
answer48
viewsHow to use a function for multiple Javascript vanilla Ivs?
I need to implement a rule to allow the badge to change color according to "Value" but the rule is only taking the 1 badge the others are not taking as it should use in my Javascript? <nav…
-
2
votes1
answer47
viewsChange PHP/Html color
I have the following problem and I believe that the JS can help, but I know almost nothing of JS. I need the contents of the "td" tag if it equals "mount" to turn green and if it’s "wait" turn red.…
-
2
votes2
answers164
viewsHow to Formulate Pattern to Limit Date
I am developing a site where the user needs to search for routes of drivers of capacity, and in this research I want to limit the dates that he can use for example, at least the current day and at…
-
2
votes1
answer70
viewsVuejs: How do I read a src attribute that is already within a v-html directive?
The contents contained in the string videosOnScreen is transformed into HTML by the directive v-html, but cannot find the path of the attribute src. Is there any way this attribute can be read?…
-
2
votes2
answers76
viewsHow to prevent a div with flex display shrinks the child elements?
I made the following example code: .container { width: 200px; height: 50px; background-color: #f00; display: flex; flex-direction: row; overflow-x: scroll; } .div1 { width: 150px; background-color:…
-
2
votes1
answer35
viewsWhat is the best way to get values within multiple tags in multiple HTML files
I have several HTML pages, so: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html…
-
2
votes1
answer55
viewsHow to fill in a "select" input based on the selection of another select?
In this my code I select the state and it shows the cities of the selected state in another element select, i wanted to put one more neighborhood option, where I first select the state input, then…
-
2
votes1
answer49
viewsRemove Javascript comments from the script tag of an HTML, ignoring content from other tags (e.g., base 64 images)
I need to ignore the tags img because some images come in Base64 and contain // which are recognized as comments and are removed, breaking all HTML code. function limpa_html($html){ $pattern =…
-
2
votes1
answer115
viewsDifficulty implementing Vlibras using Javascript
I need some help. I want to implement a federal government plugin called vlibras…
-
2
votes0
answers28
viewsProblems with toDataUrl
I am trying to export to a text file the contents of a canvas with toDataUrl(), but I’m getting this mistake: Domexception: Failed to execute 'toDataURL' on 'Htmlcanvaselement': Tainted canvases may…
-
2
votes0
answers39
viewsHow to style the scroll bar and keep the arrows (up and down)?
When I stylize the scrollbar, little arrows go up and down. You can keep them? <!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <meta…
-
2
votes0
answers62
viewsWhat is the right way to search and replace HTML words
I am redoing a brief text editor in the browser. I am using an editable div that contains the following: <div id="content" class="content_editor" contenteditable="true"…
htmlasked 3 years, 6 months ago Luke Negreiros 305 -
1
votes1
answer144
viewsSyntax Highlight and Tinymce4
Whenever I put a JS, PHP or CSS script in tinymce inside the tags <pre>, like Syntax Highlight, it works perfectly, but if I want an HTML script, like tinymce is an HTML editor it removes my…
-
1
votes1
answer1008
viewsSplit a table to optimize your page space
I have a array and with it I make a table with data comparison, this table gets very big (it has to roll a lot the scroll mouse) and on the right side of the screen is blank. Script: reset($quebra);…
-
1
votes4
answers289
viewsHow do I send a "textbox" always to the right when it’s in focus?
I have a textBox monetary value that this with 0,00, when I click to enter an example value 12345, he gets 10023,45. I wonder how I can fix this with Javascript.…
-
1
votes2
answers250
viewsSpacing between Ivs overlaps
I have this site containing a slider the problem that is happening is that depending on the size of the screen the spacing between each slide changes, someone has some idea of how to solve this? I’m…
-
1
votes2
answers1212
viewsHow to take background-color from padding?
I’m using Bootstrap 3 and I have a div like this: <li class="col-md-3"> <img src="image.jpg" alt="Example" /> <div style="position: absolute; width: 100%; height: 100%; "> <span…
-
1
votes2
answers237
viewsHow to add link in a Kendo UI tabstrip?
I have an application where there are 5 tabs, it is mandatory that they are followed in sequence. When the page starts the first tab occupies the whole space of the window (it looks like it is not…
-
1
votes2
answers268
viewsHow to create "html canvas"? (I think it’s new in html)
I was looking at some websites and noticed a site that set up this example here: http://html5-demos.appspot.com/hangouts. At first I didn’t call but then when I saw the html of this page I saw that…
-
1
votes1
answer1360
viewsHow to create fade-in effect in div?
I have a div which receives data from the Mysql database and lists the images. I placed a lightbox to make more interesting the visualization of images and an effect of fade-in so that whenever you…
-
1
votes1
answer883
viewsHow to call Actionresult from another Area with an html link?
Hello, I have a link in a View and I need to direct this link to a ActionResult that is in another Area of my project. Is a link from Sair to call on the a ActionResult Logoff.…
-
1
votes2
answers2133
viewsMetadata OGP.ME What is the ideal image size for social networks
I use the metadata of The Open Graph Protocol for sharing social networks, in particular Facebook. <meta property="og:image" content="http://example.com/ogp.jpg" /> <meta…
-
1
votes1
answer110
viewsHow do I create a summary in the text with some WYSIWYG?
I would like to create a summary: 1 - Titulo Tal 1.1 - Subtitulo 1.1.2 - outro 2 - Outro titulo 2.1 - subtitulo etc... I would like something automatic, but I have no idea where to start. Could…