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
-
3
votes3
answers29131
viewsHow to make an HTML field mandatory?
I need to validate the comments form, IE, only save if there is text insertion, today in the form is not required to insert text. I’ve tried using the Jquery validation plugin, but I couldn’t get…
htmlasked 8 years, 4 months ago Renato Lazaro 309 -
3
votes4
answers345
viewsHow to select an option with value comparison?
I need to do "selected='selected'" in a option whose value is what is saved in the variable state recovered in Ajax. How can I do this? $('#cep').on("change", function(){ $.ajax({ url:…
-
3
votes1
answer183
viewsBox shadow appearing from right to left
I have the following code http://codepen.io/leoamrl/pen/xErdQL which so far is exactly how I want it. Except because I want the Hover effect to appear from right to left. How could I do it with box…
-
3
votes2
answers376
viewsBackground with text background
How do I make this effect of letters on top of the image that is like Background, or how I search for it in google?…
-
3
votes2
answers674
viewsHow to use "echo" in an Laravel view?
I’m hoping that in mine layout blade echo only if the variable $errors is defined: @section('mensagens') <div class="container"> <div class="row"> <div…
-
3
votes4
answers9949
viewsLoad image via javascript
I tried to upload image by JS but I couldn’t do it through onload, follows the code I tried: HTML: <img class="razer" id="imageoption" onload="imageOption()"> JS: document.onload = function…
-
3
votes1
answer68
viewsDiv input type Radius
Well what I want is this. I have several Ivs, and they have inputs like "radios", that is, when people click on the div, it gets edge. Instead of having the Radius ball, people clicking on the div…
-
3
votes1
answer886
viewsHow do I import data from a spreadsheet in excel (csv) to an HTML table?
Hello, I am making a website, which contains a table, however the data from this table needs to be imported from an excel spreadsheet that I have saved here on my machine.. Can someone help me? If…
-
3
votes2
answers1060
viewsPrevent browser autocomplete
There is how to prevent, through code, the browser to make suggestions to fill in the login form? It is that the system will be used in laboratories and it would be boring the browser to suggest all…
-
3
votes1
answer340
viewsHow to view a list from a Json sub-array?
I’m building Ivs dynamically via Javascript. I want to make its content display some information (usernames, emails, etc). The data is coming from the database in Json format. The problem is that it…
-
3
votes1
answer805
viewsMPDF - Start pagination with variable numbering
I have an application and need to print a document using the class mPDF, however, I need the number of the paging start, for example from the number 43, 44, 45 and so on and not from the 1, 2, 3,…
-
3
votes2
answers53
viewsHow do I fix Javascript to make it work before I choose an option in my select?
Hi I have my page code <select class="form-control" id="selected"> <option selected="selected" value="0">Selecione</option> <option value="a">MONTAGEM LATERAL</option>…
-
3
votes2
answers2477
viewsCSS-only carousel: problems centering and fixing size
I have a carousel created with only CSS, but I have identified some difficulties. All images are in the 4:3 ratio and may have until 640x480 px (i.e., may be less than this value), so: I cannot…
-
3
votes1
answer37
viewsAttribute with 2 words does not take CSS
Hello, because this attribute using 2 words does not catch, and what I use only 1 word catches <li data-nome="testejunto">Teste</li> Catching example: .item[data-nome=testejunto] {…
-
3
votes1
answer93
viewsUsing SELECT to list information
I need a little help for a situation. I need to list information within the states. EX: If I click on Acre, I need to click on a box with some information about it. But I don’t know how to make this…
htmlasked 8 years, 3 months ago Inez Boldrin 147 -
3
votes1
answer553
viewsautocomplete="off" input type "password" is required? Why?
One of the systems I work on was analyzed by a security team and among some security practices they recommended was the inclusion of autocomplete="off" in elements input of the kind password. I…
htmlasked 8 years, 3 months ago William Pereira 3,998 -
3
votes2
answers319
viewsHow to validate value entered in text field with php?
I have a project, which consists of pulling a code inserted by the user in the following field <input type=text name=CODNOME><br> he putting the following value 001 appears an msg…
-
3
votes2
answers25262
viewsRemove edge that separates columns from a table
Good evening! I’m trying to remove the edge that separates the columns from a table but doesn’t work. The Table is this: <table border="0"> <td> <tr> <img…
-
3
votes1
answer1158
viewsTable with different size?
Hello! I am breaking my head to try to make my table with the left column bigger than the direct column. And I’d really like someone to help me. /* Post Table */ le#alter tr td {background: #fff;}…
-
3
votes1
answer861
viewsHow do SELECT not allow selecting an option already selected in another select?
How to make it select don’t allow that the "Leader" option is not duplicate, because in my business rule only one user can be a leader. I thought the following: Assuming I have 3 selects. If I…
-
3
votes1
answer80
viewsHow do I have at most one selected leader in all selects?
How do I make to when I select the Leader option, the javascript do not allow another function to be selected (multiselect)? The scenario is as follows: Each select represents the functions of each…
-
3
votes2
answers2502
viewsInput limiting file type
My form has an input file field, and would like to limit the file type to select only images and pdf. <form> <input type='file' required> <input type='submit' name='Enviar'>…
-
3
votes1
answer85
viewsPrevent browser autocomplete in password
I have a lock screen that depresses the user by inactivity, asking only the password of the same to access again. It happens that this screen has no use if autocomplete is on, since anyone can touch…
html security-guard input browser self-cmpleteasked 6 years, 10 months ago dalton gonzalo Fuentes 155 -
3
votes1
answer81
viewsCode improvement
I am doing a college job, to show the benefit of user interactivity with jquery. The way I did it was: Content is responsible for the part showing the image and doing some onclick function. However,…
-
3
votes2
answers675
viewsAccordion menu with CSS opening more submenus inside a submenu
I know that to assemble a menu of the type accordion is like this: <html> <head> <style> .menu-sanfona li ul{ display:none; } .menu-sanfona li:focus ul{ display:block; }…
-
3
votes1
answer80
viewsImage does not appear 100%
I’m trying to create a LandingPage but the first image is being cut I’m using this CSS: .parte1 { min-height: 100%; max-height: 100%; padding-top: 50px; padding-bottom: 50px; text-align: center;…
-
3
votes2
answers52
viewsProblem when printing fields
Putting together a simple OS system, without BD, I put on the HTML page some fields to fill, and at the end a button to print, the problem happens that on the screen before asking to print the…
-
3
votes3
answers899
viewsDiv on DIV Fixed
I have a div container with height and width 90%, It’s the way I want it! Even if I zoom out, it stays fixed without zooming in or out. What I’m trying to do is a div superimpose that div container…
-
3
votes2
answers14245
viewsCSS Hide Elements using css only
Given the following code snippet: <div class="ui stackable inverted blue container menu"> <a class="item" href="/menu"> logo </a> <a class="item" href="/menu"> <i…
-
3
votes1
answer151
viewsHow to put the same animation on two canvas at the same time?
I have an animation on "Html5 Canvas" (using Flot Real Time) and now I need it to be cloned in real time for a new canvas, ie draw the same thing on 2 canvas at the same time. So I just tried to…
-
3
votes2
answers576
viewswhat’s the difference in using #my_div or div#my_div
I wonder if there is any difference at the time of the styling of a page using div#minha_div or #minha_div, and another difference is influenced to put the whole path of the div that will be…
-
3
votes2
answers8310
viewsfloating div accompany page scroll
Would anyone have any SIMPLIFIED idea or example of how to make a floating div roll together with the scroll of the page ? Something very simple, for understanding and learning, because the ones…
-
3
votes1
answer368
viewsHow do I put mascara on input (Total Value)
Script Membership Value function mascara(o,f){ v_obj=o v_fun=f setTimeout("execmascara()",1) } function execmascara(){ v_obj.value=v_fun(v_obj.value) } function mreais(v){ v=v.replace(/\D/g,"")…
-
3
votes1
answer8117
viewsHow to make a text overlay a div with image?
I can’t get the text "Text I want to overlay." to be on top of the div "textDiv" that is with an image as background, please help me please. HTML <div class="divLeft"> <img id="photo"…
-
3
votes3
answers282
viewsHow to use a text selector in html?
How can I make a text selector within HTML so that I can have options when certain text within a p tag, for example, is selected?
-
3
votes2
answers577
viewsFind html element in css
I need to find a specific element of what is in my html code only in css, exemplifying: It’s like: meuElemento [type=input]{ color: #FFFFFF; } Only the doubt is on how I find an element like…
-
3
votes2
answers699
viewsPosition div or button inside a specific point of an image
I need to mount a kind of map, where the user clicks on a button that is in the x,y coordinate of an image and a modal opens. I can’t use the background-image for this, so I put the image with…
-
3
votes1
answer828
viewsHow to select an entire HTML table in JS and copy to clipboard
I have a table HTML simple (but long) that when selecting and copying (CTRL+C) for Excel, perfect glue. I want to add a button that does this process so I don’t have to select this huge table…
-
3
votes2
answers80
viewshow to make a substring in an int in PHP
I have the following code: $chk_selectes = $_REQUEST['chk_selectes']; it receives via REQUEST a variable with this value: 000 or 001 or 011 or 111. I need to check each of these elements so I used:…
-
3
votes2
answers1125
viewsDisplay default date field BR yyyymmdd to dd/mm/yyyy with javascript
hello i have a field that automatically receives a date from another system, but it sends me in American pattern, I would display on the screen with the default dd/mm/yyyy; <div class="form-group…
-
3
votes1
answer264
viewsDropdown div menu with different width in browsers
I dropdown menu and for some reason the width of the div is different in the browsers The div class is the dropdown-content Follow the code and prints .header-menu { height: auto; float: right;…
-
3
votes2
answers141
viewsSearch content within tag parameters
I’m creating a search bar where the user type and filter in real time the content of <li>. I have a similar code: HTML <ul id="list-search-filter-map"> <li><a…
-
3
votes3
answers1030
viewsHTML / CSS - input date height width
How can I change the height and width tag input date and time in HTML itself or in CSS ?
-
3
votes1
answer36
viewsI have problems with this form to pass the given by PHP medium, but I can’t get the error
I have this form inside a modal of bootstrap; <form action="form_handler.php" method="get" name="precioUpdate"> <div class="col-xs-6"> <label for="venbras_actual_venta"…
-
3
votes2
answers545
viewsHow to update $Scope.items after push run?
Javascript: var app = angular.module('app', []); app.controller('controlador', function($scope, $http) { $scope.user = {}; $scope.items = []; var sum = 1; $scope.submitForm = function() { $http({…
-
3
votes1
answer787
viewsHow to update fields in Angularjs?
When inserting items in the list using the following code snippet: $scope.items.push({ codigo: $scope.s.codigo, ncm: $scope.s.ncm, descricao: $scope.s.descricao, preco: $scope.s.preco, quantidade:…
-
3
votes3
answers527
viewsI can’t put the icon on the right side of the screen, inside a div
<head> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"…
-
3
votes1
answer755
viewsHow to focus an element
In CSS it would be something like this: div { display: none; } div:active { display: block; } And some user action would give focus to this div by javascript I know I can do adding and removing a…
-
3
votes3
answers1052
viewsImage with scroll vertically and height 100%
I have the following structure: <div class="bg"> <img src="view/img/planta-supermercado.png" id="bg"> <div class="bg-scroll" id="bg-scroll"> <img…
-
3
votes2
answers716
viewsDynamic ID with Jquery
I have a function that creates a span with id, but I need that id to be generated dynamically example id="span1" /id="span2", as I do this? $("#lista").append("<span id='span'><br> " +…