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
-
6
votes2
answers169
viewsAnimation with Javascript/jQuery
I have this html: I wish that when the user dragged, the buttons would appear like this: When you drag it again, disappear ... How could I do this with Javascript/jQuery? Follows the code: <div…
-
6
votes4
answers148
viewsMy functions only return 0
I was trying to do Bhaskara’s formula in functions, but something went wrong and only return 0 no matter what inputs I put in. Here’s the code: function bhaskaraP(ab, bb, cb) { var Mb = bb * -1 var…
-
6
votes1
answer102
viewsAdd a distant circle around a CSS image
I need to circle around a div with photo, however my image is not centering on the expected circle, having this result: I tried to do it that way: #avatar { margin: 0 auto; background-image:…
-
6
votes2
answers384
viewsCan the <link> tag be used outside the <head> tag?
Practically all documentation relating to tag <link> suggest her call inside the block <head></head>. Example: <head> <link rel="stylesheet" type="text/css"…
-
6
votes1
answer453
viewsWhy is Serif Font used so little on the Web and in Apps?
I do not seek answers based on opinion! The other day I saw one Kindle, and I noticed that he was using by default a font-family with serif. What is a serif source After that I was asked. Amazon…
-
6
votes1
answer44
viewsFocus on minutes in time type input
Is there any way to "focus" the minutes of a input of the kind time? By default, the focus() direct to the "hours" that is the beginning of the input, empty or filled: <link…
-
6
votes2
answers162
viewsCentralize Divs responsibly
Next, I always looked for a solution to this type of problem, but never found. I have the following codes. <style> .allboxframes { margin: 0 auto; max-width: 100%; } .box-frames { margin: 0…
-
6
votes2
answers301
viewsDiv with position: Fixed loses total container width
In the example below, see that the div naturally occupies the whole width of the body, but when I click the button Fix to change the property position for fixed, it loses its full width, looking…
-
6
votes2
answers67
viewsIs there a problem with using invented tags and attributes?
I was looking at some websites and noticed some tags that are not patterns like <div> <span> etc.... So I decided to test and saw that these tags work normally with css and javascript,…
-
6
votes1
answer131
viewsWhy can the class be picked up by Javascript while loading the page and the ID not?
I was doing some tests with Javascript and I came across an interesting "phenomenon", but I could not find a good explanation to explain it. Follows the code: <!DOCTYPE html> <html>…
-
6
votes1
answer132
viewsIs using ID as a global variable a good practice in JAVASCRIPT?
I discovered that there is a new way to rescue and define values to any HTML tag, using its ID as a variable: <html> <head> <title>Meu Teste</title> </head>…
-
5
votes3
answers2236
viewsIs there any way to make a standard browser tooltip appear without putting the text in the title tag and without tooltip plug-in?
I am asking this because the application is almost ready and used a plug-in that uses the tag title. This plugin causes clicking on the element to open a popup (in this case a confirmation box),…
-
5
votes3
answers1058
viewsCreateelement() method in PHP
In javascript, I can do: var span = document.createElement('span'); span.innerHTML = 'foo'; span.className = 'bar'; Is there something similar for you to create a ElementNode in PHP, at least with…
-
5
votes2
answers399
viewsHow to show value of an attribute in content: of a pseudo-element?
I want to show the value of an attribute as text. <div title="12:56pm"> <span data-measureme="1"> <span>hi</span> </span> </div> Example that doesn’t work in…
-
5
votes2
answers4564
viewsInternal search form
I have an internal search form on the site. <form method="get" id="searchform" action="/search/"> <div> <input type="text" value="Pesquisar..." name="q" id="s"…
htmlasked 10 years, 12 months ago Ennio Sousa 686 -
5
votes3
answers63205
viewsImage with 100% width
I have the following CSS statements applied to an element: .minhaClass { float:left; width:100%; height:560px; background:url(../imagens/corpo/imagen.jpg) repeat-x top center; } This will happen on…
-
5
votes3
answers2323
viewsHow to know if you are resize in width or height?
Is there any way to see if the resize() window is occurring in width or is occurring in height?
-
5
votes2
answers1856
viewsHow to select/deselect an input select Multiple at each mouse click? (without Ctrl)
I’m trying to make a script to select several options of a <select multiple> every mouse click. So far so good, I got and follows the code: var numSelected = 0; var valSelectedArray = [];…
-
5
votes3
answers54
viewsRemove margin with jquery
On a given page, when opening, I need to remove the margin class content to stay as I intend. CSS: .three-columns .content { margin: 20px 250px 0 250px; } .content { margin: 20px 0 0 250px; } I’m…
-
5
votes2
answers24059
viewsView div in Hover
How to display a div, which will have a summary about the movie (text), and a button to (SEE MORE) while hovering the mouse over an image. Example: <a href="#">IMAGEM</a> When hovering…
-
5
votes2
answers262
viewsHow to use fadein() in addClass()?
I have ten "Id" class elements, minus the first. By clicking a button I remove the next Hide and add the class "show", but when adding it I want to put a fadein effect(). It is possible?
-
5
votes5
answers213
viewsCSS Child selectors on IE8?
Today I needed to fix to IE8 in which I used the following selector to align 3 boxes horizontally. #page-content .section-servicos .box-servico:nth-child(3n+2){ margin-right:0px; } in IE8 this code…
-
5
votes2
answers903
viewsIs it possible to upload files without using php, just with jquery?
I’ve searched a lot of sites but I’ve never been able to figure out if it’s even possible, someone can help me?
-
5
votes1
answer190
views -
5
votes1
answer298
viewsProblem setting CSS within style
I am facing a problem. I want to put all my CSS inside the Style tag as it shows my code below: <style> input[data-column="1"] { display: none; } input[data-column="2"] { display: none; }…
-
5
votes2
answers97
viewsRemove banner depending on window size
I’m using a template with the Responsive layout. I have a banner on the right side of a website. What I’m doing is scrolling the page and the banner goes with the page. When I scroll down, the…
-
5
votes2
answers21088
viewsHow to make these Divs responsive?
I am creating "informative" to put on the home page of my site and I need a light. I wanted him to stay that way: And when the visitor’s screen resolution was decreasing, the title and description…
-
5
votes2
answers2939
viewsIs there a problem with not putting "/" (bar) in auto-closing tags?
When I was learning about HTML, I read that there are two types of tags, those that are necessary to 'close', (<tag></tag>, ex: <div></div>) and those with self closure…
-
5
votes2
answers937
viewsHow to animate the layout of Divs and caption, when doing Hover in one of these elements?
I’m creating a website, I’ve been asked to play a prank on the team. According to this image, when :Hover in one of the parts, all the text and image are ordered: I don’t know how to take this boot…
-
5
votes1
answer5119
viewsTransition effect on jQuery
I’m starting in jQuery and I have a question: is there any way to let the change down with a kind of transition? <html> <script type="text/javascript"…
-
5
votes2
answers671
viewsSelect with transition in change with onchange
How to add a transition effect (fade) in a select with onchange, that when the object <div> change the same occurs a transition? Below follows a print table that was made: And this is the…
-
5
votes2
answers6999
viewsHow to change content of a select from another select
How can I put a button related to each other? Example: <span class="IWLABEL10CSS" id="IWLABEL7">Distrito</span> <select name="PAIS" size="1" width="180" class="COMBODISTCSS"…
-
5
votes2
answers2231
viewsShow image and upload an input
Hi, I would like to know how to get the path of an image contained in the value of a file type input. I am using the following code: $(document).on("change",'#Upload',function(){ var…
-
5
votes4
answers8606
viewspopup open only 1 time after being closed, even after reloading page
I wonder how to create one of those popup that usually appear in large portals (not in flash), but with div and javascript pure, which after being closed, the script detect this and it will no…
-
5
votes2
answers5830
viewsHow to make the printing of pages go out the way it is seen on the screen?
I need to make a page that, when the user prints, come out exactly as it is seen on the screen (with the styles), I’m using Bootstrap version 3.1. Is there any plugin in Javascript that does this?…
-
5
votes4
answers6094
viewsSide banner that accompanies the scroll
I wanted to add a side banner, depending on the scroll, the banner would accompany the page. The picture shows what I want to do: But the banner can never cross some boundaries, IE, can not go over…
-
5
votes2
answers1644
viewsHow to store files in the browser cache
I tried a Google tool to test the speed of my site. http://developers.google.com/speed/pagespeed/insights/ I was shown several points that need to be corrected, such as "Take advantage of browser…
-
5
votes1
answer276
viewsHow to integrate a select into a table?
I have a table. In Plano 1, I used the jQuery Heapbox plugin, but since I’m not good with Javascript, I didn’t know how to set it up, I would like the select heapbox in Plano 1 to have the same…
-
5
votes1
answer1123
viewsWhy is this Bootstrap Tabs configuration not working?
The code is as follows:: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Site</title> <link href="css/bootstrap.css" rel="stylesheet" type="text/css">…
-
5
votes1
answer9688
views -
5
votes2
answers586
viewsError with CSS, bar appears where it should not
I’m working on a college project where I need to make a website for a pizza place. I’m making an embryo of the site, but when I add the navigation menu, a bar appears on top of the div which should…
-
5
votes2
answers30811
viewsTable cell with fixed size
How to set the width of spine of two tables so that one does not have a cell bigger than the other? When I try to create, the cell of the second table always gets bigger than the cell of the first…
-
5
votes0
answers1438
viewsHow to center img within a div?
I am making a grid of images (which will be links to the lightbox), I want 5 images per line, but they have different sizes, so I made the following html for each image: <div class="thumb">…
-
5
votes1
answer894
viewsHow to put Wordpress bilingual?
I had to put a website (template developed by me) under CMS Wordpress in two languages, but the plugin qTranslate not enabled in my version. Is there any way to do it without plugins? Or maybe a…
-
5
votes1
answer3362
viewsHow to create an empty block?
How do I create an 800px high EMPTY+TRANSPARENT block per 1000px width? And because the code below doesn’t work for that? html <div class="block"></div> css .block { height: 800px;…
-
5
votes1
answer13641
viewsHow to insert word break into textarea in text inserted via jquery/javascript?
I have a textarea and would like to list some items in it one on each line. I am already inserting the text normally in the textarea and separating the items in commas currently: nomUgs =…
-
5
votes5
answers1182
viewsHTML element does not become visible
I have the following HTML: <form action="cadastro/cadastrando.php" method="post"> <div class="elemf"> <label>Nome</label> <input id="nome" type="text" name="nome"…
-
5
votes3
answers138
viewsDoes every DIV have a relative position?
I heard from a development professional that: "All div is relative even without you define position:relative" That is correct?…
-
5
votes2
answers1306
viewsJquery Mask in dynamically created fields
I have a product values registration page, where I have an input field with value mask in R$. But since this field is created dynamically after a search in the comic book, the mask then works only…
-
5
votes1
answer5160
viewsPin a footer element to the footer
I am doing a job for the college where we were instructed to take advantage of the new semantic tags of HTML5 (Nav, Section, footer, etc). I’m having trouble fixing the footer at the bottom of the…