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
answer608
viewsHow to make a column layout responsive with js?
I need to create a column layout (masonry) responsive with pure js. I’ve tried several ways, but most columns are not responsive, and CSS organizes the numbering from top to bottom. The…
-
3
votes3
answers449
viewsAlignment of text vertically
I’m trying to align the text to the center of the screen, I tried to use the transform:translateY(-50%) with the top:50% in position:absolute, but it didn’t work, I’d like to know how to fix it, and…
-
3
votes2
answers21
viewsLast elements of a class running incorrectly
See this print that you will understand what is happening: http://imgur.com/a/B0zkV I’ve checked the code several times and apparently found no error, follows the html and css part of this class:…
-
3
votes2
answers99
viewsImages in Divs
I have a question about divs with imagens in the case, the doubt is as follows: If I have a div, with 400x400, how do I make an image with 200x400 (or other resolution) fit by occupying the total…
-
3
votes3
answers82
viewsAdd numbers respecting formatting R $ 00,00
Good afternoon I am trying to represent a sum that the output value is in the formatting below: R$ 00,00 But I’m having trouble with decimal numbers, instead of the number staying R$ 15,10 it gets…
-
3
votes1
answer185
viewsHow to create a reserved space when loading page content, same as facebook, youtube, etc
This is a question asked on several sites on the internet, and before I came here to ask I researched a lot, even in stackoverflow in English. Well the part of the placeholder in html and css is…
-
3
votes1
answer678
viewshow to make a background Pattern with CSS?
I was looking at the bootstrap templates and this template caught my attention because its background is done with the technique Pattern, ie it has only an image that repeats itself "perfectly"…
-
3
votes1
answer505
viewsValue Vue-the-Mask conditional formatting
I’m trying to put a mask on - Vue-the-Mask <the-mask id="input1" v-model="ch_anual" type="text" :mask="['###:##', '#.###:##']" /> But you’re only taking the second mask if I put…
-
3
votes2
answers375
viewsSelect element based on the data-id attribute
Eat I make to catch the id in Javascript that, in HTML, is data-id="2" ? <ul> <li data-id="1" id="e1">Elemento 1</li> <li data-id="2" id="e2">Elemento 2</li> <li…
-
3
votes2
answers1137
viewsPhonegap does not open external site!
I’m starting with Phonegap, and I found a problem: my app would need to open a Facebook page. But I can’t get the Phonegap App to open a simple Globo.com page (example), but through the Desktop I…
-
3
votes2
answers964
viewsLeave image with the <img> proportional tag in relation to div
I want to leave the proportional image inside the div, but I’m not getting it. The only "solution" I have found so far is to put Object-fit: cover, but this style is not compatible with many…
-
3
votes1
answer1592
viewsChange order of objects in the array by dragging rows from the JS angular table
I have a table and using jquery ( sortable ), I’d like when you drag the line by modifying the html of the table, the order of the array change Example: CAMPO1 CAMPO2 /// DRAG THIS ONE DOWN CAMPO3…
-
3
votes1
answer99
viewsHow to add input dynamically after second table header
I have a problem, I would like to insert inputs dynamically in a table with more than one header, in my script by clicking on the image of + lines are being added after the first header but not in…
-
3
votes1
answer65
viewsWhat are CSS Feature Queries? How do you use them and what are they for?
I’ve been hearing the term a lot Feature Queries when referring to CSS3. But what are they and what are they for Feature Queries? How this applies in the CSS of projects?…
-
3
votes2
answers1471
viewsHow to automatically link to words with javascript?
If the page contains the words "contact", "help" and others.. turn them into a link: <a href='http://meusite.com/pagina1.html'>contato</a> <a…
-
3
votes1
answer398
viewsHow to define a favicon? Is it mandatory to define it?
There are certain things that, by not doing constantly, I always end up forgetting how to do it. And one of them is the definition of a favicon for my website. What is the tag and attributes that I…
-
3
votes1
answer1416
viewsPin menu to top of page when scrolling down
I have a div with height 100% and after it a navbar. I would like that when you scroll down the page the navbar fixed at the top of the page. CSS ul.navbar { list-style-type: none; margin: 0;…
-
3
votes1
answer1067
viewsEditable table with jquery and php?
I’m trying to make a dynamic table for editing the data without refresh, but when double-clicking on the line nothing happens, follow the code Jquery $(document).ready(function(){ $('#tblEditavel…
-
3
votes2
answers95
viewsWhat is the combination of table and float?
Everyone who deals with web programming has been through this: .children { float: left; } <div class="parent"> <div class="children"> Teste </div> </div> If you use the…
-
3
votes2
answers1806
viewsPut icon in a site shortcut on Android
Hello, I’m with the following question, I have my site, fully responsive, and for some of our customers, we put a site shortcut on mobile, by Google Chrome. The shortcut works but gets a totally…
htmlasked 8 years ago Lucas Marques 33 -
3
votes2
answers93
viewsDo you really need to specify the HTML element before the class in the selector of a CSS rule?
I don’t know if that’s true for everyone, but the only element I’m interested in is <div>. For example: div.classe1 { /*...*/ } .clase1 { /*...*/ } What is the difference between the two…
-
3
votes2
answers1000
viewsDifferent layout on other computers?
I’m with a project and this project was all done from scratch on my PC, however when I took my project to another PC that had a monitor resolution totally different from mine, the images and certain…
-
3
votes2
answers890
viewsCan I use header/footer tags inside the main/Section tag?
I’d like to know if you can, within the element <main>, or <section>, put the tags <header> and <footer>. For example: <section> <header>topo da…
-
3
votes1
answer67
viewsIs it correct to repeat the itemprop attribute?
I wish I could repeat myself itemprop this way is wrong. Actually, I want to show 3 products and put the respective itemprop of each situation: <img class="card-img-top"…
-
3
votes2
answers131
viewsCharacter display using numeric codes: ߷
I tried to search on the subject in Google, but it was difficult because several other subjects are related, so I ask here. I am using special characters, printed from the respective numeric code,…
-
3
votes1
answer242
viewsPin icon to bottom right corner using Materialize
First time I’m using the materialize. I would like to know how to fix an icon in the lower right corner. <a class="btn-floating btn-large cyan pulse right"><i…
-
3
votes2
answers675
views -
3
votes1
answer192
viewsAJAX request works on all browsers except Firefox
I have tried to make an upload system with AJAX and works perfectly in Chrome, however it does not work in firefox. I used the function $.ajax() jquery. Have any suggestions of what might be? I have…
-
3
votes1
answer273
viewsImprove Writing Resolution with HTML5 Canvas
How to increase stroke resolution when drawing with Canvas on Touch Device. I can increase the stroke thickness, the color of it but when I make a circle comes out parts straight or square. var…
-
3
votes1
answer973
viewsWhat is a "definition list" and how are these tags used <DL>, <DT> and <DD>?
As far as I knew in HTML there were only two types of lists. Sorted Lists <ol><li> and Unordered List <ul><li>. But apparently there is a third type of list, which is the…
-
3
votes4
answers238
viewsVariable feed within variable
In JS I have the following line: var recebeMensagem = ''; var mensagemBot = '<div class="bot_mensagens">'+recebeMensagem+'</div>'; // 1ª mensagem recebeMensagem = 'Olá';…
-
3
votes1
answer1140
viewsCentralize loading on the page
I’m riding a load and I’m having 2 problems. How to leave the div circle that contains the animation in the vertical and horizontal center of the screen. 2º How to leave the tips of the load…
-
3
votes1
answer4709
viewsModal is not giving scroll
CSS: .modalDialog { position: fixed; font-family: Arial, Helvetica, sans-serif; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.8); z-index: 99999; opacity:0; -webkit-transition:…
-
3
votes1
answer178
viewsI’d like to just use the bootstrap grid to make it responsive
How can I use only bootstrap grid just to make it responsive, because I end up not being able to customize my css inputs because of bootstrap itself
-
3
votes2
answers119
viewsSearch for words on the website
I’ve been practicing web programming for a while. At the moment I want to know how to do a Chrome Ctrl+F-style word search: by typing the characters it already points out the respective words. I…
-
3
votes1
answer1456
viewsSection with two colors
I’m having a hard time doing a two-color Section (one occupying 70% of the Section and the other the remaining 30%), I wonder how I can do this follow the example: suggestions?…
-
3
votes1
answer82
viewsIs it possible to place an HMTL file within the data set?
It is possible to save an HTML file in a column BLOB inside the database and then display as part of the page in PHP? Why do this: it’s more of a learning experiment to compare whether it looks…
-
3
votes5
answers869
viewsFill <text> inputs after check <checkbox> and clear when unchecking
When checking chekbox all fields must be filled with the anonymous word and when unchecking it clears the fields. My html: <form> Deseja anonimato? <input type="checkbox" id="anonimo">…
-
3
votes1
answer165
viewsShould I create a class for each "input", or are only methods of a "form" class enough?
Well, I’m having a logical question. I started learning PHP OO recently, so this question is more for educational purposes than anything else. My goal is to create a class "form" that will build…
-
3
votes2
answers588
viewsServlet with JSP does not insert into the database
I am doing my Interdisciplinary Project of the college and would be an e-commerce. Well, I was following the part of entering in the bank for a booklet of the course I did by Caelum, but I do not…
-
3
votes2
answers2177
viewsHow to create a JSON file from a JS?
Hello, I created a simple page where the user can define some fields. I need to implement the following function: When you click the 'Create' button, the application should generate a JSON file with…
-
3
votes3
answers535
viewsCSS Change Time with Javascript
I have a function: function togglePopup1() { document.getElementById('desktop-card').style.width = '480px'; } The code is so that the width page increase with one click. But how do I make this…
-
3
votes1
answer66
viewsPosition one element over the other
.lista-cartoneira h1 { font-size: 1.2rem; margin: 12px 0 12px 0; font-weight: 500; } .lista-cartoneira h2 { font-size: 1rem; margin: 12px 0 12px 0; } .lista-cartoneira img { width: 80px; height:…
-
3
votes1
answer419
views -
3
votes1
answer3890
viewsHow to make the HTML table inside another table occupy the entire screen?
I have an HTML table with 3 columns and 3 lines and for each cell of this table I have another HTML table with 3 columns and 2 lines and I’m trying to get her to uniformly occupy the entire screen.…
-
3
votes2
answers1224
views -
3
votes1
answer186
viewsDatatables processes only one request
So I’m making a system of custom selects with the datatable, only the request only processes once. Example of my php, js and html <div class="input-group has-feedback" id="divCidade"> <div…
-
3
votes1
answer129
viewsHow to redirect a page using . htaccess?
how have you been? Well, I’ve been facing a problem that boils down to the following: I want through the file .htaccess redirect only the home page from my website to another domain. Example:…
-
3
votes2
answers815
viewsHow to take text inserted into an input and insert it into a label ?
I have the following code <div class="index-login"> <input id="email" class="input-text" type="email" placeholder="Email" > <button type="submit" class="loginBtn loginBtn--proximo btn…
-
3
votes2
answers1323
viewsSort items with angular
I am working on a system that requires data pagination, but before I would like to sort the json I receive in the order of users' names. JSON is in format:…