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
answers40
viewsRegistration error with php photo
I’m trying to make a register of works, and uploaded image done path. if (isset($_POST['enviar'])){ //cria as variaveis, uma para cada input $nome = isset($_POST['nome']) ? $_POST['nome']: null;…
-
1
votes2
answers645
viewsHow to center Brand logo on Bootstrap 4 and leave menu items below?
I am carrying out a project and I am having difficulty centralizing the logo and leave the menu items below, so that everything is part of the navbar and that when the break for mobile tablet…
-
1
votes1
answer172
viewsProblems in bootstrap responsiveness in inputs, Labels and selects
I’m having trouble solving a simple responsiveness problem using bootstrap 4. My wish is when resize to celuar, the inputs, selects and Labels are superimposed and occupying all available width. As…
-
1
votes1
answer341
viewsHow to place an image inside the SVG?
Eae Personal, I’m having a difficulty, I’m wanting to put an image inside my svg but I can’t, someone could help me ? Follows my code: <svg version="1.0" xmlns="http://www.w3.org/2000/svg"…
-
1
votes1
answer273
viewsBootstrap menu button color does not appear
The button works normally when pressing and on certain screens only it does not appear the color of it, htm: <head> <meta charset="UTF-8"> <meta name="viewport" content="width=,…
-
1
votes1
answer327
viewsUsing Awesome font in an SVG
I’m trying to put an icon font awesome within my SVG. I am based on this tutorial: http://tutorials.jenkov.com/svg/svg-icons.html I am doing as follows, but the icon is appearing outside of Circle.…
-
1
votes2
answers208
viewsValue Textarea does not work React
Hello, I am trying to "popular" a textarea with a value, but when I try to edit the field and it does not allow. I tried using the property "defaultValue" but the field is empty. It follows parts of…
-
1
votes1
answer42
viewsPHP variable does not update chat in JS
I have the following code : // Set new default font family and font color to mimic Bootstrap's default styling Chart.defaults.global.defaultFontFamily = 'Nunito',…
-
1
votes1
answer264
viewsImpose ! inline CSS attribute
I have a big problem to solve here and even though I think there is no solution I want help, I will not be seeing the problem as a whole... I have the following code on a page: .elemento { width:…
-
1
votes1
answer521
viewsCreate dynamic html through javascript
I am developing a system (for study) and I came across a situation and thought about the different possibilities of doing it. On my website, when clicking the "Create Box" button a div with images,…
-
1
votes2
answers442
viewsTurns a field into the required form when select Yes
I have a field in my PHP form where I ask if the user has a phone at home. It is a select with YES and NO. If YES the following field must be required to be completed, if NO, the field will not be…
-
1
votes1
answer103
viewsHow to assign jQuery value to a textarea
I have a plan form, and I would like that by clicking acquire, it already fill out a brief message on the form. I’m trying this way, but it doesn’t return values window.onload = function (){ var…
-
1
votes1
answer106
viewsinput datetime does not show calendar
I got my input datetime in this way: <li> <label for="DataQueda">Data/Hora Registo</label> <input type="datetime" class="form-control" id="DataQueda" name="DataQueda"…
-
1
votes0
answers342
viewsUncaught Referenceerror: alerta is not defined
Hello, I have an undefined function problem in a code snippet. I’m using Django, but when I try to call a function occurs the undefined function error index.html {% if valueStatus == 0 %}…
-
1
votes1
answer308
viewsHow to add a LI to a UL via Javascript?
I’m looking to add a LI between two LI’s of a UL. I don’t have access to the CSS/HTML code of the website template, if it would not create easily, so I’m thinking about adding via html and…
-
1
votes1
answer537
viewsOnclick() event to change the text of a button (play / pause)
I have this div in my html and wanted to make the click on the play button change the text to pause and when clicking again switch to play. var buttonControl = document.querySelector('#control');…
-
1
votes2
answers622
viewsPosition 2 buttons side by side of an input
I need to make a button like this for my site but I’m not getting? How to do this in html and css and bootstrap? I even tried to do it like this, but it doesn’t work. <div class="btn-group…
-
1
votes1
answer300
viewsLine below the text
I am trying to put a line under the title H3, only respecting the line size of 100px and according as justified on the left or right. In this way: or However, when the screen resolution decreases…
-
1
votes1
answer188
viewsGET error in image URL 403 (FORBIDDEN) when trying to change img tag src
I have an input form where I get the link of an image and then a button where it has a function that stores the URL in a variable so that I can dynamically change the image being shown in the img…
-
1
votes2
answers66
viewsEvent with onclick
I am styling an input/search field using the onclick of javascript, I can do 50% but the rest I’m cracking my head and I don’t know what to do. I was able to make the text input box to make the…
-
1
votes2
answers887
viewsAlign items in css grid
Hello, I’m having difficulties to align items inside a cell created by the display: grid. for example: In this example above I can simplify my difficulty. If we remove the "text-align: center;" the…
-
1
votes1
answer51
viewsInput field does not align with others
For some reason I have not yet discovered the field "Civil State" is not aligned to the field "Availability on Saturday". I’m not using CSS in this file as it’s just an outline of the final version.…
-
1
votes1
answer23
viewsTag overlay in css
Css /*O container envolve todos os elementos visiveis da pagina, OS container SAO IDS*/ #container { padding: 20px; border: 1px solid #000; background: #CCC; } /*Define os estilos da caixa…
-
1
votes0
answers32
viewsUse variable value as JS parameter
I was doing some tests to train JS with HTML. Then I made a newsletter system, where a newsletter Object has the notes of some subjects, and by a select chose the subject and which bimonth wanted:…
-
1
votes1
answer62
viewsJavascript-based async, promise, and await functions to control the time a popup is open
I have the following problem: I have to display a popup to wait for the registration of a password by the user. I did so: <div id="modalSenha" style="display: none;"> <!-- Modal content…
-
1
votes1
answer98
viewsInsert Database items into Tbody of an HTML table using a repeat loop
Good morning, I’m doing the product listing of a database on a Html + PHP page, with the code I developed, using a While that runs until the database table still has lines, I can already get the…
-
1
votes0
answers74
viewsHow to disable an input field after ticking a checkbox?
Hello, folks, I would like to know how to enable / disable an input field after user select an option in a checkbox? My form has a question and if the user selects the "No" checkbox, I would like to…
-
1
votes1
answer37
viewsReplace Content Collapse
Hello! I’m having a hard time getting the contents replaced by pressing the Collapse button. When I click the content that is already activated continues on the page and what I activated appears…
-
1
votes2
answers256
viewsHow to get checkbox value unchecked using JS?
Hello, folks, please, I have the following checkbox: <ul class="nav"> <li> <div> <label>Motivo de não informar o nome da mãe</label> <br/> <input…
-
1
votes2
answers416
viewsDownload video tag
I need to have a video download button, I have no idea how I can do this. <video id="videoDownloadLink" style="max-height:320px;" width="100%" controls> <source src="<?=$video?>"…
-
1
votes1
answer32
viewsDisable multine field with Jquery in Sharepoint
I am performing a Jquery script to disable certain fields of a page in Sharepoint, the fields of a row I have identified of a line are inputs and the multilines seem to be Divs. Note that the input…
-
1
votes1
answer385
viewsHow to remove property inherited by the component?
When placing a side navigation icon, I noticed that a piece of it "leaked" out of the expected, which made it behave visually strange in the animation. I put a background-color: red for easy…
-
1
votes2
answers67
viewsSpacing in table
Good morning, everyone! All right? I have a little problem on my table I want to make a table in this model here I did it this way here, what’s the problem? When it’s in the mobile version, the…
-
1
votes1
answer660
viewsOpen modal after form Ubmit
Good afternoon, I am developing a login system, that if the user enters the password or incorrect email, appears in a modal window that the data does not match the typed, but when the password or…
-
1
votes1
answer79
viewsDoes it make any sense to use subtitles on an audio?
Well, obviously a caption is used in a video or in a game so that the text can accompany the image as it has some dialogue or translation, etc. Maybe I’m wrong, but in my head it doesn’t make sense…
htmlasked 5 years, 6 months ago user168020 -
1
votes1
answer69
viewsWhy is the draggable attribute with the false value not working?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta…
htmlasked 5 years, 6 months ago user168020 -
1
votes1
answer66
viewsCheck an option when selecting an option from another select Javascript
Hello, I have first select option: <select name="auto" id="auto"> <option value="">S/N</option> <option value="S">Sim</option> <option…
-
1
votes0
answers38
viewsReturn a JSON table using Element creation (I cannot use Jquery)
Instead of returning the table in html, return in JSON and mount the table using the element creation (Document.createelement) and insertion and removal features of the DOM tree. I need a help with…
-
1
votes1
answer225
viewsHow do I leave an option like "default" on a combobox?
I have a combobox with several "values". I will "fail" values, just for example. Combobox: <ul class="nav"> <li> <div> <label>Tipo de Nacionalidade</label> <select…
-
1
votes1
answer135
viewsHow to check IF in Javascript with id html
How do I compare the selected value in the html select to the javascript if to update my chart? Because the way it is, 2019 is subscribing to 2018 <!DOCTYPE html> <html> <head>…
-
1
votes1
answer92
viewsHow do I open the body width of the modal-Fill-in using css
I am not being able to open the body width of the modal using css, because it is too narrow and the buttons are in a column (on each other). Someone knows me how to do? <div class="modal fade…
-
1
votes2
answers47
viewsHow to make a text be edited only once in Javascript/Html
function saveImg() { let out = []; const imgData = canvas.toDataURL(); const fav = document.getElementById("favourites"); out.push(`<div>`); out.push(`<img src= ${imgData} height = "200"…
-
1
votes0
answers19
viewsTake user information and check if domain is available
I want to make a code where it checks the user’s information and sees if the domain exists. However, it returns absolutely nothing. HTML: <form action="teste.php" method="POST"…
-
1
votes1
answer72
viewsupdate does not work after ajax request
good personal evening I am creating a system and in it I make a dynamic request with ajax to fetch names of customers I have a link that opens a modal with the information to give update ,as when I…
-
1
votes1
answer107
viewsRemove edge of Owl-Carousel button
Good afternoon guys, I’m having a problem removing the edge of the side navigation buttons using Owl-Carousel, I found some solutions but none worked in my code. I’ll put down the link to one of…
-
1
votes1
answer2442
viewsAccept cookie button
Although searching about it I still could not solve. I created an acceptance term of cookie that appears in the Home on top of the header. The button when clicking it is closed normally, however,…
-
1
votes1
answer82
viewsIs there any way to create a gradient effect on a "fa-Circle" from Font Awesome?
I have that code: <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css" rel="stylesheet"/> <li id="link-instagram" class="list-inline-item"> <a…
-
1
votes0
answers39
viewsStyle input[type=checkbox] containing only part of input id
I have a style in CSS like this: input[type="checkbox"] { box-shadow:none; background-color: #f5f5f5; } I wanted to put in a checkbox who has a id special: <input type='checkbox' id='check_" +…
-
1
votes0
answers107
viewsClipboard.js used inside Bootstrap Popover does not copy content
I am using a Bootstrap Popover with the contents in a div and a button to copy, when I click the button I cannot copy the contents of this div. I tested out the Popover the Clipboard.js and it…
-
1
votes1
answer46
viewsHow do I change the color of the chart’s input values?
I need to change the color of this tile to white however, I have not found a way to change these values. Here is my html code: <!DOCTYPE html> <html lang="en"> <head> <meta…