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
answer1972
viewsHow to know the number of "children" of a class?
For example, using a for: var children = numero_de_filhos_de_uma_classe_qualquer; for (i = 0; i <= (children); i++){ document.getElementsByClassName("classe")[i]; } HTML <div class="classe"…
-
2
votes1
answer80
viewsProblem overlay @media
I’m having a hard time understanding something. I’m putting together a quiz and when the person doesn’t select any alternative one appears box box with overlay saying that it is for her to select.…
-
2
votes4
answers129
viewsSort H tags within a page
I wonder if there are problems in informing more than one H1 tag within a page, more in relation to SEO, if Google condemns this type of action. And also, if there’s a problem with me reporting…
-
2
votes1
answer136
viewsHow to set `href` on a link in Knockoutjs?
I’m starting with Knockoutjs and would like to know if you have how to attach a link received by AJAX/JSON in a tag <a href="meu link aqui">Meu link</a>. HTML: <div data-bind="text:…
-
2
votes1
answer596
viewsPOST is empty depending on the site I use
I have a project in Codeigniter which is in a folder within the domain. The folder structure is as follows: /domain/Web/project/ I will call it domain and project due to the name of client/website I…
-
2
votes1
answer123
viewsBootstrap usage in legacy layout without Grid system adoption
Consider a complex, legacy, Tables-dependent layout that cannot be converted to tableless. From this premise, if we insert CSS and Javascript from Bootstrap, we could use some components (like…
-
2
votes3
answers1666
viewsHow to view a dropdown menu of a button inside a div with overflow: Hidden?
I have the following problem: by clicking on the dropdown button inside a div with overflow property: Hidden it opens, but gets cropped. Example: HTML <div class="scroll"> <div…
-
2
votes1
answer5093
viewsHow to create direct link to download a video
Good guys, I tried to create a direct link to download a video, but as many probably already know this doesn’t work very well. In fact the only thing that happens when I click on the link is that it…
-
2
votes2
answers329
viewsJavascript interact with Java
It is possible get a javascript value and put inside a java variable. EX: var len = $(" #relacaoPax select[name=tipo] ").length; console.log( "len = " + len ); }); <% int l = len;…
-
2
votes2
answers637
viewsHow to insert values from a Select field into the database
I’m a beginner in Ruby on Rails and need to add a Select field to the user registration form, so I can add a "Type" for the user to be registered. I intend to populate the fields automatically while…
-
2
votes2
answers252
viewsHow to make <script></script> not appear in the HTML file. Only the text appears inside Document.write
I’m trying to insert some scripts of my WHMCS on a page HTML on my website, which returns a document.write(' Texto que irá aparecer ');, and the text contained within document.write is displayed on…
-
2
votes1
answer252
viewsAuto sum system where add up those that were not clicked and Zera where I click
I am trying to do the following: on the screen it has to appear from 0 to 36, the moment I click on any of the numbers the value that is in front of it has to zero. And at the same time in front of…
-
2
votes1
answer66
viewsForms and Iframes
It is possible to use a <iframe> within a <form>? I’m making a code where I step one id in <div> and within a <form> with another id, thus within the <form> want to…
-
2
votes2
answers1389
viewsadd/remove array to an Hidden input
I am using a jQuery code to add products that are chosen in a select list à a table. Included is the product name and quantity, and finally only the button to remove the product from the table. I…
-
2
votes2
answers2749
viewsHow to create a tab menu with Javascript?
I have a menu that if the user selects the option it will change, etc! The problem is that it leaves all other programs open when accessing one. Menu: <body…
-
2
votes1
answer1578
viewsDelphi: How to get information and manipulate Html in a Tstringlist?
Working with the TWebBrowser you can easily interact with the elements, get fields, set values. Example: webBrowser.OleObject.Document.GetElementByID('name').setAttribute('attribute', 'value'); My…
-
2
votes1
answer274
viewsIs it possible to create HTML frames?
I am on a project, where the front-end layer is totally, TOTALLY separate from the Banck-end. They communicate via ajax via REST. And in this project, I’d like to break the html, so I don’t get…
-
2
votes1
answer3266
viewsCall javascript function
I have a VB application that builds HTML pages powered by database data. So I can issue reports by inserting the data into an HTML table. It happens, that sometimes the table becomes too big to be…
-
2
votes3
answers247
viewsBackground Reponsivo
I’m having doubts about how it makes the background responsive. This is the Background. This is how it’s getting at 1024px Wide. I am putting in the Background-Size 100% Width, I wish that when the…
-
2
votes1
answer180
viewsAlign table with header
How do I center the product table? A table has no Id or Class. I wanted to take the table through javascript and modify its width to align with the header. But it has id or class. I can only modify…
-
2
votes2
answers290
viewsAutocomplete for forms
Do you know of any web tools in Chrome or Firefox that auto-complete forms with random text for testing? I have a form of 35 fields and each time I submit for tests, I have to complete it again.…
-
2
votes1
answer9311
viewsHow to change the color of a link when passing the mouse (mouse)?
I have a horizontal menu with the links (example): Home; About; Contacts; The idea is that the home always has the green padding background and the rest of the links with white background. When you…
-
2
votes1
answer855
viewsHow to achieve a slideToggle effect with jQuery?
In this link, i have red stripes in the specialty. I would like to ask what effect I will use for that one div replace the contents of individual stripes with a type effect slideToggle from left to…
-
2
votes1
answer236
viewsJsfiddle {"error": "Please use POST request"}
I am testing this code in Jsfiddle and have as answer: {"error": "Please use POST request"} Here is this code DEMO I followed down the code: Html <!DOCTYPE html> <html lang="en">…
-
2
votes3
answers3156
viewsPosition image to the right and top
With that code, I can keep the image right: <a class="navbar-brand navbar-right"><img src="~/Images/ache.jpg" /></a> But this image is inside a menu bar. I have an image and I…
-
2
votes1
answer5139
viewsClose internal modal bootstrap without closing external modal
I created a form using the Bootstrap Framework that opens in a Modal and this has a list of data that can be deleted but require a confirmation. It happens that when clicking the "Exit" button or…
-
2
votes4
answers193
viewsHow to space the "fixed title" of a page and the posts?
During the creation of the page, I decided to put a "title" which will have the name of the site and some tabs for the user to be forwarded; however, it always overwrites the first post: Each post…
-
2
votes3
answers4201
viewsFire an event using pure Javascript
I would like to know how to dispatch an event using Javascript. I tried using the following code: var atual = document.getElementById('teste'); atual.addEventListener('mouseover', function(){…
-
2
votes1
answer1394
viewsUpdating Div of data from a Json file without flashing the screen
I am using the script below to take values that are in a Json file (which is stored in an industrial automation equipment connected on a TCP/IP network and is "type" a ULTRA basic web server) and…
-
2
votes7
answers367
viewsIs there a problem if I leave a php file containing only HTML code?
I have a php file on my site that serves as a template for a single page of the site, within that file there is only HTML code, there is no php tag <?php ?>, or nothing. It’s like an html…
-
2
votes1
answer448
viewsProblem with CSS button placement
Good morning! I am facing problems with the placement of a CSS button. When the form has not yet applied any validation, it remains in the correct position, but when validations are applied (the…
-
2
votes1
answer569
views -
2
votes2
answers955
viewsChange the image size according to its URL
good morning! I researched (and even found a js called Holder.js that apparently does what I want, but I couldn’t understand it) a way to do the following: Image URL at 700x700 ->…
-
2
votes5
answers25953
views<input type="image" ...> with LINK and HOVER
I can not put an effect on a button, I have 3 images made in photoshop, one that is Normal (Link), another when you pass the mouse (Hover), and one when you click (Actived), however, I can not…
-
2
votes1
answer654
viewsPut active link with javascript?
I have a javascript code, visible in this link http://jsfiddle.net/9nd4j/1272/ I am trying to put the first 3 active links at the same time, if someone clicks on "About MHG" or "Workout Programs" or…
-
2
votes1
answer9410
viewsActive link with CSS :active
Guys, I usually make a php code inside my class="" to show in bold for example a specific menu that is active. <div class="menu-up"> <ul> <a href="index.php?url=menu"><li…
-
2
votes2
answers1558
viewsReturn parent tag ID when clicking a button
I have a set of buttons where I want to return the parent tag ID when a button is clicked to implement a function. <div id="botoes"> <button data-for="cod"…
-
2
votes2
answers364
viewsmove text to a box
Well, I want to pass on the values I put on <input> to the "box" and also have the option to take it. Example: <table border="1" align="center" height="180"> <tr> <td>…
-
2
votes1
answer220
viewsIn multiple Youtube videos, how to play in one and pause another?
I have several Youtube videos on one page, would like it when I give play in one, if another video was rolling, pause it. Is it possible? Without reloading the page...
-
2
votes1
answer964
viewsView engine alternatives for nodejs?
Alternatives that are not Jade and similar, I try to know alternatives that can write the complete syntax (HTML and CSS)?
-
2
votes1
answer349
viewsproblems with the radio button in an html form
I got a problem with mine Radio button. Everyone’s getting selected in mine html. Why does that happen? Does it have any property that?…
htmlasked 10 years, 7 months ago Eduardo Lopes 61 -
2
votes3
answers7456
viewsButton Submit turn a normal link
I need a button with the same values to be "converted" to a normal Link. <input type="submit" name="idPessoa" id="idPessoa" class="text-success" value="<?php echo $this->idPessoa =…
-
2
votes1
answer116
viewsHow to inactivate the empty area of a div?
I have a div on add mouse events but wanted the mouse hit only to work where content existed and ignore the po ex margins. Follow the image( the yellow area is the area I want to 'inactivate' since…
-
2
votes2
answers143
viewsJQuery problem of a MENU with two <ul> ’s
I’m having a problem with a menu. It turns out that when the person hovers the mouse on the link Attending, happens a dropdown, the menu appears because it is with display:none and when it passes…
-
2
votes3
answers729
viewsLogin and password submit!
I have a simple form to login users with login and password... I’m not getting to give Submit via Jquery, look at the code: <div id="opcoes2"> <div id="fazerlogin2"> <form…
-
2
votes2
answers1218
viewsIncrease Size Field Balls for Password
i want to increase the size of the "balls" of a password input, I thought input { font-size:140% /*exemplo*/ } for example. However, only the bar that keeps blinking at the time of typing that…
-
2
votes1
answer105
viewsAffix does not stop correctly at the footer
I’m trying to create an Affix with Bootstrap but I’m having trouble getting it to stop properly in the footer. He bends, and the class .affix-bottom is not applied correctly. When step offset bottom…
-
2
votes1
answer61
viewsSearch in checkbox list
I would like to do a real-time search. Similar to the Datatables, but in a "list" of Checkbox. Follow my list of CheckBox <div class="panel-body"> <div> <label> <input id="chk"…
-
2
votes2
answers22863
viewsDiv’s with input and label on the same line
My situation: I have a form in which the fields are arranged vertically, and with the label aligned to the right and left, as shown in the image below: I wish to leave at least 2 fields per line for…
-
2
votes2
answers38
viewsCan I have different Transitions on the same tag?
Hello folks would like to know if I can have more than one Transition on the same tag? Why do I implement Transitions for the properties but it doesn’t work? *Or this is because I haven’t set the…