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
-
2
votes1
answer970
viewsSetting a margin in a background image
Consider the following html code: http://jsfiddle.net/qt7dsx7b/ In the fiddle a div was defined with an image located in the upper right corner. It turns out I would like to add a margin between the…
-
2
votes2
answers44
viewsTable formats?
I wonder if it is possible to make a table containing a "text" in the middle of its lines! Follow an example:…
-
2
votes1
answer111
viewsAppcache in Asp.net MVC
I need to use the Html5 appcache to store some web pages. Before using MVC I simply did this regular expression to check if you are connected or not. var offlinePages =…
-
2
votes1
answer7046
viewsHow to execute a function when the mouse is over a given element?
How to create a generic javascript function that runs only on the element the mouse is currently on top of?
-
2
votes3
answers248
viewsDisplay images from right to left
I am currently having a problem with my code because I need the images to be displayed on the screen but that they come from right to left. The default is we put the codes <img> and they are…
-
2
votes2
answers2112
viewsFixing Elements in the DIV
I’m building an HTML page with some Divs, and inside one of them there is a input and a button. But when I zoom out, the Ivs stay aligned the right way, but the button and the input come out of the…
-
2
votes2
answers1113
viewsTooltip or Hint in rowEditor in Primefaces
I have a problem, I wanted to add a tooltip or hint by hovering the mouse over the edit, confirm and cancel icon roweditorand celleditor of Primefaces. I’ve researched and tried using css but it…
-
2
votes3
answers1008
viewsSolution for <select> with many options
What is the best solution to do the <select> leave such result selected in a <select> with many options ? I use IF in this situation with few options, but it becomes unviable for a very…
-
2
votes3
answers1803
viewsHow to take the result of select and mount HTML?
My problem is : I have a field initial date and a field final date and on my table a field date. The user will enter a start date and a end date, and in the database I check if you have data…
-
2
votes1
answer9637
viewsBootstrap classes for creating columns with space
I want to understand the classes of Bootstrap, when using the span and offset, and how to give a space between the columns?
-
2
votes2
answers281
viewsLeave web page text manageable
I developed a one-page layout which the client requested that a part of the site be manageable, something that was not in the project at the beginning. It’s a simple line between <p> and…
-
2
votes1
answer67
viewsImage breaks the title
I have an image and underneath it I have a title, next I have three block. Follow the image: But when I add just one line of title, it breaks, the image ends up descending. I wanted to make the…
-
2
votes2
answers340
viewsApply jQuery effect to the current HTML element?
I have the following code that when I put it to run, it gives display:None and display:block on all elements and I would like you to apply this effect only on the current element: //jQuery $(…
-
2
votes2
answers18872
viewsHow to leave current date in text field
I would like to leave populated my field text with the data atual, where the mask I have, when the user type leaves configured like this: xx/xx/xxxx. How to do in JS or PHP ?…
-
2
votes1
answer693
viewsForce at least one field to be required
I have 4 Checkbox in my form HTML, I am working on validations only with Jquery.Validate, there is a way that I define that at least 1 of these checBox is triggered? Some property of validate? Or…
-
2
votes1
answer2137
viewsJquery mask working only for one field
Dear, in my code I must insert two mask, however, only of INSC_EST It’s working, the other one isn’t. Follows the code: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script…
-
2
votes2
answers11418
viewsHow to open a page in a new tab without leaving the current page
What I want is something that works like target="_blank", but I don’t want to leave the page where the link was clicked. That is, when clicking on the link, apparently nothing would change, keeping…
-
2
votes1
answer1334
viewsfloat on some element, and div does not track content
I’m trying to float an element to the right, and this element is inside a div no set size. The problem is that when I float the element p to div does not follow the content. Follow the HTML code:…
-
2
votes2
answers841
viewsProblem with jQuery open/close Divs
I have a jQuery that I made to open and close a div by clicking on the corresponding question. The problem is that only the first div is opening closing, even though I click on the 3rd or 5th…
-
2
votes2
answers306
viewsDatepicker from Bootstrap
I developed an application using bootstrap (getbootstrap.com). I created a date field and linked the datepicker of the bootstrap itself. How do I change the size of the calendar? I need to show it…
-
2
votes3
answers3702
viewsAuto-click when opening site
Yesterday I did that question, and it all worked out. What I need is that when I open the site directly on the www.meusite.com.br link/test it opens exactly where the "test" is, I used scrollTop for…
-
2
votes1
answer1543
viewsDynamic form using Bootstrap Tabs
I have a form, which will be released from the header data and items. I know how to use the Bootstrap Tab, but in the items I would like to call another page so that it is easy to launch the items…
-
2
votes1
answer1852
viewsModal bootstrap does not load Google Maps v3 correctly
People I have the following problem, when loading Google Maps v3 in a Modal with the Bootstrap Framework the map is not displayed correctly. Follows the code: <!DOCTYPE html> <html>…
-
2
votes1
answer3504
viewsDisplay block with Onclick
Hello, I do not know mecher a lot with javascript and needed help, I would like to make a menu that when clicked change the display of a display div:None to display:block. My menu <div…
-
2
votes1
answer48
viewsHow to find the second id of something
How can I get access to second div with id general as I tried in the script? <div id="general">ds</div> <div id="general">ds</div>` alert($("#general").eq(2).html());…
-
2
votes1
answer122
viewsMake large-scale textContent exchanges with Javascript
I have a page on which I want each event to be changed the textContent of a <h1>, one <p> and a <img>. I thought of php includes or Json. I don’t know. (It’s a lot of content, so I…
-
2
votes1
answer58
viewsSortable Kendo UI
I need to set up a screen where I drag options from one list to another. However, when loading from the first to the second, only one copy should be created for the second list. When the user…
-
2
votes1
answer642
viewsGet snippet of a String with regular expression in JS
Well, what I need to do is receive a string via input, and "get" a certain value within such a string. Below I show an example to better illustrate the situation: <iframe width="560" height="315"…
-
2
votes1
answer417
viewshow to prevent an element from being reloaded when accessing other pages of the same site?
How to keep an element fixed and without being changed even changing page, on a website. Like a music player, like websites http://letras.mus.br/ http://palcomp3.com/ but not with ajax, if at all…
-
2
votes2
answers468
viewsRemove all tags inside a contenteditable
I want to prevent text formatting from on a website and for that I need to remove all tags (except <br>) that they had inside a text box, in case someone thinks of pasting some content from…
-
2
votes1
answer170
viewsCustom menu on the site
I would like to have at least one north how to make a custom menu as in this image. (In the image, the mouse is stopped(Hover) over Sustentability.) The vertical menu, with the submenu in the…
-
2
votes1
answer577
viewsFor external or internal HTML performance (Bootstrap-Modal)
I am building a page which will be accessed by a considerable amount of users (5 thousand/day) and as some hosting services charge per mass of data transferred others for the amount of requests,…
-
2
votes2
answers675
viewsHow to cancel event click on site
I use a plugin jQuery which generates a hidden side menu and when clicking the button, the menu appears, shifting the content of the site to the side. The problem is that the site elements remain…
-
2
votes2
answers1539
viewsload a specific form according to the selected radio button
Assuming I have two options at the beginning of a form, option A and option B <label>SELECIONE UMA OPÇÃO</label> <form> <label><input value="A" name="opcao"…
-
2
votes2
answers936
viewsAdding values of selected input’s within another input
I have for example 4 input, each input has a specific value ex: *input com os valores <input type="radio" value="1"> <input type="radio" value="2"> <input type="radio" value="3">…
-
2
votes1
answer2835
viewsHow to put logo on sidebar or navbar depending on screen size?
I’d like to put a logo (Brand) in sidebar instead of navbar for larger screens and, when reducing the screen ratio (mobile devices and tablets and smarts), the logo should go to the navbar using…
-
2
votes1
answer1301
viewsPHP generate confirmation Pop-Up
I have a php code that makes insertions in the database, data that came through forms, how is it possible to return a message through a pop-up to the user informing him if there was success or not…
-
2
votes1
answer64
viewsStyle not propagate for parents
I have several elements inside each other and when I hover the mouse with the Hover it adds an edge to identify the element, however, as all have the same class, all items grab the edge. I want only…
-
2
votes3
answers7373
viewsHow to Rotate an Image in the Background?
How I’m sending in Image in sequence: I want to make this globe do a rotation, it’s a perfect circle representing a world globe. After figuring out how to rotate the background with CSS or not. I…
-
2
votes1
answer252
viewsReturn element values without a certain class
I have a list of images, and I need to return a value of these images to then assign some commands. The problem is that in some <li> there will be a class called off and needs to be…
-
2
votes1
answer2447
viewsHow to create a page with multiple images? One over the other
I’m drawing a layout and I’m already thinking about what HTML and CSS will look like. I can even imagine how to do it, but it’s possible that you have better opinions and suggestions. Layout still…
-
2
votes3
answers6543
viewsHow to mask the URL after hiding a GET with history.pushState?
I have a search page on my system. Due to pagination I am using the form data via GET. However, when I search something the URL is, for example: http://sistema.com/busca.php?nome=silva Searching I…
-
2
votes1
answer3043
viewsMysql query by loading table with search button
I need some help. I need to make a Search button, get the parameters of some selects(combobox) and update a table below the filters. But I don’t quite know how to do this, to press every click on…
-
2
votes2
answers81
viewsDoes page title and random post affect position in search results?
I have a theme with a single page and several updates are made per day on this page including the title, wanted to be well placed in search results know that there are several techniques for it... I…
-
2
votes3
answers133
viewsRegex capturing it all
I’m in trouble with a Regex, she’s not just taking it 1 de 8 as I wish, she’s getting way beyond this, see : https://www.regex101.com/r/eX6bC9/1 That’s the string I’m trying to match: <span…
-
2
votes4
answers2562
viewsDefinition of "margin-top" in percentage of a "div" works strangely
I own a page .xhtml and the first element to be placed is a div(content) and I set for her a higher margin(margin-top) of 30%. Supposedly, from what I understand, this percentage should be taken…
-
2
votes1
answer334
viewslast item of the <li> list is not down even if you have space
I’m making a very simple site in HTML5 and pure CSS So I created an inline-block list of 4 items and each item is a large square whose sizes have to align to the header and such. The problem is that…
-
2
votes2
answers3622
viewsMultiple Divs with Same Responsive Height
I have four five Ivs, one of which is a container for the other four. Structure: <div id="divPai" style="width:100%"> <div id="divInfUser" style="width:25%; height: 30%; background-color:…
-
2
votes1
answer785
viewsCreate a shortcut through the Navigator
Is it possible to create a shortcut through the browser? However, if it is with Javascript, Java, or anything that makes it possible. I need to create a shortcut on the user’s desktop through the…
-
2
votes1
answer432
viewsDisplaying the date in the date field
I’m trying to display the day’s date in the field date: <input type="date" name="dia" />. Being that the date I picked up via JS: var Hoje = new Date(); var data; Hoje.getDate();…