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
votes1
answer366
viewsHow to put a link (href) in a piechart
How can I put a link somewhere in the graphic with Google Charts, a different link for each division of the graphic. I’m wearing a Piechart, follows link from jsfiddle and of page where I got the…
-
3
votes2
answers1314
viewsNote Field Mask - 10 or 5.5
I’m looking for a script on jQuery to make a mask: When I’m through with you 10, the field format to 10,0 and when it’s another note like 6,5 leave like this. As an example below. I need you to…
-
3
votes1
answer532
viewsHow do I apply CSS to my form?
How can I make my form look like this? I have this code ready (without CSS), but I don’t know how I can make it look like this. <form> <input type="hidden" name="form_input"…
-
3
votes2
answers2198
viewsNavbar bootstrap getting behind the banner
I’m putting the navbar Bootstrap on a website, only when I click the button to open the menu, the menu appears behind the banner on the site. I took the position:absolute that has in the col-md-12…
-
3
votes2
answers700
viewsHow to add a`ul` to a`li` HTML element via c#code?
I’m going to have a list of multiple clients, and I wanted to add these clients to one ul of the element li in HTML, you can add these clients dynamically (because each search performed on the…
-
3
votes1
answer486
viewsRetrieve position or name of a button with javascript
How to recover the position of a button on the page HTML using Javascript? The main idea is to add a eventListener on all buttons that have been created on HTML, and when I click the chosen button,…
-
3
votes2
answers2482
viewsRepeat header in print
I can’t release the report I’m using, so I took a generic model on google to help me explain the doubt. Assuming my report is as follows:: It is mounted via HTML on a system that works with both C#…
-
3
votes1
answer45
viewsWhy createEvent does not work in firefox
I have a div inside that div contains a select option as hidden and I have a script in jquery that when clicking the button shows to list with the option is working well in all browsers only in…
-
3
votes1
answer84
viewsSite with horizontal navigation
I need to do a photo gallery on my website. This gallery will be in the Metroui style, with images of different sizes and the page sliding horizontally. The page would grow as the number of images…
-
3
votes2
answers372
viewsCalculate value according to selected dates
I have to make a code that calculates Reais according to 2 dates reported. I have 2 inputs of the kind text to inform a data in format dd/mm/yyyy. The input To is from data inicial and the B is the…
-
3
votes1
answer273
viewsMouseover effect td with jquery or css
How to do for when I pass the mouse on top of mine td, show the edit icon on it? Note: My code does not work: jQuery Event: $(".editableSpan").mouseover(function(){ $("#tdEditable").append("<span…
-
3
votes2
answers1185
viewsHow to generate value by clicking on an input type Submit
Form to send selected data for deletion. <form action="index.php?pagina=../controller/controllerUser&acao=ok" method="POST" enctype="multipart/form-data"> <label>Nome:</label>…
-
3
votes1
answer63
viewsBring the Return of a Function to a variable of another Function
I would like to know if there are possibilities to do this: function trazerNumero(){ return 7; } function mostrarNumero(){ numero = trazerNumero(); alert(numero); } $(function(){ mostrarNumero() })…
-
3
votes1
answer46
viewsHow can I catch and hold on to this value
I have a program too big for here and so I created a fiddle to illustrate my problem. I want to catch and store in a variable p, but the alert is always sending empty. Can help me sff? HTML…
-
3
votes1
answer474
viewsSending birthday emails based on Mysql query
I have to create a function (task) on the server of my site that sends a birthday email, containing an HTML code, to birthday emails. Detail: these birthdays are registered in a Mysql table that…
-
3
votes2
answers4294
viewsLine break of select options that contains a very long value
It is possible to break the line of a option very extensive? ex: <select> <option>texto muito extensp<br/>restante do texto</option> </select>…
-
3
votes1
answer2354
viewsAdd required fields
I wanted to know how do I put that fields Name, Email, Password,of my form are required to complete them. Follow my code below: <!DOCTYPE html> <html> <head> <meta…
-
3
votes2
answers763
viewsJquery consuming Web Service Rest
I would like to list the ceps of this json, follows him: [ { "id": 1, "nome": "Hospital Da Mulher", "cep": "60508090" }, { "id": 2, "nome": "Hospital Maria jose", "cep": "2" } ] And that’s where I’m…
-
3
votes2
answers2573
viewsDetect browser and redirect user
I have an animation problem in Safari and would like to know how to restrict the use of Safari of all versions without having to list one by one, for example if I were to redirect a version of…
-
3
votes2
answers4566
viewsMake 'Ubmit' button expect action from an Alert?
I have an HTML form with a Submit button. Validating the fields at the click of the button, if they are invalid, an alert is displayed, but it disappears quickly and the form already redirects to…
-
3
votes1
answer1176
viewsJavascript function that generates html colors according to value
I need to create a Javascript function that takes an int and returns an html color code. The rule is: The smaller the number more "cold" is the generated color (light blue, for example) and the…
-
3
votes1
answer2343
viewsInternet Explorer in Intranet Site Compatibility Mode - How to Force to Always Render as Edge?
I have a website that I made available to internal users on an intranet for approval. But users who tested with Internet Explorer 11 were with the site being rendered in "Compatibility View Mode",…
-
3
votes2
answers237
viewsError while uploading photo
I tried to apply the instructions to upload photos to the bank with this article. I just adapted to the Mysqli extension. The connection code below: $conecta = new MySQLi = ("localhost", "root", "",…
-
3
votes1
answer2282
viewsHow to remove the image border?
I have this image: 1) 2) which is being used with icon for a <input>: ' <input type="button" class=" button_add" />' With CSS I added it to a li: input.button_add { float: right; height:…
-
3
votes1
answer132
viewsUse unary HTML tags attributes with assigned value
There is a difference between using attributes unários alternatively (with a value)? such as: Standard form: <script src="/js/" defer></script> Alternative form 1: <script src="/js/"…
-
3
votes1
answer80
viewsInput with the date of the respective day, without being able to be edited
I need an input to come with the date of the respective day, for example today: 17/11/2015, tomorrow 18/11/2015. This input cannot allow edits. My code is like this: <label class="item…
-
3
votes1
answer652
viewsSet value within a Jquery variable
I’m taking a beating like that to be able to do something simple(within my knowledge of Java). I’m carrying a Chart google on my page. At a certain point, I want to get the values of a REST that I…
-
3
votes1
answer74
viewsDoubt in the image gallery
I want to do this kind of effect in my image gallery, when I hover over some image, it simply highlights the image and the others darken. Follows the model: Model. If possible wanted via CSS.…
-
3
votes3
answers1871
viewsFile or character encoding error
On every page of a site I’m developing with coding UTF-8, defined both in the charset of <head> how much in the editor encoding, I’m having problem in the rendering of words that have accents,…
-
3
votes2
answers136
viewsIs it possible to make the optgroup label selectable?
It is possible to make the option of optgroup label selectable along with the rest of the group options, for example: <optgroup label="EUA"> <option value="0">NY</option>…
htmlasked 9 years, 3 months ago Michel Henriq 647 -
3
votes2
answers1432
views -
3
votes2
answers180
viewsProblem in fixed layout creation
Guys, I’m having trouble creating a layout fixed that only adapts to the height or width of the screen, whether mobile or desktop. But it is not a responsive site, it is a normal site for desktop,…
-
3
votes1
answer3299
viewsDisplay div after a certain time, with setTimeout
I’m trying to put setTimeOut in a div in javascript, but I’m not getting at all! My code : <script language="JavaScript" type="text/javascript"> if(document.all){} else…
-
3
votes1
answer572
viewsHow to use two css files in an html
How can I use two CSS files in an HTML file, but one of the CSS files is only used in one div. I have a CSS file to style the page, but I needed another CSS file to style a div in the middle of the…
-
3
votes2
answers836
viewsPop-up gallery of images
I have in an HTML file this: And I wanted when you click on one of the images to pop up a slide of images, like a gallery. Something like this http://www.monocapa.pt/portfolio.php, someone knows how…
-
3
votes2
answers295
viewsSave bank value to same user
I have a page with a field for entries that are recorded in the database and when recording I assign a user ID randomly in this register. Thus: $name = $_POST['name']; $phone1 = $_POST['phone1'];…
-
3
votes1
answer67
viewsXSS - Prevention works on IE but doesn’t work on Chrome
When preventing an XSS attack (Alert(123;)) using Html.Encode the on-screen code is as follows: <select class="combobox" id="xssSelect" name="cmbXss"> <option selected="selected"…
-
3
votes2
answers268
viewsSpace Lock with REGEX
My code for locking characters is like this: $('#rg').on('keypress', function() { var regex = new RegExp("^[ 0-9]+$"); var _this = this; // Curta pausa para esperar colar para completar setTimeout(…
-
3
votes3
answers1950
viewsHow to Fix File Upload Error?
I have the following form: @using (Html.BeginForm("importCSV", "Administrador", FormMethod.Post, new { @id = "upldFrm", @enctype = "multipart/form-data" })) { <input id="file" name="file"…
-
3
votes4
answers16240
viewsHTML -Spacing between tds
Is there any way to give spacing between <td> as in the figure below? NOTE: With spacing only on the right of the <td>.…
-
3
votes3
answers13886
viewsTake the value of a dynamic select
I wonder how I get the value of a <select> dynamic, ie when I modify the value it presents me this value, I imagine something like below, someone could help me? varItens =…
-
3
votes2
answers6350
viewsView and edit registered data
I created a registration system and wanted to know how I do so that the information that was registered is displayed on the page and that the user can edit them. Follow my code below. <body>…
-
3
votes2
answers738
viewsMake a change to a div by checking a checkbox
Does anyone know how I change a div or label by marking a checkbox example have this code here. <label style="margin-bottom: 10px;"> <div class="adicionalch bg-yellow"> Nutella <input…
-
3
votes2
answers637
viewsProblem with table width
Good staff, I have a table like this: The "thead" part where it says Dorsal,Name... etc is a table(Tabela1) and the rest is another table(table2), basically are two tables that I tried to make them…
-
3
votes2
answers652
viewsConvert a date to Java
Good Afternoon. How do I convert a date into Java, taking into account the date entered may be day-month-year or year-day-month. I have the following code: data = toDate('2015-10-01'); function…
-
3
votes1
answer796
viewsConvert Javascript code to HTML?
I made a banner on the bannersnack site to be used on Mercadolivre, the site of the option to download the banner in GIF, PNG, JPG and HTML5 and provides the code in Javascript as well. The right…
-
3
votes1
answer543
viewsClickable 3D globe
I’m thinking about doing a project using a 3D globe with the possibility to click on countries, but I don’t know where to start. I’ve been doing some research and so far I’ve found this:…
-
3
votes1
answer1380
viewsClone Input text and pass the value of cloned input via POST
I need to clone an Input text by clicking on a "+" button and then pass the value of this cloned field via POST to the other form data... I’m using a Javascript function to make the clones…
-
3
votes1
answer766
viewsRun function only the first time you open the page
I’m developing an app using the Phonegap, the same uses the front-end to create apps, so I would like to do the following: run a specific function (such as an alert) the first time the application…
-
3
votes1
answer2162
viewsCreate new PDF from existing PDF with PHP
I’m with a project that I need to add header/footer/watermark, dynamically in existing PDF files, via PHP language. I’ve done a lot of research and I still can’t find a way to do this. You can edit…