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
votes2
answers92
viewsCreate control flow in playlist for web player
To illustrate what I’m looking for, note the figure: Screen Shot For this I put the source code for example: Code <html> <head> <style type="text/css"> #slide #screenshot { width:…
-
1
votes1
answer159
viewsSend data to different pages in one form
Good afternoon guys, I have a form that needs to do 2 different actions, 1 of them is to update a php page with name update.php and another to delete with name delete.php, I need to depend on the…
-
1
votes3
answers34
viewsLine up and put div on the other
Well I created a div called 'notification'. Where I will put a text and at the end of it has a menu. Everything is working fine, but when the text is too big and the screen is small, the menu button…
-
1
votes1
answer78
viewsFull mobile height menu
I want the mobile menu the background of it black, stay with height complete. Here is my code: #sidebar { position:fixed; top:0px; right:0px; width:45%; height:100%; background:#1a1a1a;…
-
1
votes1
answer42
viewsPhantomjs ignoring style in header
I’m capturing the position of some elements in the DOM of an html but Phantomjs is ignoring the padding applied via css. After doing the page.evaluate I capture the top/left: var res =…
-
1
votes1
answer1361
viewsRemove input field options of type datetime-local
I have an input field type datetime-local and I need it to be as clean as possible, without cleaning buttons or step and just displaying the date and time in this format: '12/12/2016 12:01', I would…
-
1
votes1
answer140
viewsHow do I know if an element has the html or value property?
I have two elements that need to be updated a DIV and another INPUT One has to be updated value and another html, example ... $.each(json, function (index, value) { if (typeof $("#" + index).val()…
-
1
votes0
answers225
viewsSite is responsive in PC smartphone simulator, but in practice is not responsive
Good afternoon I’m having trouble making my site responsive, because it is correctly responsive in the PC simulator (link below) WEBSITE: https://natupot.000webhostapp.com/ WEBSITE MOBILE VERSION:…
-
1
votes1
answer183
viewsGoogle Chrome - Image problem in full screen
The original image is this: http://4k.com/wp-content/uploads/2014/06/4k-image-tiger-jumping.jpg I’m wearing event click to call function "toggleFullscreen". Follows the code: Html: <img…
-
1
votes1
answer113
viewsClear Html Tags from an input result, with the exception
How do I remove all html tags from a string with exception? Ex: var exemplo = "<div><p>Leno<span> Sousa</span> <i></i>var exemplo =…
-
1
votes2
answers1724
viewsCentralize items of a DIV
How do I keep these three items centered? Note that there is a space left on the right side. CSS div.menu { background-color: #333; overflow: auto; white-space: nowrap; } div.menu a { display:…
-
1
votes1
answer45
viewsProblem with mouse over in image
I would like to know how I can move my menu in an image I made. I wanted to put the menu on the left side for example. Here is my menu: https://gyazo.com/3cc836a7cb1b825800abe4f8b0b309e7 Here is my…
-
1
votes0
answers216
viewsGoogle Maps does not work on mobile
I have this HTML code below and it used to work, suddenly the map does not load anymore and I can not solve the problem. Could someone help me? I test on Firefox and Android Google Chrome.…
-
1
votes0
answers179
viewsResponsiveness in HTML CSS
I wrote my portfolio a while back and tried to make it responsive. I used the Mobile First technique. In cellular resolution it got massive, but when I made the first responsiveness to 600px wide…
-
1
votes3
answers229
viewsDisplay the result of a COUNT in the Database
The PHP code looks like this: $con = new PDO(SERVIDOR, USUARIO, SENHA); $sql = $con->prepare("SELECT COUNT(id) FROM quiz;"); $sql->execute(); $n = $sql->fetchObject(); And the HTML code…
-
1
votes1
answer367
viewsCheck the existence of an element by the Value attribute?
I need to basically check if a certain div exists within a list, the structure is like this: <div class="content" id="divCheck"> <div class="filho" value="1"></div> <div…
-
1
votes1
answer159
viewsHow to pass multiple arrays to PHP page
→ $scope.items = []; → dados = $('#meu_form').serialize(); I wonder: how to send/receive/read the arrays above to a PHP page? Javascript: app = angular.module("app",[]);…
-
1
votes3
answers682
viewsHow to change the properties of a directly imported image in CSS?
Let’s say you set an image as the background of a div as follows: #div { background: #111111 url(../imagens/imagem1.jpg) top center; background-size: cover; How do I change the properties of this…
-
1
votes0
answers149
viewsFacebook iframe with higher height in Firefox
I set the height to 230px, but in Firefox it gets bigger than in Chrome, IE and Edge This ends up interfering in the iframe margin with the element below, which gets smaller in Firefox Can you tell…
-
1
votes2
answers7697
viewsWrite each step of a factorial calculation
I have a piece of code that calculates the factorial of a number in Javascript, but I wanted it to return the steps of each calculation, ex: 3! = 1x2x3 = 6 Follow the code I made. I tried "printar"…
-
1
votes3
answers100
viewsDo not allow insertion of € symbol in an input
I am making a data entry site in the database and I do not want it to be possible to insert the euro "€" symbol in the input. Is there any way to block it?
htmlasked 6 years, 11 months ago José Gomes 214 -
1
votes2
answers3003
viewsHow to make the HTML page fit the window size
Personal to with a question I see on sites how the stackoverflow itself adapt to the size of the window as I do it in an HTML code? You resize a Chrome window and the page adapts without cutting the…
-
1
votes0
answers2018
viewsPrint PDF document directly via PHP or Javascript
I wonder if there is a way to print a PDF document directly (without the need to press Ctrl+p in the browser) via PHP or Javascript. For example: create a button that, when clicked, sends the PDF…
-
1
votes0
answers232
views"Array to string Conversion" error
I have a page in php to edit files, where you write the name in an input and select the extension by a select, at the time of conversion it happens the error "Array to string Conversion". (Follow…
-
1
votes1
answer700
viewsJavascript validation does not work
Person, all right? So, I have an alert div (that of bootstrap) with the None display and Hidden visibility I’m getting it by id, both in css and javascript, only it doesn’t work. It changes the…
-
1
votes2
answers2699
viewsHide entire table row by javascript
Good evening, I’m trying to hide by javascript an entire row from the table below, can help me? <!DOCTYPE html> <html> <head> <style> table { border-collapse: collapse;…
-
1
votes1
answer1287
viewsPull php echo into a div, no refresh
I have a div in html, it has None display, I fill in the form and the data goes to a file. php and the same gives me an echo saying that the data was entered into the database, only that I wanted…
-
1
votes1
answer473
viewsHow to change the input cursor?
Hello guys, I think it’s something very simple, but I’m still kind of layy in HTML I would like to know how I do for the moment that the person click the input that writes in the middle of the box…
-
1
votes4
answers12289
viewsIndent HTML code in Notepad++
How do you indent HTML code in Notepad++? I’ve saved the file as .html and indentation is not being automatic. Each enter, instead of adding a space (tab), it is going down a line as if it were a…
-
1
votes1
answer33
viewsjQuery counting automating ID’s
So, guys, I have a schematic here like FAQ that the site administrator who registers the Faqs. Each new registered question generates two new Ivs: <div>Pergunta1</div>…
-
1
votes1
answer1042
viewsFunction js is executed several times
Hello, I am developing a football betting app that features a table with quotation values of different game modes for each registered match. For each match I have a table with the following code:…
-
1
votes0
answers73
viewsHow to color part of a text inside the input using REGEX or if you have any VUEJS plugin
My problem is the following I have an input with the text. Ex.: "I will add this new text". When the text is selected I change it to stay between keys. Ex.: "I will {{add}} this new text". SO FAR I…
-
1
votes1
answer1830
viewsSite icon in Shortcut when adding site to mobile screen on Chrome has Android option
I have a responsive site that is widely used on mobile by customers, always indicate that the customer use Google Chrome, because it offers an option to create a site shortcut on mobile, only it…
-
1
votes0
answers77
viewsGood practices with $.get from jquery
I believe it is not recommended to make one $.get within a $.get. But then what would be the best practice for this code below: var valorSalario = getSalarioAtual(location.state);…
-
1
votes0
answers71
viewsGlobal variable or database always
I made an application using jQuery Mobile library, it is an application to split account. I created a main object called conta and it is incremented according to the user’s actions (code below). As…
-
1
votes0
answers1009
viewsModal bootstrap does not work in Chrome browser
I have a problem in my web system done in PHP/Laravel: I have a loop loop and inside this loop I have a button for each item, which opens a modal of bootstrap, as follows: <button name =…
-
1
votes1
answer38
viewsClip property
I’m using the property clip in a tag to cut at the bottom of it, however this image will be dynamic, the width size is fixed but the height size will be dynamomic. So if I have an image with height:…
-
1
votes1
answer552
viewsProblem with modal registration form
In the registration form I call a window modal which is the same page of listing entries. When I click on submit of form it sends to my beauty database and closes the modal. However, for me to see…
-
1
votes0
answers41
viewsProblems with ASP MVC5 Responsive HTML
I’m having trouble letting my page responsive, for desktop is getting correct, as shown in the image: However, when testing for mobile, it is as follows (using the tool in google Chrome to emulate…
-
1
votes1
answer31
viewsInstead of the ajax command being on the page, it is being directed to php page
$('#formCadastrarProdutos').submit(function() { $.ajax({ url: '../crud/cadastro_produtos.php', type: 'post', data: new FormData(this), cache: false, contentType:…
-
1
votes1
answer146
viewsprint variable Java script within HTML
how to print the variable click inside the Html <script type="text/javascript"> $(".j_requerimento").click(function(){ var click = 1; $(".j_label_requerimento").append("<span>IMPRIMIR…
-
1
votes2
answers196
viewsLogin Form
My login screen form HTML code (login.html): <form class="form-signin" method="post" action="login.php"> <span id="reauth-email" class="reauth-email"></span> <input type="email"…
-
1
votes0
answers249
viewsRedirect Servlet to JSP by passing data
I’m doing a library project, I register Book, Publisher and Parents and then I display them on JSP. When I register the data appear normally in JSP but if I refresh the page they are re-registered.…
-
1
votes1
answer44
viewsWhy does this compressed css code stop working?
Why do some codes fail to work when being compressed? As is the example below. I used this website. Normal Code and working: .radio-1:checked ~ .star-item-1:before, .radio-1:focus ~…
-
1
votes1
answer15751
viewsCheck if radio button is selected
I’m unable to verify the following condition: $("#calculo").click(function() { if ($("#opcao2").cheked()) { $("#segundoConteudo").css("display", "none") } }) .labelFake { font-weight: bold; }…
-
1
votes2
answers2891
viewsMake page zoom default
Have some script that when the user opens the system the zoom is already preset when opening the page is already default ?
-
1
votes2
answers164
viewsHow to verify, for each item inserted in $Scope.items[], whether fields have been filled in
How to verify, for each item inserted in $Scope.items[], if Telephone and CPF were completed? Intended scenario: The user must enter at least 1 item, if negative, when clicking "Send" displays an…
-
1
votes1
answer120
viewsHow to call php on a radio button
I’m trying to call PHP to mark a radio button but I’m not getting it. PHP: if($result['sx_sexo']=="Masculino") { $Result_sexoM ="checked"; } else { $Result_sexoF ="checked"; } Radio button <p>…
-
1
votes1
answer132
viewsDisable field by clicking the checkbox
How do I disable a field by clicking the checkbox option?
-
1
votes1
answer459
viewsHow do I pick up the location in the google maps api according to the user’s click?
I entered the site google maps api and saw how to put and use the api on my site, but only managed to make you register a location according to what the user types. For a better experience, I wanted…