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
answer213
viewsJavascript: when it’s midnight add +1 on date
My date when it arrives midnight continues the day before, I wanted it to be for the next day (current). For example: At 23:50 on the 6th, he shows Saturday, 6 October 2018, 00:00 Since midnight is…
-
-1
votes1
answer67
viewsUncaught Error - Sending email using nodemailer and Angularjs
I have been racking my brain for some time trying to create a contact page where the user can send an email. I’m new to Ode, and that’s why I’ve been through some trouble. At the moment I can’t get…
-
-1
votes1
answer63
viewsError Function to return Alert
I have a function that if she returns 1 appears a alert: form was successfully sent If you return 0, appears a alert: error sending your form. When I leave the form blank the expected behavior would…
-
-1
votes1
answer133
views -
-1
votes2
answers138
viewsSend only the data of the fields completed by e-mail using PHP
I have an HTML form, and I’m using a PHP code to send the data via email. However, I would like to send by e-mail only the data of the fields filled, and their respective names. Example: [ ] Nuggets…
-
-1
votes2
answers2531
viewsbutton to show/hide div
I have a div I’d like to hide and display through a button. However when I click on this button, instead of hiding/displaying the div, the form is sent. See the code snippet below: <form…
-
-1
votes2
answers954
viewsHow to load a page into a div with Angular
Talk to the guys!! I have a huge question and I can’t solve it. I’m developing a TCC application for my Angular College. I have a menu and within this menu there are options to browse the site, but…
-
-1
votes1
answer45
viewsFind other select results
Good morning guys! I have a code where I search the registers around the city. Code below: <form name="frmBusca" method="post" class="w3-container w3-center w3-row-padding" action="<?php echo…
-
-1
votes1
answer193
viewsSearch data with JSON
I need, through a <select> </select>, bring the data to some input[type='text']. I believe it is through JSON and AJAX, because the page can not have any "Submit". For example: I have a…
-
-1
votes1
answer169
viewsHow do I pass two variables to the onclick parameter?
if I put only one variable works, but I also need to pass $city to the onclick, but I don’t know how to concatenate in the right way. (deleteVaga function) while($registros =…
-
-1
votes1
answer29
viewsLines in export excel
I am exporting a listing to excel, but when I open excel it comes without the partitions. <?php require_once '../../classes/xajax.inc.php'; $db = new SqlSrv(); //$sql = "SELECT * FROM cad_pessoas…
-
-1
votes1
answer1841
viewsContent written on a responsive button
I have a bootstrap Collapse which is the following already modified code. <div class="card"> <div class="card-header" id="headingOne"> <h5 class="mb-0"> <button class="btn…
-
-1
votes1
answer653
viewsInsert into two separate tables
I have two tables (cliente and telefone), I need to insert the name in the table cliente and the customer’s phone in the table telefone, at the same time, by the same form. In the HTML form I…
-
-1
votes1
answer379
viewsSave contents of a Textarea to a file . txt and display them again when updating the page
I’m finishing a HTML to assist me in the tasks of my service, in one of the sessions, I intend to make several "Quick Note Blocks", where I enter a short text and this will be saved in a file txt.…
-
-1
votes1
answer110
viewsWhat part of my zoom div is possible?
Suppose I have a div de com overflox: Hidden; and put a background image in another div, which is inside her. the image occupies the entire background of the div, but I want the image when it is…
-
-1
votes2
answers663
viewsHow to send php variables to the html page?
I’m creating a testing page to see if I can use, learn and then pass this on to a larger project. My problem is this: create the submission form in HTML, do the BD search with PHP, but I can’t…
-
-1
votes1
answer63
viewsmove the container without appearing scrool
good morning, I’m having a problem when I move a div in mine, I make her walk 50% the size of the screen, until then everything ok, more when she goes to the side opens the scroll option to see me…
-
-1
votes1
answer91
viewsNull input via keyboard in a variable receipt via Javascript
Good night! In my practical Javascript experiences, I tried to create a condition to alert the user about a variable he missed by pressing the key enter twice. However, in trying to solve this…
-
-1
votes1
answer76
viewsWhen trying to link a NAV, the CSS style gets messy
Good morning guys, I’m starting to learn front-end and I came across a problem I’d like to understand why it happens. I’ve got that bit in my code: <div class="box-item"> <div…
-
-1
votes2
answers66
viewsPut clock in a <TD>
I’m picking to put a clock inside a tag I have this code for the function of the clock I picked up on the Internet function startTime() { var today = new Date(); var h = today.getHours(); var m =…
-
-1
votes1
answer73
viewsRadio change input value Time
I’m trying to get the selected radio to change the default value of an input time I checked that with javascript or jquery I can but I can’t do it the way I need to. I have 3 Radio and 1 input time.…
-
-1
votes1
answer104
viewsHow to close the bootstrap modal?
I need to close one modal by clicking on submit. He registers objects via Javascript and therefore does not refresh on the page. So far so good. The problem is that the modal doesn’t close... I did:…
-
-1
votes1
answer317
viewsUpload images "on demand"
On the site I’m developing has a "gallery carrosel" which is nothing more than a slider, where only an image will appear and has arrows for the user to navigate (passes alone the house 5s also)...…
-
-1
votes1
answer55
viewsHow to format specific links?
The way I learned, is that I apply the style to all links, I wanted to know how I could do it, here are two Divs I wanted to apply the styles only in the first div with the id="links1" Html…
-
-1
votes1
answer86
viewsModal window only opens and does not close
I have a modal window inside of a div, when passing the mouse on top, I make the div change color and opens a modal window with photo, the problem is that this modal window just opens, and just…
-
-1
votes1
answer1755
viewsAdd months to a javascript date
I own a field that receives a date, from that date it should add up to 1 month //Funcao das datas function addData() { //Pegar data Atual para somar var currentDate = new Date(); //pegar data atual…
-
-1
votes1
answer271
viewsHow do I change to required input using Angular Material?
How can I set as mandatory fields to fill after set choice in the radio as fixed: Code html <span> <label>Atividade Fixa: </label> <mat-radio-group name="atividade_fixa">…
-
-1
votes2
answers147
viewsExchange images for text when Navbar expands (and vice versa)
I have a problem. It’s a responsive menu that expands. The menu elements are images of buttons, which glow when the mouse passes over. I did this using JS and Bootstrap. So far, so good. The problem…
-
-1
votes1
answer1716
viewsCalculation of percentage javascript
I am developing a project and need to calculate the percentage of spread (profit on sale) example: (1 Eth): 107.178552387 which in case is $107.18 with a 5% spread (ie 5% profit on top of the total…
-
-1
votes1
answer52
viewsWhy does my example not match the Bootstrap documentation
I’m trying to learn Scrollspy in Bootstrap, but I’m having trouble copying the same code from the documentation but I didn’t get the same result as the scrollbar, which I missed. <!doctype…
htmlasked 5 years, 12 months ago rafael marques 939 -
-1
votes1
answer74
viewsI am doing an image insertion with jquery ajax and php but the move_uploaded_file is not working it does not send anything
HTML <form id="formImage" enctype="multipart/form-data"> <div class="corpo"> <div class="foto"> <h5 class="white-text title">Escolha sua foto de perfil</h5> <br>…
-
-1
votes1
answer582
viewsEnable form fields with JS with Radio Button
I’m starting with Javascript and have a little problem. I have an HTML form where I have a field radio where I have two options, Texto and Página. When I click on the option Texto he carries a field…
-
-1
votes1
answer54
viewsRestrict my form to receive only . doc, . docx and . pdg files
I have a page and a form that receives a file in the "File" field. I send this file to the server through a PHP code. I would like to restrict that this form "File" field only receives files of type…
-
-1
votes1
answer170
viewsNav element alignment and float/position questions
Good night. I’m creating a Nav that contains an H1 on the left as logo and a ul on the right and I need to align the two to the center vertically, I’ve tried everything I know and it’s no use. Then…
-
-1
votes1
answer35
viewsCheck the registration field
Is there any way to force in my registration form only use gmail? if(filter_var($post_email, FILTER_VALIDATE_EMAIL)){ if(strlen($post_password) >= 8){ if(!preg_match('/[\'^£$%&*()}{…
-
-1
votes1
answer161
viewsJSP and return java age
How to calculate age, I don’t know how to do in JSP and how to calculate with Java class method Java age. import java.text.ParseException; import java.text.SimpleDateFormat; import…
-
-1
votes1
answer82
viewsForm PHP, how to redirect with the data filled?
I have a question, and I will explain. I’m finishing up a website of an examination clinic, only that there is not possible to schedule tests, having to redirect to another site. On my site there is…
-
-1
votes3
answers45
viewsI can’t access the value
Well, I’m doing a project to calculate IMC, with html, css (bootstrap) and javascript. The problem is that I can’t access the values that users type in the input, whenever I give an "Alert" appears…
-
-1
votes1
answer57
viewsToggle elements inside elements with jQuery
I want to learn a way to toggle on a list within a list in a very efficient way in jQuery. The way I tried doesn’t work because when firing the toggle at one, everyone is affected. It would be too…
-
-1
votes2
answers225
viewsKeep while information in variable
I have a code where you have a while within another, to be able to list products within the shopping cart divided by stores. Logo, to see listed the products, as in image 1. As in the picture above,…
-
-1
votes1
answer591
viewswysiwyg editor, how to pull the contents of the textarea and insert into the mysql database with php
I tried to pull the information contained in the textarea, ie the wysiwyg editor, with the text properly formatted and then include in the mysql database, what occurs at the moment is that it only…
-
-1
votes2
answers48
viewsHow do you make a left DIV the same height as a large right DIV?
I have a page of type one-page with 3 columns. The central column has the content of the site. And the right and left columns need to repeat an image vertically throughout the page height. <body…
-
-1
votes1
answer41
viewsHow to leave an image placed by responsive css.?
Hello guys I have a little problem here, it’s as follows... I made the footer of the site all right, with 100% fluid width but I started doing the desktop version and the background img that I put…
-
-1
votes1
answer537
viewsResize input size inside table
Test scenario I have a table within a form, because I need to make a form aligning rows and columns to the inputs. Example: <table class="table table-bordered" style="font-size: 0.8rem">…
-
-1
votes2
answers33
viewsHow do I change the title of the browser tab repeatedly?
<html lang="pt-br"> <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet"> <script…
-
-1
votes1
answer361
viewsgoogle ads conversion code
Good afternoon to all!! All right? i created a google ads conversion tag, which should be triggered by clicking on the Whatsapp link on my site, but I’m not able to install correctly on the trigger,…
-
-1
votes1
answer574
viewsPass the html input value parameter with php
Good night How do I pass html input parameter and send by parameter to receive in php. When submitting if the field is empty then it has to call the function identifies which field. Follow the code…
-
-1
votes2
answers223
viewsData insertion error : String data, right truncated: 1406
I am trying to save Checklist data from protocol, but the following error is occurring at the time of saving: The expectation is that this happens: In the description of the error it says that the…
-
-1
votes2
answers945
viewsHow to place images next to each other in columns?
I want to leave the images right next to each other with the same size of margins and columns etc. How do I? .w3grayscale { margin-bottom: 120px; width: 200px; margin: 10px; position: relative;…
-
-1
votes2
answers44
viewsSave date and time of start of task with button and insert in mysql
I have the following form that correctly inserts in the database by clicking the button: $("#form").submit(function(e){ $.ajax({ type: "POST", url: "./conexaoteste", data: $("#form").serialize(), //…