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
votes1
answer79
viewsHow to make a Javascript animation with Canvas?
How do you make a small animation in Javascript? I tried to do so but it didn’t work: var tela = document.querySelector('canvas'); var pincel = tela.getContext('2d'); pincel.fillStyle = 'lightgray';…
-
-1
votes2
answers442
viewsHelp with MVC Pick up checkbox value and send to bool variable controller
I’m trying to send the value of checkboxwith id, if the checkbox be it true, will create the column. VIEW <div class="checkbox dadospessoais"> <label> <input class="dadospessoais"…
-
-1
votes2
answers104
viewsProblems to load an IMG inside an IF - JAVASCRIPT
BUG performs only the first condition of IF and loads the photo and ignoring the other conditions and your photos . Another question is also how to stop the code when the user fails to inform the…
-
-1
votes2
answers198
viewsProblems with multiple IF conditions - Javascript
Talk, people. Beauty ? I opened a topic yesterday to try to find a solution, however, ended up ending the topic unintentionally. Well.... My little program has the following function, it takes the…
-
-1
votes1
answer94
viewsButton does not send form and/or run javascript
Come on, guys. So... I’m having trouble making the button that would send a completed form to a spreadsheet in Google Sheets and then reset the fields, the entire application is running on the site…
-
-1
votes1
answer358
viewschange size of Carousel materialize
body{ margin: 0; padding: 0; box-sizing: border-box; } img{width: 100%;} .pagina{widows: 100%; height: 100%; margin-left: auto; margin-bottom: auto;} .topo{width: 100%; height: 100px; border: 5px…
-
-1
votes1
answer66
viewsCustom image in Javascript or jQuery
I made a code in jQuery that when loading an image (input file) I pick a photo and that photo goes to the site of input However the photo does not appear to measure, it is deformed. I do not know…
-
-1
votes1
answer70
viewschange color of page components
Hello I’m looking for a way to do this. I have this code below... and I want a button that changes the colors of the elements in it, type the background color, font color, track background color. It…
-
-1
votes1
answer201
viewsMultiple select saves everything in the bank, how to save only what I chose in select?
I have a select Multiple in my form, what happens is that when I submit the form, it’s saving all Options in the bank, I wanted it to record in the bank only those that I clicked on select Example:…
-
-1
votes1
answer48
viewsonclik events on table do not work
I have a table in a php file with some events onclick that I need to call after the page is loaded. But when I try to click one of the values or button input submit no reaction. follow the code. I…
-
-1
votes1
answer66
viewsRegistration is not being recorded in the bank
Hello, I am creating a login/registration system for a college job, as a basis I am using some internet tutorials. I was able to develop well, but now I’m stuck... My registration form is not…
-
-1
votes1
answer60
viewsChange font with Javascript
I need to change the source of a system, I don’t have access to HTML, only via Google Tagmanager, so I need to change the DOM with JS. I didn’t succeed, what’s the best way to do it? var a =…
-
-1
votes1
answer67
viewsProblem with PHP in the edit form
Guys, I need some help. I’m doing a PHP job, but I can’t edit it through the form or log in. edita-usuario.php / <?php session_start(); include "conexao.php"; $id = $_GET['idusuario']; $sql =…
-
-1
votes2
answers164
viewsHow to get the form data without using Submit?
So I have a question here. I needed to take the data related to a form and send to my Ajax automatically (in a structured way), without pressing any Ubmit button or using an onClick function. I…
-
-1
votes1
answer76
viewsFunction does not return values
I’m beginner in JS and I’m having some problems with the function below. I am unable to return the array with this code. It is only returned when I remove "vet = []" where I empty it (something…
-
-1
votes1
answer24
viewsError displaying value saved in $_SESSION in header
I wonder which part of my code is making a mistake, I’ve swept it and nothing, if I put in the echo $_SESSION['senha'] it displays the password, but if I put the name it displays the value 1.. I…
-
-1
votes1
answer42
viewsI can’t make unsolicited cards disappear
Hello, I have a series of cards that I have already put the respective ids, but when I click on the menu option that I want it just scrolls to the card with the id, but actually I would like all the…
-
-1
votes1
answer38
viewsAngular, Firebase Realtime Database, json image
I have a mobile application that stores the photos in a database and sends them in json format to a Realtime Databse from Firebase. I’m developing a web application with Angular, I can get the data…
-
-1
votes2
answers142
viewsI need to make php only show the last 10 news
<?php session_start(); include "conexao.php"; $sql = "SELECT * FROM noticia ORDER BY id DESC"; $noticia = $conn->query($sql); $conn->close(); ?> <?php include "include/header.php"…
-
-1
votes1
answer26
viewsAngularjs does not find the input
I’m trying to make a form where a field I want has a maximum of 10 characters, but the angle seems to be ignoring the field, for testing I had demonstrate on the screen the value of "$Valid":…
-
-1
votes1
answer35
viewshtml and mysql special characters
People I have video registration system via IFRAME but when I want to show the iframe it is empty because the database converted Original iframe code…
-
-1
votes1
answer234
viewsResize DIV according to menu size
I put html + css code inside a Jsfiddle to help visualize the problem. What I need to do is that the div named "kk" resizes according to the menu size, for example: if the menu is minimized it…
-
-1
votes1
answer439
viewsHTML menu buttons do not work
Good evening guys, I’m making a mini website for the college’s Web Programming Test 1, but there were some problems in it. I made a responsive menu, with dropdown and Collapse for when the screen…
-
-1
votes1
answer54
viewsIncorrect position when using import file
I’d like the numbers on the imported file to show up in the cell phone box, not below, like this one showing up. If anyone can help me with that, I’d appreciate it. That and the test: <!DOCTYPE…
-
-1
votes2
answers85
viewsCheckbox alignment in select optgroup
How do I align as in the image below the checkbox and label? Here is not bobbing right, for better viewing can access: http://jsfiddle.net/8f7aLch6/ Code: $(function() { $('#chkveg').multiselect({…
-
-1
votes3
answers2203
viewsChange value of an Hidden input with jquery
Hello, I would like to change the value of the Hidden input. The input I want to change has id = Type. I want to change as soon as I click on the Type 2 link, I want to change its value to 2. How I…
-
-1
votes1
answer69
viewsHTML is unable to get Javascript output
I’m not managing to generate the number of students approved and flunked after placing grades. Where I went wrong? <!DOCTYPE html> <html lang="en"> <head> <meta…
-
-1
votes2
answers118
viewsHow to open a page (document) when everything is rendered by the browser?
<!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, 4 months ago user162649 -
-1
votes1
answer88
viewsAdd table with AJAX
Good morning I need help in this script. That when selecting an option in select is placed dynamically data in the table. But I don’t know how to return the html tags to the source page. On the…
-
-1
votes1
answer113
viewsJava - Spring 404 - not found
I am developing a Java application with Spring Boot, however, Controller is not able to find HTML, apparently... Page not being found Previsão do tempo <table class="table"> <thead>…
-
-1
votes1
answer23
viewsProblem with select using ng-repeat
I’m mounting a select with the data coming from my base. What happens: Depending on the < option > I select, the field removes all others. Select populated: After selecting some option:…
-
-1
votes1
answer150
viewsSalary form in php
I have problems with my code, fill out the form using the POST method but my php doesn’t print right, I’ve done a desktop test and it worked, but whenever I use the POST method the page does not…
-
-1
votes2
answers814
viewsHow to highlight/highlight words in text?
Searching Google, about highlighting and/or highlighting words in a text I found a code that applies this effect called highlight in the search words. However, when I went to test the code, the…
-
-1
votes1
answer673
viewsHow do I scroll through the Select list
<script> function check(){ var verificaInput = document.querySelector("#cidade").value; var reg = /^[0-9]{4}$/; console.log(reg.exec(verificaInput)) console.log(reg.test(verificaInput)) }…
-
-1
votes2
answers45
viewsShow table data that will be active briefly with disabled attribute and also data that is already active?
I have this code below and working, it publishes the data only when it indicates 1 in the 'Ready' field of the table, and if it is the number 0 the data is not shown. But I wanted that when the…
-
-1
votes1
answer47
viewsWhy is this button not updating in the bank?
Follow here my code below, what happens is the following, when the user logs it to the chat page, when it goes to that page is made an update in the database to status = 1 that status equal to 1 is…
-
-1
votes2
answers726
viewsI cannot set a fixed size for buttons
When adding a letter in value, the button increases to fit and defaces the entire alignment. I know who with tables would be easier and better, but I want to make it work with buttons <!DOCTYPE…
-
-1
votes3
answers66
viewsHow do I create this Button in HTML?
I want to create this button: I’ve tried that: <html> <head> <style> button { background-color: #343A40; } span { background-color: #9A9DA0; width: 50px; display: block;…
-
-1
votes2
answers83
viewsPHP upload files to multiple directories
Oops, all right?! I have the code below to upload files to several directories with years/ months: <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"…
-
-1
votes1
answer186
viewsAutomation in HTML [Python]
Good morning, good afternoon and good evening friends Devs. Just making it clear I’m a beginner -- I have two questions about automation within Python. 1- I want to do an automatic login on a given…
-
-1
votes1
answer72
viewsforeach does not run full, only runs 1 time
good afternoon, anyone has any idea why this foreach does not rotate 3 times, and wheel only 1? $pag = 3; {foreach from=$pag item=pg} <div class="fotos-flex active"> {foreach from=$photos…
-
-1
votes4
answers93
viewsEnable input type="file" when input type="checkbox" == true
I’m having a hard time doing something that apparently should be very simple, I need a file type input to be disabled/invisible until the user marks a checkbox type input that by default will be…
-
-1
votes1
answer155
viewsHow do I allow a checkbox to have at least one "check"?
Hello, I am running the following code that allows you to check a checkbox, the other options of that group are not checked. The problem is that this code allows none of the group options to be…
-
-1
votes1
answer354
viewsDoubt when searching for a foreach id in php
Good evening guys, I’m developing a course completion work code and I have a question. I have a table users and vehicles, use Inner Join in select and then display them using foreach. However, in…
-
-1
votes1
answer69
viewsWhen submitting form, how do I see the result referring to the options chosen?
Hey there, guys! My question is basically this. I have a form, where people put their name, phone, city, product option (property/ car). When clicking submit, I need a screen with a table of values…
-
-1
votes1
answer53
viewsFill <select> in the same file through another <select> from BD data
I have a form where it contains a option select function, powered by the BD query. and On the screen appears only the 1st option select only the second will appear option select after selecting the…
-
-1
votes1
answer59
viewsWordpress Posts in html site
I am trying to put images from my blog that is in Wordpress on my html site My code <?php while (have_posts()): the_post(); ?> <div class="col-md-4 "> <div class="box-blog">…
-
-1
votes2
answers187
viewsPass the value of 2 <select> using jQuery
I have a option select that when selecting an option it goes in BD and returns the value to another option select, works perfectly. index with the option select: <?php require './conexao.php';…
-
-1
votes1
answer47
viewsHow to remove div from the page to appear only in Popover
$('#texto').popover({ html: true, content: function () { return $('#teste').html(); } }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>…
-
-1
votes1
answer89
viewsJs Chart does not work,saying variable has not been declared
Good personal night, when executing the code below it says: "Uncaught Referenceerror: Chart is not defined" I have tried several modes, however that seemed the most logical. I would like help with…