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
-
4
votes2
answers1704
viewsTake PHP variable and display in input
Good afternoon, folks. I am wanting to take the value of the Cpf variable, after it is treated, and display it inside an input. practicing.php <fieldset style="width:50%; margin: 0px auto; ">…
-
4
votes1
answer1426
viewsFind out which image size was inserted by input file
I am creating a system to organize the images of a site, that is, I will store information such as name, extension, size, height, width, ... and I am having difficulties to get the data of height…
-
4
votes1
answer797
viewsPHP function in input text action
It is possible to call a php function inside the action parameter of my form? <!--FILTRO FLUTUANTE --> <div id="mws-themer"> <div id="mws-themer-hide"></div> <div…
-
4
votes2
answers454
viewsHow to sum up all the elements of an ng-repeat?
Example: I have any ng-repeat, which repeats each one a number. How do I store a variable that is equal to the sum of this number of each repeat? Code Angularjs: ngular.module('meumodulo', [])…
-
4
votes2
answers2715
viewsCalculating interest with javascript
I’m having trouble putting together a script, I’m not knowing how to calculate date interaction with javascript, I was thinking of making a screen that calculates interest, but returns the values in…
-
4
votes3
answers1253
viewsJS variable returning Nan
I’m assigning the sum of a column in an HTML table to a JS (sum) variable, but when I print it on the screen I get an Nan, someone knows why? <tr> <td style="background:#c4ffd6;"…
-
4
votes3
answers1776
viewsDeselect radio type input
I have two inputs of the kind radio. Follow the code below: <input type="radio" id="isgift0" name="isgift" value="0" class="arredondado" /> <label for="isgift0">Teste 1</label>…
-
4
votes1
answer296
viewsDynamic graph does not update
I’m using the library Rgraph graphics HTML5, and should update dynamically together with the bank. However, I would like the last data imputed in the bank to be placed on the chart, so if I inserted…
-
4
votes2
answers326
viewsHow to align a mosaic with CSS?
I have the following code: .exemplo { width: 800px; } img { width:100%; height: 100%; } .home-videos { /*@extend .col-md-3;*/ width: 200px; height: 150px; padding: 5px !important; box-sizing:…
-
4
votes1
answer183
viewsDiv height is greater than image height. Why?
I have the following pure HTML, no CSS <div> <img src="_img/_banner/banner1.jpg" /> </div> The image banner1.jpg possesses 300px of height and to div no dimensions have been…
-
4
votes2
answers435
viewsUPDATE PHP com Javascript
I am trying to carry out the UPDATE, but gives the following error: Notice: Undefined index: id in C: wamp www Sitephp base updateFunctioning.php on line 4. Follow my code Function function…
-
4
votes2
answers150
viewsReal-time account for table generated with jQuery
I’m having trouble leaving the quantity * price multiplication in a dynamically created table. Better than explaining, it’s showing. Follow the code in jsfiddle: https://jsfiddle.net/koew1s75/ HTML…
-
4
votes1
answer1457
viewsHow to Capture Span Content by Javascript
On Whatsapp Web, each message sent is stored in a span. I need to assign the value of the last message sent by the caller to a variable, as I do with the contents of the box "Send a message": var…
-
4
votes1
answer2577
viewsOpen html page in modal
I have the following html pages: client record, cadastral and contact record. In my client record I have two Buttons: id="btnCadastroEndereco" and id="btnCadastroContato". When I click on these…
-
4
votes1
answer1221
viewsTake values from a table and place in an HTML graph
I made a database and this is feeding a table. I wonder how it would be to take such table data and plot on a graph. In the code below is already the graph with fictitious values. <! DOCTYPE html…
-
4
votes1
answer229
viewsSpeech Recognition does not recognize special characters
I tried to use result.replace("arroba", "@") javascript to change the word "arroba" to "@" as it is in the code below, but it didn’t work. I want to do this with point, comma, underline, underline…
-
4
votes2
answers504
views -
4
votes2
answers14478
viewsHTML code in the body of the e-mail
I created an HTML code to send information to the company’s clients where I work, when I send the email to the accounts *@hotmail.com or for their professional accounts *empresa.com.br everything is…
-
4
votes1
answer541
viewsI should still save files as . HTM or just as . HTML
Although the two are interpreted equally by the Browser it seems to me that the extension . HTM has fallen into disuse. I still have to save my files as . HTM or should I always choose . HTML? It…
-
4
votes2
answers13707
viewsMask for CPF or CNPJ without using plugins
I managed to make simple mask for telephone fields, zip code, R$, etc. But I wanted a mask to detect and automatically format a field for CPF or CNPJ in the same input, but preferably pure…
-
4
votes3
answers11182
viewsAppend javascript
I have a modal that opens when I click on a link, in this modal I will type an email that when I click on add email, will add the email text in a <ul> <li> below the input. I already…
-
4
votes3
answers797
viewsHow to remove "whitespace-only text Node" that appear in HTML from the DOM
It seems that the HTML by default puts a damn"whitespace-only text node" among the elements of inline level with this I gain a "margin" between the elements that I cannot remove from the DOM I know…
-
4
votes2
answers6239
viewsProblem turning input text into uppercase letters
I have a input and I want it to allow real-time capital letters only. This code apparently works perfectly. $("#texto").on("input", function(){ $(this).val($(this).val().toUpperCase()); }); But I…
-
4
votes1
answer3776
viewsHow to create MASK with pure JS in React
I am transforming a site HTML, CSS and jQuery in React but I saw that the use of jQuery is lagged in React since it is possible to create some components faster and simpler, my doubt is how to…
-
4
votes2
answers555
viewshow to automatically fill in an input?
As the code shows with several textfield, I want to make visible only date, date and KM and from these 3 fill in the others that will be invisible, the amount to be paid will be displayed on an…
-
4
votes1
answer357
viewsSet language in index.php
I’m trying to develop a very simple system, contains 5 different languages, this part works perfectly, the problem is that when I first enter the site, in this case the file is the index.php, it…
-
4
votes1
answer157
viewsProblem generating javascript graph using Spring
I’m implementing Graphics in a web application I’m developing in Spring. I already made my API, it is bringing Json with all the information of my object Cart, however the graphic is not being…
-
4
votes1
answer910
viewsCustom resize of a div
How to customize the resize so that it is possible to resize anywhere at the bottom of the div Example of the stackoverflow: .caixa { background-color: #444; /* margin: 100px auto; */ height: 100px;…
-
4
votes2
answers222
viewsBold "<b>" does not apply in a range
In a table, if I apply bold (<b>) out of cells (<td>), it doesn’t work: <table> <tr> <b> <td>Cell A</td> <td>Cell B</td> <td>Cell…
-
4
votes2
answers278
viewsAdd attribute via CSS if the following element contains x element inside
Hello! I don’t know if I could be very clear with the title of my question. But my question is with the following code: <div id="newsletter" class="col-sm-12"> <div class="news-title">…
-
4
votes1
answer187
viewsWhy does the Edge only move the element Horizontally and not Vertically?
Because the Edge in <span> only moves the element sideways, but vertically the edge is outside the container father? Notice in this example below that when I use the edge on <span> she…
-
4
votes2
answers4076
viewsMouse Cursor - Javascript and CSS
The cursor: pointer is a CSS property that defines the mouse cursor as a "pointer" over a given element. So far all quiet, it is worth mentioning that in Javascript I can also add a mouse cursor on…
-
4
votes3
answers1856
viewsHow do I make the logo disappear when I roll the page?
I am creating a menu with version 4.1.3 of Bootstrap and would like to know how I can do when scrolling the page to soon disappear? In this case, only the menu should be. Obs.: When returning the…
-
4
votes2
answers375
views -
4
votes2
answers673
viewsWith CSS is it possible to fill in the "eyes" of the Font? Is it possible to fill in the "holes" of the letters A, O, P, etc?
I was wanting to create a title to use in the sessions of my site, but wanted the source to have an effect similar to those images, With eyes filled giving the impression that the source has the…
-
4
votes1
answer59
viewsIs there a technique for reporting Javascript errors?
The following is as follows: I use the Laravel Framework and, in it, configure the application so that when any server error occurs, it sends me an email, writes in a log file and/or sends me a…
-
4
votes1
answer496
viewsHow to Inspect an element that only appears when I do Hover on another element?
I have an element that when making a hover in it will appear a pseudo-element elsewhere on the screen, however I would like to inspect this pseudo-element when it is visible on the screen. How do I…
-
4
votes1
answer104
viewsHow to organize photos in multiple frames
I wanted to make this effect of the image below. Here img.fotosC { margin: 5px; } img.fotoLat { width: 17%; } img.fotoCent1 { width: 10%; } img.fotoCent2 { width: 40.5%; } <div…
-
4
votes1
answer159
viewsHow to fix CSS problem with Letter-Spacing and right-aligned text?
I and have a situation in which I have a container with two lines of text inside aligned to the right. Only that one of the lines is with the property letter-spacing: 15px; Increase the spacing…
-
4
votes3
answers1163
viewsHow to separate HTML from PHP
I read in several places that you should not mix PHP with HTML and vice versa, How then could I separate this code for example: <?php include 'C:\xampp\htdocs\trabweb\sessaoBD.php' ?>…
-
4
votes1
answer358
viewsBy Divs next to bootstrap
I have 5 Ivs, I want them aligned in the same line... But the center div is not aligned... <section class="content"> <div class="row"> <div class=" col-xs-2 "> <a href="#"…
-
4
votes1
answer336
viewsWhat’s new between HTML5.2 and HTML5?
According to Wikipedia on topic HTML, note the following table of versions of HTML and their respective years: Entering the HTML5 topic on the same site, it just says: This new version brings with…
-
4
votes1
answer260
viewsValidate fields in a form made with jQuery-Steps
The form has two Steps, I was able to validate the first step using the onStepChanging. But in the second step where there are fields that need to be validated, the user action becomes Submit, which…
-
4
votes1
answer46
viewsError mounting HTML table with jQuery
I need to create this screen: The problem is that the code I made generates 9 columns in a row instead of generating 3 columns per row: That is the code: @{ ViewBag.Title = "Home Page"; } <div…
-
4
votes2
answers123
viewsWhy doesn’t my class apply the style I set to the "H1" tag?
I did an example of CSS code to learn a little bit more about the use of classes. However, I realized a mistake and I can’t quite understand why. 1° example .fonte-style-h1 { vertical-align: middle;…
-
4
votes2
answers1563
viewsIn HTML and CSS should I use Single Quotes or Double Quotes? Is there any recommendation?
I recently noticed that the text editor that I use gives me an "alert" if I use simple quotes ' ' in HTML. Below are two examples, one using Simple Quotes in the body of the document in…
-
4
votes2
answers1399
viewsIs there a difference between flex-Basis, flex-Grow and width? What is the recommendation for using them in a Flex container?
I have a technical question about using the property flex-basis, flex-grow and width. Note that in the image below I got the same result using the 3 properties. Then I was in doubt, if the 3…
-
4
votes1
answer878
viewsContact Form does not send a message - UOL Host
The form even picks up the data after clicking on Ubmit, sends the user to a thank you page but the message does not reach the destination, which is my email. HTML: <section id="contato">…
-
4
votes2
answers60
viewsArray of checkbox elements
Test scenario Dynamic form: function addReg(){ const template = $('#formX > div').last(); const novo = template.clone(); $(template).find('select').each(function(i) {…
-
4
votes2
answers192
viewsAdd and Remove Field through Checkbox
I have a form where I select colors for the page, and in it there is a checkbox with the option of usar padrão do site, the moment I click on this checkbox it removes the field, but when I uncheck…