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
answers306
viewsHow to remove internal dashes from a <SELECT> in Firefox
Once again I just realized that Firefox is putting "additional stylings" in my inputs. This time, in the <select>, when I click on it to select an option, there is always an internal dashed:…
-
3
votes1
answer86
viewsDo not pull information on index only
Well I’ll try to explain it as best I can, I know it can be simple but at the same time I don’t know how I can do it... Let’s say in my Header I have a 'bar' that I would like to appear on all pages…
-
3
votes1
answer57
viewsPage redirection with error message
Good afternoon I have a doubt this command is correct? http://localhost/site/index.php#contato?info=Email%20Vazio index.php#contact? info=Email%20Vazio This is the function that sends the command…
-
3
votes1
answer51
viewsE-mail is not being true
I have a problem: I’m creating a field "forgot password", where the user enters the email and if it is in the database appears as true and redirects to the page teste.php; otherwise for the page…
-
3
votes3
answers4171
viewsHow to put columns of a table all the same size?
Temperature Precipitation Wind Atmospheric Pressure Second Tuesday Fourth Fifth Sixth Saturday Domingo What I wanted was to get all the columns to be the same size regardless of the name of the day…
-
3
votes2
answers67
viewsIncorrect centering of button
I have a button within a div which I cannot center on. By means of margin-left I can do this, but to treat the same in the responsiveness is very massante. Code of button together with the div:…
-
3
votes1
answer205
viewsError with facebook login in php
I’m having trouble connecting to Facebook using sdk php.: configuration on facebook Developers: code snippet: loginfacebook.php You can help me? Note: I’m still in development, so I use the same…
-
3
votes1
answer32
viewsLine changes color when value is false
I have a list of users and each user can be inactivated or activated. I would like the user when 'false' (disabled) to change the color to gray. HTML: <tbody> <tr *ngFor="let user of users"…
-
3
votes1
answer834
viewsHow to select all elements of the same id in Javascript in Django
I have a table in Django where all the answers of a test are stored, but when I select them to compare with the answer provided by the user, all the answers are the same as the first question. I…
-
3
votes3
answers307
viewsButton and span logic from CSS
I have a button and a span from the following code: <div id="onestepcheckout-place-order"> <button type="button" class="button btn-proceed-checkout btn-checkout" title="<?php echo…
-
3
votes1
answer95
viewsDisable button while form is not valid to have no more than one request and duplicate saved data
I need to disable a button until all form fields are correct. Thanks in advance. $('#btnSalvar').on('click', function (e) { var button = $('#btnSalvar'); button.prop('disabled', true); var valid =…
-
3
votes4
answers1152
viewsJavascript function with Nan error
Hello. I am encountering a problem when executing this formula as the final answer is given as Nan. In a simplified way to explain the code, it works like this: there are two groups of three…
-
3
votes1
answer309
viewsBootstrap split cells with same spacing
Good evening, I’m trying to make a bootstrap table with 7 columns, but I need them to have the same spacing.. I am using because with the structure of col-Md, Sm, Xl... I did not see 7 as a prime…
-
3
votes1
answer276
viewsChange the visibility of a select
I have this form, where depending on what the person chooses will appear another select for her to select, but this way I did, it is not appearing. Does anyone know if this doesn’t work to select?…
-
3
votes2
answers2830
viewsHow to check if a file has been selected in the input field?
I do a form validation to ensure that the file a user uploaded is of the right type. But the upload is optional, so I want to skip the validation if it hasn’t uploaded anything and uploaded the rest…
-
3
votes2
answers289
viewsbox-shadow:inset property does not work in <img>
I was testing the property box-shadow to make a gallery and realized that the tag <img> does not accept the box-shadow:inset... but accepts the box-shadow normal. However if I put the…
-
3
votes1
answer1275
viewsPrint table with ajax and php
I’m trying to print a table using php, ajax and mysql. I have this excerpt in Html <!DOCTYPE html> <html> <head> <title>Teste Ajax</title> <?php…
-
3
votes2
answers2956
viewsHow to change the color of a radio button?
I have these radio Buttons in which it serves to specify the level of severity of a given occurrence. And I’d like to know how I could change their color? Follow this illustration example: <link…
-
3
votes1
answer187
viewsIntercept page redirection
I have a page whose customer is selecting items, after selected I needed to check if the customer will leave the current page because I need to alert him with a message like "Do you want to save…
-
3
votes1
answer308
viewsFor what reason, I have to double-click the bookmarklet to insert dynamic content
I’ve developed a little plugin commonly known as bookmarklet. The result is almost satisfactory for my case, however there is a hindrance. For me to start it I have to double click otherwise, it…
-
3
votes1
answer370
viewsInput text returning bool(false)
I have this HTML code <!DOCTYPE html> <HTML> <HEAD> <TITLE>Cadastro</TITLE> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css"…
-
3
votes1
answer77
viewsPlay button plays another audio
I call a table posts, and in it is a column post_aud where a text with the audio/music name is 'inserted' (which is 'saved' in the Audios folder)... $get_posts = "SELECT * FROM posts ORDER by 1…
-
3
votes2
answers507
viewsHow to make a div Scale without changing the child elements?
How do I make the content opacity and size within paragraphs not change when the transition occurs?! #quadrados{ padding-top: 2vw; overflow: hidden; width: 100%; height: 30.5vw;…
-
3
votes1
answer239
viewsLinks and images menu with float
I tried to create a menu with html and css without any framework, I used float:left to place the image with the logo on the left and rest of the images that are anchors should be on the right but…
-
3
votes2
answers37
viewsKeywords in Paginations
How can I insert the Keywords and even the title of my page on those "Pages that don’t exist". For example, I made a pagination and my url changes as I change the value of url/conteúdo, the title…
-
3
votes3
answers631
viewsLimit values for input text
I have two inputs and I need the term input value to be greater than the start input value. Both are text type. Someone could help me ? <div class="w3-half"> <label>Data de…
-
3
votes2
answers9335
viewsApply watermark without affecting text
I put an image inside a table representing the watermark, but when adding opacity in the table all content is affected. Follows CSS: table{…
-
3
votes1
answer563
viewsHow does the browser read and interpret css?
I’m starting in this world of the Front and I read that the browser reads and interprets the css right-to-left. But how he reads and interprets when there is the cascade of classes, as in this…
-
3
votes1
answer947
viewsExport HTML table to Excel keeping styles
I would like to know how to export a table of my html code to excel keeping the formatting (colors, borders, etc). I am using the following function: <script type="text/javascript"> function…
-
3
votes3
answers1543
viewsWhy "html, body" and not just "body" to delete the page margins?
When you want to delete the default page margins I always see the following CSS code: html, body{ margin: 0; padding: 0; } Why use html, body just using body which is the body page already solves?…
-
3
votes1
answer168
viewsIcon inside HTML data-text attribute
The doubt may be silly but I really don’t know how to do it. It is possible to escape an awesomefonts icon (already installed in the project) inside an HTML attribute, in this case the data-text?…
-
3
votes1
answer549
viewsMake iframe content responsive (Google DFP)
So I’m having a rather complex problem. Knowing that it is not possible to style with CSS the content of a <iframe>, I know no other way to achieve the desired goal. I even tried with…
-
3
votes1
answer478
viewsHow to color SVG without path Fill?
Well, I tracked an image and I need to color it. The point is that it is not a geometric shape (T-shirt collar) and I need to give the user the option to color it. However, when exporting svg, the…
-
3
votes1
answer40
viewsTree menu - Error selecting element (ul:onclick)
I have a problem in the tree menu below. When I click on the child elements of ul-0 I run the class change. How to avoid this ? function ready (fn) { if (document.attachEvent ? document.readyState…
-
3
votes2
answers2761
viewsJS Error: Uncaught Typeerror: Cannot read Property 'addeventlistener' of null
I’m setting the function to open a menu. But I am getting the error message "Uncaught Typeerror: Cannot read Property 'addeventlistener' of null" Below is the code I’m using to open the menu with JS…
-
3
votes1
answer213
viewsHow to move an html label using css transitions
I’d like to move the label by hovering the mouse over the image <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport"…
-
3
votes2
answers174
viewsNumerous if and Else conditions
I have 5 fields input where I should put any number, and two buttons: one with the biggest name and the other with the smallest name. When you click on the larger button, I need it to tell me which…
-
3
votes2
answers571
viewsPerfect centralization of elements using Transform:Translate <style>
On another question I asked before, a user gave me an example of how I could perfectly centralize an html button on the screen. It was in this question: How to position a button anywhere on the…
-
3
votes1
answer194
viewsDropdown HTML and CSS
* { margin: 0; paddin: 0; } body { margin: 0; paddin: 0; font-family: 'Source Sans Pro', sans-serif; background-color: #F7F7F7; } .header { position: absolute; width: 100%; z-index: 3; height: 44px;…
-
3
votes2
answers471
viewsHow to line break a PHP string within a div
I own a <div> that creates a box where I should print a PHP string coming from a database, but when the string is too large, instead of performing the line break the string was "leaked" out of…
-
3
votes1
answer99
viewsHow to force Highcharts to show all points?
I use the API highcharts to generate graphs from information collected in a database, the problem is that when it comes to many points in your series, it HIDES and GENERATES an Average in periods..…
-
3
votes1
answer14930
viewsUncaught Syntaxerror: Unexpected token u in JSON at position 0
In my html I am using Javascript to try to recover a Json object saved in localStorage. I am using Google Chrome. First I get the value of the "name" attribute of my Json object that is in…
-
3
votes2
answers9890
viewsHow to "break" div in two columns?
I am using Wordpress, my Blog section is organized as follows: I’m simply using {display: flex; justify-content: space-between;} that in this case the result is like the first example. The result I…
-
3
votes2
answers598
viewsHow to "validate" the input
I’m looking for a method to check if the required page input’s are valid every time I click the save button, but I’m trying to do this without having to check one by one, below is what I’ve already…
-
3
votes2
answers1806
viewsHow to disable and enable onclick with Jquery
Hello. I’m doing a little job for college, where a child needs to click on the image that is wrong in a group with 3 other images. When clicking on one of the images, it receives a feedback whether…
-
3
votes1
answer96
viewscreation of CSS menu
Hello, would you like to know the easiest way to create an HTML menu by CSS? I tried to make one here and it really didn’t work. <!DOCTYPE html> <html> <head lang="pt-br"> <meta…
-
3
votes0
answers259
viewsDisplay Grid for IE11
I’m making a grid with the 7 items according to the code below: My code nav div.grade { display: grid; grid-template-columns: auto auto auto auto; margin-top: 5px; display: -ms-grid;…
-
3
votes1
answer614
viewsalign text vertically within a <div> CSS || HTML
i want to align the text vertically in div, but I wonder if it is possible to do it without changing the css because I am using the…
-
3
votes1
answer9463
viewsLine break with css without <br>
I have this problem in css and I can’t solve, when the text gets too big, I can’t make this line break, I can’t use , someone has some idea? * { font-family: arial; -webkit-touch-callout: none;…
-
3
votes1
answer157
viewsAdd path to fileField by clicking on image with YII framework
I’m trying to make a scheme with YII framework fileField so that when a user clicks on the image on the screen, the name of the clicked image will appear in span and the model value in fileField…