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
-
8
votes2
answers27342
viewsSubmit form with <a href=""> instead of <input="Submit">
I was given a layout of a form: <form method="post" action="" id="mail_form"> <div id="newsletter"> <input type="text" name="email_newsletter" /> <div class="newslink">…
-
8
votes4
answers17179
viewsHow to know if an element was clicked using pure Javascript
How to know if a descendant of a <li> was clicked using pure Javascript. <div id="list"> <a href="#">one</a> <a href="#">two</a> <a href="#">three</a>…
-
8
votes1
answer348
viewsCollapse Menu after page refresh with localStorage
How can I close a menu and keep it closed after the refresh of the page using jQuery only? It would be something like at this link. By clicking the button the menu is reduced and remains so even…
-
8
votes1
answer279
viewsHow to view/hide content from a page according to the "HTTP status" of the site?
I have the following problem... Scenario: A site with HTML-only pages (we cannot use a server-side language). We embed video from Youtube, but some companies, as we know, block their employees'…
-
8
votes2
answers6863
viewsCapturing audio over the microphone via Javascript or HTML
I need to capture microphone audio and record to file. Send to PHP server. As I do, in the examples I saw here, I didn’t notice how to record the sound files.
-
8
votes2
answers478
viewsHow do I get a loose number in my HTML?
Consider the following code: <span class="test"><span style="color:green">Teste</span>:</span> Text<br><br> <span class="test"><span…
-
8
votes2
answers8320
viewsRedirect https website to http
I currently have a site where uses an SSL certificate, as the certificate has expired and it needs to be renewed, SSL error occurs in any browser making users' visits impossible. I’d like to…
-
8
votes4
answers2040
viewsProblem with height of Ivs that do not accompany each other’s content
I have a problem that I think is easy, but I can not understand how to solve. I have a structure like: <div class="conteudo"> <div class="esquerda"> </div> <div…
-
8
votes2
answers3674
viewsHow to create a 404 error screen
I’ve seen a lot of tutorial teaching to customize 404 error screen, but only in CMS as Wordpress, I wanted to know how I do to style a 404 error page*(not found)*, so that the user sees a beautiful…
-
8
votes4
answers47612
viewsPin the footer of an html page and follow the page content
I need to pin the tag footer at the end of the html page, but when the content exceeds the page by tag footer should follow the content and not be fixed. See the CSS code is the HTML code I’m using…
-
8
votes1
answer158
viewsCreating PHP object from HTML
I imagine frameworks usually do the following to create a simple text field: $campoTexto = new CampoTexto("nomeDoCampo", "valorDoCampo"); $campoTexto->gera(); The result would be: <input…
-
8
votes3
answers44043
viewsHow to put icon inside input using Font Awesome?
I’m trying to make a search field with an icon using Font Awesome, I want it to look like this: but he gets like this: What is the best way to put the button within the input? HTML: <form>…
-
8
votes3
answers1513
viewsIs there an application security flaw when using AJAX?
I am a programmer HTML/CSS/PHP a few years and by incredible and more impossible it seems, I’m just entering the world of Javascript with jQuery and AJAX now. My question is whether the security…
-
8
votes5
answers35403
viewsHow to align a footer element always at the bottom of the page?
I have a page on which there’s a div with various contents inside, which are modified according to the user’s wish. Below there is another div who is the Footer. In case I put one position:…
-
8
votes1
answer5235
viewsWhen to use input type="button" or input type="Submit"
I have a simple question facing the semantic part. The button I can modify your actions using the Javascript. When I should wear it or trade it for submit ? <input type="button"> e <input…
htmlasked 10 years, 3 months ago Allan Ramos 2,488 -
8
votes2
answers18126
viewsOpen DIV after clicking a Link Button
I would like to know how to create, whether in CSS3, Javascript or Jquery, a button that, when clicking it, is revealed a DIV on it, and opens a new page with target _Blank. I’ve done a lot of…
-
8
votes6
answers14224
viewsDistribute list of <li> in two columns
I’m trying to create a list with 4 blocks, but they don’t align side-by-side correctly, they’re like this: I wish they’d stay that way: HTML: <li></li> <li></li>…
-
8
votes1
answer107590
viewsHow to insert favicon into an HTML?
I’m starting to play in HTML and would like to know how to implement a favicon.
htmlasked 10 years, 1 month ago João Pedro -
8
votes4
answers19339
viewsHow to go to a link by clicking on a div without using <a href>
I need to redirect the page to a link specific by clicking on a div, without using the <a href> of HTML. I’m using HTML, CSS and jQuery and PHP. Follows an excerpt from the code: <div…
-
8
votes1
answer1089
viewsdir, html or css attribute
The attribute dir is usually omitted for languages LTR (default) and used for RTL - which are written from right to left (Arabic and related), for the purpose of changing direction, but found…
-
8
votes1
answer662
viewsHMVC and HTML Componentization
I have read several articles on HMVC, both in PHP and in other languages, and in all of them the implementation of the standard revolved around having a "Master Controller" which requested the…
-
8
votes3
answers2534
viewsWhy doesn’t the height accept percentage?
I created this Fiddle as a test. Wanting me to have the screen split half green, half red, why is it on the property height I put the value followed by "%" to div disappears? Being here saying you…
-
8
votes4
answers599
viewsTool for mobile zoom
I am developing a mobile application with Apache Cordova, I need a tool similar to Zoomify, but for mobile. I tried to use Zoomify, I did not get good results, which tool is the most suitable for…
-
8
votes1
answer620
viewsHow to center a binary tree?
I need to correctly center this binary tree model. jQuery or JavaScript can be used. I’ll need to generate the code with PHP, then you have to have a certain logic in html. Another detail is that…
-
8
votes1
answer534
viewsRotate an arrow on a canvas
I need to draw a flow dynamically based on a few user choices. In this flow I want to draw the chosen hypotheses (blue circles with numbers) and the direction between the choices (lines with…
-
8
votes1
answer1935
viewsDiv that can be dragged
I would like to allow users to move some things from my site. Of type, the user could drag the menu to another place to better position the reading.
-
8
votes3
answers579
viewsHow to join data from another table
How to join data from another table. On the bottom bench I have 3 tables: dados: id, nome, end, tel... etc.... cidades: id, nome_cidade status: id, nome_status $sql = "SELECT * FROM dados ";…
-
8
votes1
answer3373
viewsHow to change content on a page?
I’m trying to change some fields of a site, what I want is to open this site at my address, only with some of its contents changed. I’m using the file_get_contents to open the site, but I face two…
-
8
votes1
answer29561
viewsInsert Whatsapp Share Button into HTML pages
How to insert a Share Button into Whatsapp in HTML projects?
-
8
votes2
answers601
viewsWhat is Ufon and what is it for?
Recently when I was viewing the source code of an old Wordpress theme, I came across a code Avascript that contained the following: Cufon.replace('#navigation > ul > li > a', { textShadow:…
-
8
votes1
answer347
viewsHow to create an html log with log4net
I have a project that already uses log4net, but I would like to show this log in HTML. I searched several sites and nobody implemented this solution. Does anyone have any idea how to do that?…
-
8
votes2
answers2503
viewsJavascript, action on a selected text
People would like to know how to do an action on a selected text in the textarea, for example I selected the word 'hi' and when I click a button with Onlick, change the text to 'bye''. I await the…
-
8
votes1
answer255
viewsHow to show an element for a few seconds and then hide it?
Is there any way I can inform a visible : true for time? I want it to be true only for a few seconds then come back to false.
-
8
votes3
answers2984
viewsThe ideal way to build forms is to use table or div?
I have a form to develop, will be 100 questions divided into blocks (will have to be invisible, will have forward and back button, block validation etc), probably the form page will be very large.…
-
8
votes2
answers1853
viewsHow to convert an html string to jQuery object?
How to convert a string HTML in a jQuery object? var objeto = '<div id="minhaDiv"><span id="meuSpan">Span</span></div>';
-
8
votes5
answers1153
viewsIf the image is large vertically, height: 100%, if it is large horizontally, width: 100%?
I have a question, as I do to insert images with different sizes inside a div, and if the image is too large vertically, it stays with height:100%, and if it is very large horizontally with…
-
8
votes2
answers17280
viewsHow to crop an image - HTML
I need to make an image inside a div be with a width of 600px and a time of 300px without distorting the image. I have a notion about css3 and Html5 and am working on the layout of a blog on the…
-
8
votes2
answers670
viewsSearch within html - no database
I wanted a field <input> on my page on which, if I typed something, I would search for the word I typed inside that section. I’m not using database after all, no need for it (the data is in…
htmlasked 8 years, 9 months ago Adson Henrique 83 -
8
votes3
answers1426
viewsHow to take data from a tag and calculate?
It is possible I get a value within a tag <span></span>? Ex: <span> 5% </span> and calculate a discount at a value? Example: I want to get the value of 5% that is in the tag…
-
8
votes2
answers678
viewsMixing Javascript libraries in a project
I wonder if it is not good practice to load several different Javascript libraries in one application. For example, the project has an X deadline for delivery, but should be done in Angularjs but…
-
8
votes3
answers10028
viewsHow to display input type range value
Well, I have the following code: <input type="range" name="vol" min="0" max="100"> I would like to know how to show next, the value in real time that is selected, ie the user dragged with the…
-
8
votes2
answers154
viewsCreate a vertical Label or Input
I need to create a LABEL or Input so that the typed text is Vertical, as follows: M E U T E X T O Would that be possible in any way? This is required for printing banners in this format.…
-
8
votes1
answer324
viewsCSS reset is always the same?
Is CSS Reset always the same, or are there others who maintain the same pattern but have more specific features? It is a rule that all CSS Reset be equal, that is, if I create mine with what is…
-
8
votes3
answers170
viewsCreate markup with predefined symbols
I didn’t know how to pick a specific title before my doubt, so it was that vague medium anyway. I’ve been trying to do the following for a while: Assuming I have the <p>: <p>Olá, $está…
-
8
votes1
answer4160
viewsSimulate click with jQuery after inserting link via jQuery
I have to open another tab with a link that is returned to from PHP to jQuery. I used window.open but he asks to release the popup and the client doesn’t like it at all. So I thought I’d do, when…
-
8
votes4
answers5196
viewsHow to save line breaks from a textarea to the database?
I have a textarea and would like to save the user-made line breaks in the database. For example, user writes the following: "Lorem Ipsum. Is simply. Dummy text. Of the printing. And typesetting."…
-
8
votes2
answers314
viewsIs there any difference between clip and overflow property?
Studying on the property clip I came across the following statement: The estate clip works in a similar way to overflow with some differences. It gave me some doubts: This statement is true? What…
-
8
votes2
answers776
viewsMarkup language equivalent to HTML?
Just for the sake of curiosity, I’ve been researching about and found absolutely nothing related. HTML is a text markup language, and there are others like XML which is the only one with a clear…
-
8
votes1
answer2473
viewsIs it possible to create a site with HTML and C# without ASP.NET?
Is it possible to create a site only with HTML and C#, without ASP.NET? In general, as?
-
8
votes2
answers671
viewsWhat is HTML Outline (HTML Outlines)?
What is the function of an HTML sketch (HTML Outlines)? How he is formed? When? Could someone give me a profound explanation on the subject?…