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
votes2
answers8380
viewsHow do I limit the amount of characters in a textarea and input using CSS
Good afternoon. I’m doing an activity in college where I need to limit a text field to 100 characters, but I have to use only CSS for this. I’ve tried these two ways: Example 1: .es1[type="text"]{…
-
2
votes1
answer377
viewsHow to access data from a dynamic imput of a form with Django?
I am participating in a project in which we are using Django. I created a form with two initial fields and can add more dynamically using javascript. <div class="form-group"> <div…
-
2
votes1
answer68
viewsHow do a button process the same Function more than once?
I’m making a Pomodoro Clock, consists of a clock that is a countdown of 25 minutes, after that 25 minutes has a Short Break, which is a 5 minute break for rest. My HTML5 code has two buttons that…
-
2
votes1
answer71
viewsRegulation of svg
I’m looking for new effects to improve my portfolio. I really liked that effect, but there’s one mistake I couldn’t adjust. Height cuts when you do the Hover. After a lot of searching, I was able to…
-
2
votes3
answers1136
viewsload content after an element
I am trying to make a function to load a content with .load() of jQuery, the .load() receives a parameter param which would be the archive address. And I’d like that html was loaded after a specific…
-
2
votes2
answers727
viewsSquare root and cube number in a table
I am learning PHP and I have a job where I have to do the square root and cube of the numbers from 1 to 10, displaying in a table with PHP. I’ve managed to put the square root of the numbers 1 to 10…
-
2
votes1
answer41
viewsCSS :Nth-Child(Even) - Problems
Hello. I am developing a program and on one page I had to use "col" to make a layout similar to "Tables". I can’t use "Tables" because the line needs to expand downward when you click a certain…
-
2
votes1
answer1363
viewssend form without refreshing page
Well I’m assembling the code in jquery that will send the form, it is working. However I have some questions and I do not know how to solve. 1º - To avoid that I have to do a very repetitive…
-
2
votes2
answers412
viewsHow to store variables within the browser cache? (JS)
I am making a form and I want to store the data that the client enters in the browser cache, in case the tab is closed the client does not need to type everything again. What is the best means to…
-
2
votes2
answers62
viewsName not printing
What I wanted was to get the name of the person shows with Alert but I’m not getting My html code var nome = document.getElementById('id1').value; function clique(){ alert(nome); } <input…
-
2
votes3
answers873
viewsKey modal Event
Can you call a Vue bootstrap modal using a keyevent in VUEJS?? I don’t want any kind of button on the screen or inputs, I want to know if I can call the modal just by pressing a specific key. Such…
-
2
votes2
answers2299
viewsMake all LI to the height of the largest using CSS
I have some elements <li> that I guide to stay inline-block. However, as the content of each <li> it’s different, they end up getting DIFFERENT HEIGHT. Kind of like this: However, the…
-
2
votes6
answers4771
viewsHow to use Materialize side-Nav?
Good morning, I’m trying to make a responsive menu for my portfolio, I’m using the do materialize but when I put it fixed the side-Nav of the mobile version Uga, it gets all dark and not to click on…
-
2
votes2
answers434
viewsHow to know if a person has visited a page in the last 2 days
I have an idea, to show advertising only to those who have visited the site before, and another ad for those who have never visited before. (LAST 2 DAYS) SOMETHING LIKE THAT: <?php if ($visitou =…
-
2
votes2
answers209
viewsWhen triggering an event in an array element (with querySelectAll) trigger only one element of another array (also with querySelectAll)
In the code that follows below, I would like to pass and remove the mouse (mouseover and mouseout) about a li, the change was made only in the item corresponding to that li, in the case, the tags a…
-
2
votes2
answers225
viewsLoading in css does not work in IE11 and Edge
Well I’m mounting a css loading, but it’s not working on IE11 and Edge. Follows the code: .loading { background-color: #EEF2F5; position: fixed; left: 0px; width: 100%; height: 100%; z-index: 1000;…
-
2
votes2
answers3529
viewsHow to make the text adapt to the size of the div?
I have a div that has the dimensions widht and height 100% of the screen size. Inside, I have a text encapsulated in p. How do I define the font-size so that it gets the same ratio on different…
-
2
votes1
answer44
viewsPrevent indexing of page clippings
If you cut a page separating the head,nav, etc... and pull everything with include in the index.php, Google will index these cut pages? I want to separate some parts by creating head.php and…
-
2
votes1
answer4477
viewsHow do I put the div at the top of the page by tapping right at the top
Well, I have the following code: <style> body{ background-image: url("imagens/fundo.png"); background-repeat: no-repeat; background-size: cover; } .logo{ margin-left:10%; } .linha1{…
-
2
votes1
answer271
viewsContrary to appendHTML - how to do?
I have a label in the form of my website adding to a div (in the case of the example, the id of that div is grupoExt) an HTML content. Here is the code: var numeroFE = 2;…
-
2
votes2
answers67
viewsCan you declare a variable in Javascript so that it always has 2 decimal places?
The idea is not to have to convert the result to two decimal places every time. Example: var preco = 10.00 To show these decimal places, I have to put like this: $("#preco").html("R$ " +…
-
2
votes2
answers164
viewsSearch field with rounded edge
I’d like to make a input adjacent to a button with a rounded edge that fits together as follows: Is there any way to do this with CSS pure, preferably without using the search field above the…
-
2
votes2
answers571
viewsHow to make Bootstrap Grid stay with 2 rows in Mobile
I would like to leave the same as the print below.. I do not know if it has as this I saw in an application, I want to know if it is possible to do with bootstrap. because I tried to put the…
-
2
votes2
answers678
viewsHow does this < base > HTML tag work?
hi would like to know how and what works this < base > HTML5 tag ?
-
2
votes2
answers28
viewsSeleção Elementos
I have the following structure below HTML,. <tr> <td class="descricao">Texto01</td> <td class="btn-l"><button type="button">Leitura Confirmada</button></td>…
-
2
votes1
answer1454
viewsHow to put javascript variable value in CSS?
I have on the style page (css) of the site a code to make an animation, but the animation time should vary according to a variable that is in javascript, how do I make the value of this variable…
-
2
votes1
answer27
viewsI cannot select the dynamically created radiobuttons
I’m having a hard time manipulating radiobutton components created dynamically by clicking the button, but it’s presenting a small problem, when I click on the generated radiobutton, the selected…
-
2
votes1
answer527
viewsHow do select in postgres from an html field and use the return to fill in the other fields?
Basically I have no experience with html, php or javascrip and I’m trying to turn myself into what you ask me here. The problem is this: I have to make a registration page where the user selects a…
-
2
votes1
answer486
viewsCompare values of 2 arrays with PHP
Dear colleagues, I have the following situation: BD 01 ID | DESCRICAO | DRADS 1 | REGISTRO1 | 1,2,3 2 | REGISTRO2 | 1 BD 02 ID | DESCRICAO | DRADS 1 | REGISTRO1 | 1,2 2 | REGISTRO2 | 1 And I need to…
-
2
votes1
answer1283
viewsHow to put mascara in the form input field that is in a modal bootstrap window
Guys, I’m using jquery Mask at head <script type="text/javascript"> $( document ).ready(function() { $("#celular1").mask("(00) 00000-0000"); }); }); </script> I am connected with jquery…
-
2
votes2
answers1211
viewsCaption with CSS mouseover
Guys, I got a thumbnail of bootstrap, I implemented within it a div caption, which should appear with the mouse on top. Only it is bursting the size of the div father, who in this case is the…
-
2
votes2
answers111
viewsReposition the side menu to floating when decreasing window
Good afternoon. I’ve been doing a lot of Google, American stackoverflow and here, but I couldn’t find what I needed. If I found something like this maybe I haven’t identified that it might suit me.…
-
2
votes3
answers15114
viewsHow to change the color of only one word in a paragraph?
For example, in a paragraph: <p id="paragrafo"> Bla bla bla banana uva morango bla bla bla </p> How would I change the color of just the word "grape," for example?…
-
2
votes1
answer69
viewsEnable Jquery function when x characters
Very good day! I have a form with only one input: <input type="number" name="codigo" class="form-control" style="margin-left: 2%" autofocus id='codigo'> And I need that when the input reaches…
-
2
votes1
answer161
viewsSize of div with scrollbar in menu
.sidebar { -moz-transition: all 0.5s; -o-transition: all 0.5s; -webkit-transition: all 0.5s; transition: all 0.5s; font-family: "Roboto", sans-serif; background: rgba(0, 0, 0, 0.78); width: 250px;…
-
2
votes1
answer1348
viewsHow to put the scroll of an element to the left
Usually when you use overflow-y: scroll or overflow-y:auto, the scrollbar appears to the right of the element. .scroll-me{ height: 80px; width: 200px; overflow-y: auto; overflow-x: hidden;…
-
2
votes2
answers85
viewsModal box centered on the screen, with dynamic and limited width and height
I’m creating a Modal box which will in the future receive data from a request ajax. To this end, I follow the following premises:: It shall be in the centre of the belt (horizontally and…
-
2
votes1
answer753
viewsResponsive card
I’m trying to create responsive cards, I lined up the card elements using % but when I change the page ratio the elements are misaligned. standard page size reduced-screen html <section…
-
2
votes2
answers1584
viewsWhat are http-equiv="Pragma" and http-equiv="Cache-Control" goals for?
I am using the W3C validator in an old project and it identified some errors in the following goals: <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta…
-
2
votes2
answers730
viewsScroll bar after using 100vh
I set a height to leave the part of header covering the entire screen. I used 100vh at the time and 100vw width, however when I added content below the header appeared the axle scroll bar x…
-
2
votes1
answer140
viewsRedirect Problems with . HTACCESS
I am developing my site and it is in great condition, however I have a small problem in the matter of redirects of the site. The link to my website is this: Website - Lougans I created in my…
-
2
votes2
answers669
viewsTables with vertical and horizontal scroll
I set up a table with scroll horizontal and vertical from this original http://jsfiddle.net/k5k7vtwu/: document.querySelector('.ux-data-table').onscroll = function (e) { // called when the window is…
-
2
votes2
answers1089
viewsFilter with Jquery, Json and Input
I have a list of inputs with type checkbox, with values that are loaded from a JSON file. I wanted to know how to make a filter, so that when clicking on a certain checkbox, the products (which are…
-
2
votes1
answer1067
viewsHow do I align Divs from left to right from top to bottom with flexbox?
I just met this property and I need to create a social-network with the possibility of including videos... in case I would like the last one added to be at the top left and so on... that’s my code…
-
2
votes3
answers1503
viewsSeparate values from a variable
Hello friends I need to separate values from a variable I receive values like this: -4.08768, -63.141322 23/04/2017 22:00:00 need separate values each with a variable type like this: -4.08768,…
-
2
votes1
answer119
viewsEvent that performs a database query when clicking on a <tr> table
Hello. I’m making a system that when the form is submitted, a table is generated with the survey data. So far so good. Now I’d like to know how I do for when I click a button (), which is inside a…
-
2
votes2
answers53
viewsPositioning of the third div
I have 3 Ivs and the idea is that the first two next to each other, so I used the float: left: <div class="div1" id="employee_table" style="float: left;"> </div> <div class="div2"…
-
2
votes1
answer645
viewsI have one form inside the other and I can’t get the most internal form
Here’s an example of how the form is, it’s much more complex than that, it’s almost 10 years old and I don’t have time to modify everything. But I need to have access to the form inside the other,…
-
2
votes0
answers37
viewsFacilitate quantity change in input number
By placing a <input> with type="number" in an HTML form, viewing the page by a PC the field shows the arrows up and down, but in Mobile appears the keyboard to type the number, I wonder how I…
-
2
votes1
answer157
viewsMask with jQuery or HTML
The Mask I need is this: 0000000-00.0000.0.00.0000 As I type in the input it is filled from right to left preserving the right zeros until it reaches the character limit of this string. Examples:…