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
answers1321
viewsWhat are the differences between "type=button" and "type=Submit" in an input?
I have a simple Javascript code to add a string to a list ul: JS: function init() { var botao = document.getElementById("addButton"); botao.onclick = handleButtonClick; } function…
-
5
votes1
answer435
viewsHow to display only the first row of a table?
I have a table with summaries about a particular client, where the first line is the main content to be displayed, and the rest is a mere complement. I know I could apply display: none, but I…
-
5
votes2
answers386
viewsa:Stop working with :visited or :link
I made 5 links and set them to change color using a:hover and a:visited. The problem is that when I use a:visited, the settings of a:hover stop working, the same happens when I use a:link. What…
-
5
votes4
answers1021
viewsBalloon that brings information about the page
I have the following code. <html> <table> <td>..texto..</td> </table> </html> I would like to click on the text of this td to climb a balloon over the page and…
-
5
votes1
answer2348
viewsProblem with accentuation when generating PDF with dompdf
I am generating a PDF report using the dompdf API, and the accentuation words are not being displayed correctly. I put the charset='utf-8' tag inside the head, but it does not solve the problem…
-
5
votes3
answers308
viewsCentralize elements using margin
I don’t know much about CSS or HTML, but I was building my site and I came across the following problem: In the image above to see that all thumbnails are arranged and perfectly aligned. When I…
-
5
votes3
answers2761
viewsChange active menu item depending on scroll
Does anyone know how to do the effect that activates/disables menu items depending on the scroll? Like for example on the site PHP the Right Way, menu items turn on/off as you scroll the page. I…
-
5
votes2
answers2187
viewsRun a Javascript function from the site link?
Example have the link: www.meusite.com.br/index.php?subject=conteudo do assunto;message=teste de mensagem I want to call the function onclick of that button automatically: <input value="Enviar"…
-
5
votes0
answers76
viewsMethod to protect IIS from hotlinking
There is some efficient method against hotlinking pro IIS. I tried two but they did not work. <!--Método 1--> <rewrite> <rules> <rule name="Blacklist block"…
-
5
votes1
answer780
viewsValidate captcha with PHP
I have a captcha in a form where an image with 5 randomly generated values is displayed. How do I validate the captcha and only send the contact if the input value is equal to the one generated by…
-
5
votes1
answer1238
viewsActivate HOVER without clicking the same div
Next, I have 2 tables, the items in the second table have Hover. I need to mouse 1 item of the first table and it activates the Hover of the respective item of table 2, but I can’t pull the same id…
-
5
votes2
answers1114
viewsHow to connect two SELECT (combobox) in PHP and do Auto Fill?
I wonder how I connect two select. As if it had a category and a sub-category, but I want the sub-category to appear when I click on the category. I have two tables in bd a member and another…
-
5
votes3
answers75
viewsShould I use Everywhere or just Fonts?
I know to use in instead of px in sources for a good performance of its application in cell phones, but I only use it in font size. Shall I wear in also in places like margins, paddings,…
-
5
votes2
answers986
viewsWhat is the best practice for integrating external content into my website?
I am developing a site in PHP and I will need to integrate a content that will be on a page of an external site. This page will be with little formatting, without header footer and sidebar, I’ll…
-
5
votes1
answer1759
viewsCenter element in the middle of two float elements
I am developing a site that, in a given DIV, has three elements with defined width and height. These three elements are stylized according to the following rules: .blocks-h{ width: 320px; height:…
-
5
votes2
answers419
viewsIs it possible to restrict access to variable information with Angularjs?
Hello, I am new to development and would like to know if there is any way to hide information from variables in Angularjs , I am using a Mongolab API and did not want to make my apiKey visible to…
-
5
votes2
answers463
viewsToggle text and class of a link when clicked - jQuery
I’m trying to make the delegation an event click There is a link within a table, how this jsFiddle example shows: The result obtained as you can see, is: By clicking on the link "Activate", the…
-
5
votes2
answers39330
viewsHow to make a vertical line
Hi I was wondering how does a vertical line with this code: <hr> She by default is horizontal, really wanted her vertical, anyone know how it does? I just wanted this code because I have it…
-
5
votes1
answer188
viewsHow to keep a rotated text centered on a dynamic height div?
Basically my problem is in color div, and rotated text. I need the color div to have the minimum height relative to the size of the rotated text, and the maximum height to be relative to the…
-
5
votes1
answer838
viewsHow to get a CSS attribute from a tag?
Hello, I need a help. I would like to know how to get values from an html tag using javascript. such as: take the marginLeft value of an image that was determined by a css file. I hope I’ve been…
-
5
votes7
answers11400
viewsHow to validate phone in php
I’m trying to validate the phone number, both landline and mobile, and I’m trying to do so no matter how the user writes: 11965453789 (11)965453789 (11) 965453789 (11) 96545-3789 It will always save…
-
5
votes2
answers6328
viewsHow to view HTML code?
How can I display my code HTML? I have a field where the user can change his nick by putting colors, and I want to display the code used as a hint to the user. My code: <pre> <code>…
-
5
votes2
answers569
viewsDOCTYPE declaration of HTML
By the standards of the W3C we must declare so: < ! DOCTYPE html >, however I saw on a site that they declared only this: < ! DOCTYPE >, the semantic value is lost or the browser reads…
-
5
votes4
answers3932
viewsHow to align 7 elements on the same line?
I’m developing this site in bootstrap http://raissafigueiredo.com.br/masterclinic/ However, downstairs in the specials section, I have 7 elements in the same line. I had to use a "technical…
-
5
votes1
answer245
viewsHow to know the name of an image with JS?
I wrote a code in which he creates a slide of images in a div, I wonder if with Javascript it is possible to know the name of the image you are passing on the slide, because when the image appears,…
-
5
votes3
answers271
viewsHow can I make "..." appear in a certain class after reaching a limit of carcter
I wish that when I reached an estimated threshold of carcter ... not to pollute the screen.
-
5
votes2
answers2638
viewsUpdate Div HTML PHP Javascript
I’m having some problems updating a div without updating the full page. Follows the code: <div class="main" align="justify"> <div id="mensagens"> <?php echo…
-
5
votes2
answers879
viewsAvoid more than one register in the database
I’m having problems because I’m making a community system where the user registers and shares stories. More when I went to test clicked on register 2 times and 2 times it went to the database even…
-
5
votes2
answers868
viewsIs there a way to open an HTML page within a modal? How?
I have the following code that opens a modal: <div class="uk-modal" id="new_task"> <div class="uk-modal-dialog"> <div class="uk-modal-header"> <h3 class="uk-modal-title">{{…
-
5
votes4
answers318
viewsDiv inside another broken div
How to insert a div into another div without either of them making the line break. I want to do it this way because I’m in the development of a Clan website and the index has to have the login or…
-
5
votes1
answer550
viewsCompilation/Minification of HTML, CSS and class names
On the CSS side I already do the compilation and minification of the CSS file. Doubts began to arise when I noticed that some sites work with a type of Compile including in`HTML files. In other…
-
5
votes2
answers288
viewsWhat is ARIA (Accessible Rich Internet Applications)?
What is the function of this technology, how to use it or even, when it is necessary to make use of it ?
-
5
votes3
answers461
viewsHow to run . sh file on button
It is possible to run a file that .sh in a button , example: /bin/importa.sh in a <a href""></a> also serves.
-
5
votes1
answer11856
viewsIs there any way to save edits made in the Inspect element?
Well, as the question says, is there any way I can save locally in my browser the changes made in inspect element?. So that every time I go to that site, it’s edited like I did? The preferred…
-
5
votes1
answer227
viewsFreeaspupload ASP Classic stopped working
At the company where I am working all the systems were built in ASP Classic, and we used Freeaspupload to download files sent through form, but this morning this class stopped working from nothing.…
-
5
votes1
answer1448
viewshow to sort by line number in a query in postgres?
To popular the grid of a views I’m using the database, initially I put the table ID to be the view’s Dice, but when some record is deleted from the database the Dice is not sequential.…
-
5
votes2
answers689
viewsDo not send via POST elements within div "display None"
I want to remove the Ivs that are left with display:none with the function remove() jquery and when they are selected as display:block they come back.... because I want to send a form via POST that…
-
5
votes2
answers103
viewsHow do I represent this using CSS?
Does anyone have a hint how to represent this using HTML and CSS? Without using Absolute position, just with edge or other thing. (That would be the image of the art I want to transcribe in css)…
-
5
votes1
answer811
viewsMenu with space between li’s
My menu has spaces between the li’s. I’m using a reset css, but even though I didn’t need to already tried to put margin: 0; and padding: 0; na ul and ul li and it didn’t work, if you can help me I…
-
5
votes3
answers17714
viewsDisable Submit button to make no multiple calls to the server
I am trying to disable the button after clicking , so that it does not keep sending the form data several times if the user keeps clicking. my button <input type="submit" class="formButton"…
-
5
votes5
answers10050
viewsRun script js when trying to close the window
I have a form that is a popup (overlapping div) <div class="bloco-newsletter" style="background-image: url(http://bhpump.izap.ws/plus/imggen/imageChangeColor/005873/bg-newsletter.png)">…
-
5
votes3
answers1304
viewsDownload HTML link from the bank
I am recording an address in the bank and with ajax I search it for display to the user. Provisionally, I am recording it in the input below: <tr> <td>Download:</td>…
-
5
votes2
answers6432
viewsHow to enable and disable links successively?
I have five links, and initially only the first link is enabled. When this first link is clicked, I want it to auto-disable and enable the next, that is, the second link, and when the second is…
-
5
votes2
answers768
viewsHow to make a gradient at the ends of a line, with CSS?
Probably this may be a repeated question, but since I don’t know the name of the effect I can’t find anything on it, the effect I want to do on the edge is exactly the same as the image below: How…
-
5
votes1
answer562
viewsDo I really need to have the src and ng-src attributes in the IMG tag? What is the function of each?
I saw here that we have the creation of tag <img> with the attributes src and ng-src. It really needs to be? Even more that here the two attributes have the same value.…
-
5
votes2
answers626
viewsHow to hide an element after a certain time?
So, I have a div who shows up every time I submit a form, wanted to know how I make this div disappear after a while.
-
5
votes1
answer905
viewsIs it possible to modify the HTML when writing an email in Gmail?
The intention is very simple, I want to make a <strike> (strikethrough) in the text of the email, p.ex.: tacked. I found the library Kartiktalwar/gmail.js: Gmail Javascript API, but it…
-
5
votes3
answers458
viewsSearch between Jquery columns
I own a td with client code and in another td I have a customer name relationship with the client code Example: codigo | nomes 0001 | Anderson Silva(0002) | Minotauro (0001) | Lioto Machida(0003) I…
-
5
votes1
answer578
viewsDynamically create Divs
Sirs, I am working with tabs in Jquery. I have a page called inclu_server.php where I do the Insert in the database of as many servers as I want. I need that after clicking the button next the…
-
5
votes2
answers1770
viewsDifference between the types of buttons
What is the difference between the following components ? <button type="button">Click Me!</button> <asp:button ID="cmdAvancar" runat="server" >Click Me!</asp:button>…