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
-
4
votes0
answers96
viewsModem layout, is it possible to change?
When entering the configuration page of my modem 192.168.0.1 I have the following layout: I would like to reformulate this page, but I do not know if it is possible, I searched the internet and…
-
4
votes2
answers245
viewsHow to toggle between List and Gallery
What I intend to create is similar to Grid view used in systems of the type Mercado Livre. It would be a function done in javascript that switches between a List or Gallery, using the same data in…
-
4
votes2
answers966
viewsHide a div when showing another
I’m having a problem hiding one div when I show another. If I use .conteudo_up instead of the id2 I can do this effect, but it does for everyone at the same time and I want for each one…
-
4
votes1
answer1891
viewsHow to monitor the change of an input type text field?
I need to monitor the change of the content of a text field, the function I use is this: $(document).ready(function() { $("#nome").on("keyup change click focus", function() {…
-
4
votes4
answers880
viewsWhy is it not advisable to use PHP codes in the same HTML document?
I was in the lab today showing a simple PHP code example to a colleague and my teacher saw it and asked "Why are you putting PHP together with HTML?". Even without understanding much I answered that…
-
4
votes3
answers563
viewsWhat does <!-- //--> mean in html / javascript?
I went through a problem where was presented a tag <script> and contained these HTML comment characters. Function example <html> <head> <script type="text/javascript">…
-
4
votes1
answer150
viewsCreate an instance of jQuery from an array
I have the following array: var elementos = [$("#elemento1"), $("#elemento2"), $("#elemento3")] I need to create a function that "converts" this array into a jQuery instance, so I can use jQuery…
-
4
votes1
answer43
viewsWidth caculum with jquery
Hi I’m making a test site and I have a div of promotions with width of 100%, a ul with 100% width and 4 li with the products. When you are more than 4 li, I want my div promotions to…
-
4
votes4
answers581
viewsWhat is the most appropriate method to "connect" a CSS code to an HTML?
I was looking around and I saw that there are some different methods of doing this. For example, there is a method where you put the code CSS in the same code file HTML, and already has another,…
-
4
votes2
answers85
viewshelp here div and html functions
I have this code, when I pass the mouse over the div it moves, but I wanted it to happen when I hit the button: <head> <style> .square{width:100px ;height:100px ;background:red…
-
4
votes1
answer442
viewseffect on input using jQuery
Guys I’m making a input with an effect similar to that of Android. Good here in this example I put a input and a select. The input is working perfectly, when he is with the Focus he turns blue.…
-
4
votes1
answer758
viewsGrab URL table from R
I need to do it here: library(xml) URL <- "http://globoesporte.globo.com/futebol/brasileirao-serie-a/" tabela1 <- readHTMLTable(URL, which = 1, colClasses = ) tabela1$V3 <- NULL…
-
4
votes1
answer22532
viewsHow to open link in a new tab?
Follow the code below that I’m having difficulty using target="_Blank" how could I solve this. <div class="opt" onCLick="location.href='#';">Txt</div> THANK YOU VERY MUCH…
htmlasked 7 years, 2 months ago Luccas Cerqueira 95 -
4
votes1
answer1539
viewsReplace point by comma in Javascript
Good night in the example below add up if the values of 3 text boxes, and the result comes out in the fourth, how to make this result appear with comma and not with dot? <html> <head>…
-
4
votes1
answer2391
viewsBackground-color and transparent color text
need to apply a color: transparent in an element that has the background-color: #fff. I’ve tried applying one opacity: 0 but it applies to the whole element, including the background. my current…
-
4
votes2
answers1420
viewsHow to prevent the user from making changes to the input?
I have a input in a form, however it should not have its value changed: <input type="text" name="pais" value=""> How can I stop the value from being changed? <!DOCTYPE html> <html>…
-
4
votes1
answer185
viewsBug textarea with padding in Firefox
The padding-bottom in a <textarea>, works normally on Google Chrome and in other browsers when scrolling the scrollbar, but in Firefox the spacing is always "fixed" and the texts appear cut.…
-
4
votes1
answer120
viewsLoop duplicating entire table
I’m not getting to make a loop in the table, it’s making loop to every bank search. $dbc = mysqli_connect('senha_adm'); $query = "select carro, barco, aviao, moto, triciclo, velotrou, dataCadastro…
-
4
votes2
answers173
viewsTransform text to text on Hover!
Good, I have a paragraph and I want him to have it font-style: italic; when I pass the mouse over, which properties should I :hover?! I wish it was a 0.3-second transition…
-
4
votes1
answer6033
viewsShow/Hide div using a radio button
Well I need to check the state of mine radio button to make sure that if he is active in "Yes", he opens the <div class="camposExtras">, click on "Not" he closes the div, and this should be…
-
4
votes1
answer580
viewsLine break with <br> tag causes spacing in PDF generated
When converting html to pdf using Flying saucer in java, the following failure occurs in the pdf file; a spacing between the last sentences, before the line break of the paragraph. This gives the…
-
4
votes1
answer2404
viewsCan we develop a 100% Javascript/HTML/CSS web application without backend?
I am a developer backend Java and always used Javascript on frontend for the purpose of giving dynamism and better interaction to HTML pages (I have always developed corporate systems). Is there any…
-
4
votes1
answer195
viewsHow to optimize html and css files?
Optimization does not compress html and css files. After compressing them into minifier html and minifier css and putting the following code in htaccess(see below) still not accusing the compression…
-
4
votes1
answer858
viewsIntegrating HTML + Node.js with Angular.js in "Real Time"
I’m having some problems automatically updating a code in Angular.js within my site. The integration is Node.js with HTML, integrating with Angular.js. But I always have to give F5 on the page for…
-
4
votes1
answer800
viewsDelete values from the html list of options
I have a page and I show 4 options for each of the 4 alternatives. Each option has a value from 1 to 4. I would like that each time the user selects a value, this value is deleted from the list of…
-
4
votes1
answer520
viewsHow to avoid scrolling in picture?
I avoided asking anyone for help for my own learning. But of all the difficulties that I have been facing this cannot solve and is the last stage of the project. I need to insert a mobile image in…
-
4
votes2
answers1564
viewsIs it correct to use the Input tag within a Label tag?
I was taking a look at the tutorial from W3schools, where he’s teaching to use the input of the kind checkbox in Bootstrap. According to one example, I saw the following code:: <div…
-
4
votes3
answers1428
viewsError while breaking page for printing on Google Chrome
I have a page that prints tickets in 3 ways. Each ticket path is within one div with class ticket. After each route, I need to generate a page break. However, when using page-break-after: always; in…
-
4
votes2
answers3841
viewsHow do I leave the opacity of a dark image and display the figcaption text on Hover?
Hello, I am trying to leave the image dark and appear the text when I hover over. Can anyone help me? <div class="efeito"> <figure> <a href="#" target="_blank"><img…
-
4
votes4
answers3179
viewsHow do DIV fill 100% of the display?
Good afternoon I would like to create a site where the height of the first DIV is 100% of the display displayed to the user, and when giving the scroll, the other elements appear normally. I know…
-
4
votes1
answer52
viewsIs it possible to make an html element expand upwards?
Ex: I have a paragraph inside a div, and I want that whenever the text breaks a line, it expands up rather than down (default). Take the example: #content { width: 200px; height: 200px; background:…
-
4
votes1
answer691
viewsHow to recover logged in user name and display in View
I’m trying to develop a page, where after the user login, it is redirected to an index, where I would like to display the user name. I’m using Identity default of ASP.NET MVC. So I thought I’d put…
-
4
votes2
answers419
viewsWhat is the "module" value for in the type property of the HTML <script> element
I recently saw a code that includes a file Javascript was set the attribute type with the value module as in the example below: <script type="module" src="arquivo.js"></script> I would…
-
4
votes1
answer146
viewsHelp with Javascript comparison operators
Good Afternoon, I am doing a job, of which I will have several forms with a minimum and maximum number and I want to create a check function and avoid inserting numbers out of the track by the…
-
4
votes2
answers515
viewsStructuring with html/div and css
I am beginner/enthusiast and I’m having difficulty to drop the "table", I’m having problems to do this below without leaving a fixed pixel value. Well, it was solved and this was the result: *{…
-
4
votes2
answers734
viewsHow to remove "disabled" attribute from the parent select option?
I need that only in the select option that is selected the "Leader" option, it does not assign the "disabled", only in the other selects daughters. The logic is that only a user can be a leader, but…
-
4
votes0
answers818
viewsImage Resolution created with canvas
Good afternoon to all! I’m developing an application that scans a multi-digital file, where it is possible for the user to make cuts to these fingerprints and then save them to the BLOB database. To…
-
4
votes4
answers6187
viewsHow to pick up element above Jquery?
I have the following elements: <p class="id-task">5</p> <p class="status-change"> <i id="test-task" class="fa fa-flask fa-lg" aria-hidden="true"></i> </p> I’m…
-
4
votes2
answers417
viewsIs using HTML5 tags as CSS3 switches a good practice?
Use the names of tags HTML5 as most CSS selectors is a good practice? Be it because I’m not creative to give names to ids or classes, or by wanting to make HTML code as clean as possible, leaving…
-
4
votes2
answers54475
viewsPlace Javascript function inside onclick
So it’s kind of a silly question, but I really need... has how I put a Javascript function inside a buttom in this example below it calls the function loadDoc(). more I would like to put the…
-
4
votes1
answer697
viewsHow to make a list of categories with a completed and unfulfilled task counter?
Good evening, I’m as a doubt, I’m trying to make a dynamic task counter, that the tasks accomplished should be presented on another page. I have the following HTML of completed tasks: <!doctype…
-
4
votes2
answers3438
viewsHTML / CSS - input text Mask date, time
I am a beginner in the area and I do not have much knowledge, I have the following code, and I would like it to be filled only with numbers and in the format "00/00/0000" and "00:00" respectively. I…
-
4
votes2
answers7594
viewsHow to redirect page after login in php?
Hello I would like to know how could redirect page after login of the user. It has the Index that is the code below and here comes other pages like . .php requests, booking.php and others only all…
-
4
votes1
answer544
viewsExport array within a table?
I need to export data from an array inside an html table, the function is working but I don’t know how to export while inside a table, I made an analogy with the code below. function…
-
4
votes5
answers14273
viewsHow to put a colored layer over an image?
div { background: #000; width: 640px; height: 640px; opacity: 0.2; position: absolute; z-index: 99; } <span> <div></div> <img…
-
4
votes2
answers402
viewsHow to make a span display the value of a range as you move it with your mouse?
The function is working, but I want to update the value in <span> as I move the mouse. Someone can help? function mostrarPorcentagem(novoValor) {…
-
4
votes1
answer186
viewsDifferent concatenation ?
Guys I’m starting programming has little time and I have to register only I want the information typed by the user as the name, email and age appear through an "Alert" after he click on the button…
-
4
votes2
answers1965
viewsget mysql data using javascript and ajax
I’m developing a web app (case interest, follow link) and it was going all right until I got to the bottom: The field NCM is a tag input with a disabled attribute. The information within it comes…
-
4
votes1
answer636
viewsChange cell color according to the result?
I am a beginner in this universe, and I am locked in my development into a simple function that I cannot understand. This code below gets a value from the database, and I would like in the color…
-
4
votes2
answers545
viewsProblems with the result Curl and file_get_contents
I’m trying to get an image from a website to use imagecreatefrompng(), but the backlash was never what I expected... Url:…