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
-
5
votes2
answers78
viewsLine Break inside the P tag does not work
I am making an animation in Javascript so that the text has the effect of being typed. I am using a single tag <p> for text, and Gostaria that broke the line in the tags <br>, but they…
-
4
votes2
answers546
viewsHow to Fade Only Item Clicked
Here’s what I’m trying to do: I got a looping coming from the database. When I click on a button of one of the results, I wanted to make a fadein div appear. Turns out when I click on one, the div…
-
4
votes1
answer99
viewsHow to use "display: initial;" on IE9?
I made a website, but it gave error in IE9. The effect I made is only cool with display: initial; (because it fits right in the letters). The class code is as follows:: .box-slider h2 { font-size:…
-
4
votes1
answer380
viewsMy Javascript gives syntax error in Chrome and Safari but does not give error in Firefox?
These are my files: <script type="text/javascript" src="js/jquery-1.9.1.js"></script> <script type="text/javascript" src="js/jquery-ui.js"></script> <script…
-
4
votes3
answers1686
viewsHow do I fix the background of a <div> in iOS Safari (iPad)?
I have a layout that works very well on the desktop, but when viewing in iOS Safari (iPad specifically) it does not appear as expected. I want the div background to stay fixed when scrolling the…
-
4
votes4
answers1175
viewsFunction to expand list
I created a "dictionary" from A to Z , where when I want to see what is in the letter A, I click on it. Tté ai beauty. So that I don’t have to click one by one to find some meaning, I would like to…
-
4
votes1
answer3362
viewsAjax navigation error ("Xmlhttprequest cannot load...")
I’m trying to use a browsing without refresh on the page, but when I click on the link, give this error: XMLHttpRequest cannot load file:///Caminho.../paginas/login.html. No…
-
4
votes4
answers482
viewsDisabled button modified using firebug
Imagine that in an HTML I have a disabled button. I can very well use Firebug to enable this button and so do the commit. The question is: is there any way I can disable this button and not allow…
-
4
votes1
answer252
viewsHow to use fadein() with an append()?
How to add fadein() effect, along with an append(). EXAMPLE
-
4
votes2
answers159
viewsdiv stops being updated in IE11
In a project I am developing I need to update some page fields each 50ms (this is adjustable). The problem is that when I test in IE, the fields are no longer updated overnight, with no explanation…
-
4
votes0
answers931
viewsHow to make multiple image uploads with Rails 3?
I ran a scaffold with the name "Property", I need to add images next to it preferably in a different model referencing (1 Property can have many images), where the user can select more than one…
-
4
votes3
answers236
viewsCheck if a div contains a number
I have a paragraph that contains several links, alternating between words or numbers. I need to perform the following check: if the link within the paragraph is any text, it will do nothing with the…
-
4
votes3
answers3345
viewsDiv with height 100%
I need to leave one div with height: 100% of content and below it still stand the footer, but, for example, when you have no content to complete the entire screen, the footer appears at the end of…
-
4
votes3
answers4195
viewsHow to insert an element between two elements?
Explanation: I have a <div> parent containing two <div> daughters, however I would like to insert a <table> using javascript, between, that is, in the middle of these two…
-
4
votes3
answers8971
viewsGo to the next element with next and add a class to the previous one
I’m trying to make sure that by clicking on the "next" link, one of my lists is revealed and the previous one is hidden, using a class that has display: none;, tried with .next() of jQuery but there…
-
4
votes1
answer136
viewsVestige of mouse click
I need a script, that on an entire page where a click appears a ball in the place where it was clicked, but that after a couple of seconds disappeared. It doesn’t need to be ripples, just something…
-
4
votes5
answers2014
viewsDisable a Ubmit and Enable only when radio minimum Buttons is selected
I tried to do a function but came out with some strange bugs, it has to be more or less this script, but enable the button only if 5 or more radio Buttons are marked. Remembering that my form is…
-
4
votes5
answers8743
viewsCenter a form vertically
I have the following screen and I can’t vertically center this form below on the screen. I define how position: absolute; and I add the top:20% and does not move! Follows my html: <header>…
-
4
votes3
answers3627
viewsHow to Lock a Responsive Page in Portrait(Picture)?
Is there any solution to display the web page always in Portrait(portrait) on mobile devices, even if the user turns to Landscape(landscape) mode? That is, always leave locked in Portrait.
-
4
votes1
answer1070
viewsFirefox and Internet Explorer iframe problems
I have a problem with Firefox and Internet Explorer when using a iframe to upload files to the same page. Chrome works perfectly, but in Firefox and Internet Explorer, when I click link the iframe…
-
4
votes4
answers182
viewsError javascript if
I’m not able to make a condition with if for example: asd=true; if(asd=='true'){ alert('funcionou'); } but it seems that somehow it is not getting into the if…
-
4
votes2
answers3494
viewsHow to change the text of the OK button of Alert?
People I need an Alert with the "Confirm" button instead of the "OK" button. how do I do that?
-
4
votes2
answers9582
viewsPosition of blocks in Bootstrap
Hello, I’m trying to make a template in bootstrap (due to its responsiveness) but I’m stuck in a situation that I can’t find output without using javascript (which would be bad in my case). I need…
-
4
votes3
answers1771
viewsPrint html code
How to print html code ? Example: <div id="css"><link rel="stylesheet" href="jquery.css.css"></div> it does not print the link tag, it links another css, want to write this tag pro…
-
4
votes1
answer429
viewsInappropriate behavior when stretching image
I have the following html code: <figure> <div id="test"> <a href="#"> <img class="wideStretch" src="caminhodaimagem/img1.jpg" alt="Img 1" /> </a> </div>…
-
4
votes1
answer328
viewsDoubt about POST and GET in php
I tried searching the internet, but I couldn’t satisfy my doubt... I started programming web recently, although I have already used post and get, I found myself in a situation where I was "stuck". I…
-
4
votes3
answers5051
viewsInclude link in a container
I have a container in my code and I need it to be clickable, with href, let’s assume that by clicking it directs to "Google.com". How can I do this? <div class="project-2 v-center">…
-
4
votes3
answers3201
viewsPutting favicon on multiple pages on the same site
There is the possibility of using a different favicon for each page of a website? For example, I have a site with ten pages, I want to put a different favicon on each of the pages.
-
4
votes2
answers32773
viewsSpacing between html paragraphs
At first I want to say that I am beginner in the area, I started to attend recently Information system and my question is to perform a work worth note. by using the tag: <p>primeiro…
-
4
votes1
answer830
viewsHow to access elements of an iframe from an external page?
I need to access an id inside an external page I’m rendering in an iframe on my site. That permission error is occurring. How to resolve this? This is the page link:…
-
4
votes2
answers6646
viewsSubtraction of dates and return the number of years, months and days
Through two input='text' I set the starting date and the final date. By Javascript I want to subtract the final date by the initial one and return the number of years, months and days. I’m using the…
-
4
votes1
answer840
viewsCapture screen return from OLT CIANET equipment with PHP
I am trying to capture data from an OLT CIANET via Telnet or SSH and I have not been successful, I want to know in which slot/UN is connected, the command to display the Onus I use is: show port…
-
4
votes1
answer1102
viewsHow to give Play/Pause in a SWF contained in an HTML?
My HTML is like this: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="440" id="movie" align=""> <param name="movie" value="swf-file.swf"> <param…
-
4
votes1
answer188
viewsPartial does not render
I have a problem with my application. What happens is that I am not able to render a partial in another view. Here the partial code: @model CEF01.Models.Ocorrencia @using…
-
4
votes3
answers1709
viewsColor in css property not working in IOS Safari
I have a <div> tagged <p> containing a phone number. In CSS I have the property with color: #000. However, only in Safari, it is not working. The phone turns white. It’s like Safari is…
-
4
votes2
answers8294
viewsCan you change the vertical order of Divs by CSS?
I have the following automatically generated page layout: I’d like to bring to Source, next to the Date (below). But I cannot change the layout of the generated elements. I can only change a…
-
4
votes1
answer1648
viewsHow to create a slide with two Divs?
I need to create a slide with two Ivs. I made one here only that is appearing a scroll bar below, look at the Jsfiddle. HTML <div class="carrousel"> <div class="item active" id="about">…
-
4
votes1
answer509
viewsBrowser zoom does not work with my CSS
I have inside the tag body 3 Divs with height defined in pixels and width in percentage. When the person types CTRL+ browsers zoom up to 500%. My problem is that the zoom doesn’t work. I tried to…
-
4
votes1
answer92
viewsUse of meta Keywords
Searchers continue to use the meta tag as relevant? There are several articles on the internet saying no,others that yes,.
-
4
votes2
answers7318
viewsshow a div depending on the selected select
I have a select, and depending on the choice of that same select, a form will be shown to insert a contact. I have to bear in mind that the first option of select already has the form to be shown by…
-
4
votes2
answers1287
viewsButton that when clicked shows only content of certain class
Hello, I’m creating a Javascript system, where I need a button to show only paragraphs with a certain class in a div with hidden content. Example: <button id="btn1">Abre classe1</button>…
-
4
votes3
answers540
viewsLink resources, such as CSS, within the structure of a website
I am a beginner and I am facing problems with linking scripts, CSS and images. I have the following structure in folders of my site, just an example: - Pasta Raiz --cadastro --- cadastro.html…
-
4
votes1
answer229
viewsHow to apply a function to multiple objects? (Pure Javascript)
For example, I have a div within a variable obj obj = document.getElementById("objeto"); ..I want a function to be applied to it that way window.onload = function(){ window.onclick = function (){…
-
4
votes3
answers29719
viewsHow to create a button(button) or a link(a) to download a particular file?
I need to create a button that when clicking is performed the download and not open in another tab or window. Can be any type of file both image, pdf, music among others.
-
4
votes1
answer974
viewsHow to call the modal window with parameter in bootstrap?
I would like to know how I can call opening a modal window in the bootstrap by passing a parameter. The idea is to open the inserted item of the invoice to edit the quantity.
-
4
votes3
answers7805
viewsFont does not accept accentuation
Speaking personally, I’m using a custom font, so I use @fontface in CSS. I’m having trouble putting accent, when I put it looks like this, follow the link below: What I could do ?…
-
4
votes1
answer1827
viewsHow to replace the HTML content of a div using php Domelement
I’m trying this way libxml_use_internal_errors(true); //pegar o conteudo de um pagina web $doc = new DomDocument(); $doc->loadHTMLFile('http://www.astralsaudeambiental.com.br/'); $div =…
-
4
votes1
answer345
viewsWhat measures can we take to protect the issuance of malware slips that alter the digitable line?
In addition to PDF issuance, which can hinder some customers by the lack of PDF viewers, what techniques could we use to protect or detect that the generated billet has been modified by malware?…
-
4
votes3
answers4578
viewsCreate a comic balloon-like div
How can I create a div with the appearance of a comic balloon (I don’t know if this is the best expression). Goal: Reality: *Please ignore fonts and colors in question, the focus is tip of the div.…
-
4
votes8
answers12405
viewsHow to switch between true and false checked input?
I have this code and would like to switch between true and false the attribute checked input. Strangely is catching the id of label because the web designer superimposed the label at the input.…