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
- 
		15 votes6 answers3343 viewsMethods to test websites in different browsers?I would like to know methods to test sites in different browsers, without creating virtual machines. 
- 
		15 votes3 answers973 views
- 
		15 votes6 answers90846 viewsDo I use PHP inside an HTML or an HTML inside a PHP?I made all my site in HTML and CSS, but now I need to use PHP to send some data to a database. I’m just wondering if I modify all my documents to . php or if I use PHP inside HTML (if possible).… 
- 
		15 votes4 answers31096 viewsWriting and reading file via JavascriptIt is possible (if, how) to do the following method with Javascript? The person type in a form some arguments, by clicking submit it will run a Javascript code, in this code the function will take… 
- 
		15 votes3 answers26168 viewsWhat is meta charset in HTML?Can someone explain me this HTML5 code? <meta charset="utf-8"> What is this standard used for and why? 
- 
		15 votes1 answer166 viewsWhy does HTML accept color with random names/strings in the <body> tag?Some time ago I read somewhere about it, but I never understood how it works: Take the example with the word 'chucknorris': jsfiddle Not only with the word 'chucknorris' but any random word always… htmlasked 11 years, 1 month ago Franchesco 5,144
- 
		15 votes6 answers21826 viewsHow to remove auto-fill inputs?I have my email input/password. But always when typing an email that I have already saved login/password, the browser automatically fills in my form. How to solve? 
- 
		15 votes1 answer105429 viewsInsert line break (enter) using HTML codesI’m trying to enter/break a line (\n, <br />, etc) in a title an html element. To do so, I searched for HTML Codes something that was equivalent to   used to give a "space". I found… htmlasked 11 years, 1 month ago CesarMiguel 4,800
- 
		15 votes2 answers2517 viewsWhat are Web Components?What are web components and how to use this technology ? I would like to understand a little more about this technology and visualize an example with its use. 
- 
		15 votes1 answer222 viewsCan displaying many elements in the DOM impair performance?I really like using libraries like Vue and AngularJs and my favorite implementation was to Infinite Scroll (or loading on demand). I mean, I initially upload 15 records via ajax. If the user scrolls… 
- 
		15 votes2 answers1586 viewsIs it good practice to have all sizes of favicons, and include all rel links in HTML?I’ve always used only the favicon.ico on the pages HTML, with it at the root and with its link rel in the HEAD: <link rel='shortcut icon' href='https://site/favicon.ico'> But recently,… 
- 
		14 votes2 answers1611 viewsHow to obtain form data via "POST"?Is there any way to receive data from an external form using the method="post" on my jsf page? I can already do that when the data traffic via GET. <f:metadata> <f:viewParam name="dados"… 
- 
		14 votes2 answers8665 viewsHow to clone an element in Javascript?Is it possible to obtain an exact clone of a given HTML element? so that the clone contains all properties exactly the same? If there is, I would like to know how to proceed to perform this clone,… 
- 
		14 votes5 answers16269 viewsHow to enable a button only when all inputs are completed?I have a <button> which is rendered as disabled(disabled) when page is initially loaded. I’d like him to stay enabled(authorised) when all data are completed in <input>'s. How could I do… 
- 
		14 votes1 answer23562 viewsShow GIF while page loadsI need a GIF to stay working while the page loads. I’ve tried a few ways but none worked. And when the page loads, the Completed!. More or less as it happens on this website.… 
- 
		14 votes3 answers333 viewsIs there any advantage in bringing together all the icons of a website in a single image?I see on most large websites that the icons used are grouped in only one image, which leads to the download of only one file by the user. Is there some benefit in speed gains or is it just a matter… 
- 
		14 votes4 answers1112 viewsIs there an XHTML5 (XHTML + HTML5)?XHTML is HTML with strict syntax (must be a valid XML). I can use it in conjunction with HTML5? 
- 
		14 votes1 answer1274 viewsSelect Multiple with dynamic operationI have a select with 4 options. These 4 options are the number of options that will appear in a multiple select. What I want is as soon as the user selects the option of number of frequently asked… 
- 
		14 votes3 answers596 viewsWhat is the difference between DOM event handlers?I would like to know the difference between, for example, <p onclick="fn()">click</p>, addEventListener('click', fn()); and document.getElementById().onclick = fn();. Is there any… 
- 
		14 votes1 answer1507 viewsFocus, when starting the pageHow best to get an element to focus as soon as the page loads 
- 
		14 votes6 answers29816 viewsHow to create space before or at the end of the text contained between html tags?I need to put a space before a text that is found between tags html, what is the right way to do ? No css... div{float:left;} <div>Texto 1</div><div> texto que quero um espaço… 
- 
		14 votes4 answers14426 viewsWhat is the difference between "margin: 0 auto;" and "margin: auto;"?As the title already says: What exactly is the difference between margin: 0 auto; and margin: auto;? margin: 0 auto; margin: auto; Why can you only use 0? What would be the unit of that 0? px? %?… 
- 
		14 votes4 answers994 viewsWhy does Input Type Email validation accept pointless domains?The input type[email] is intended to validate whether the field is being filled with a valid email. But several times I have gone through questioning in some projects about why this field accept… 
- 
		14 votes2 answers1129 viewsWhat is the purpose and how to use the "display: Contents" of the CSS?I recently saw that there is a new kind of display in the CSS the display: contents, but I didn’t quite understand the intention of using it? https://developer.mozilla.org/en-US/docs/Web/CSS/display… 
- 
		13 votes1 answer865 viewsHow do I increase the brightness of an element with Javascript/jQuery?On my page I have several elements with different background colors. I wonder how I could do to when clicking a button increase the brightness of the color, make it lighter. It is possible to do… 
- 
		13 votes3 answers14931 viewsHow to style <select> tagHow do I style the tag select, like that arrow at the end of the field. The pseudo-classes :hover, :focus, work with this element? 
- 
		13 votes5 answers3441 viewsShow text when typing in textareaConsider the following example: I have a textarea that, when the user enters something on it, a small text just below should be displayed, and at a certain time after the user has finished typing… 
- 
		13 votes1 answer233 viewsHow to calculate the dimensions of an SVG elementHow to calculate the dimensions of an element svg consistently across browsers? In fact the only one not to respond consistently is Firefox. It would be interesting to understand the reason for the… 
- 
		13 votes2 answers1173 viewsIs it safe to minify HTML?Like JS and CSS, HTML can also be "minified": <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">… 
- 
		13 votes5 answers16703 viewsFill left zeros in JavascriptI need to insert zeros left into a field input text. Whereas this field might even be 5 characters + one check digit That is, I need Javascript to fill in zeros to the left according to what the… 
- 
		13 votes2 answers1498 viewsUsing Object or Iframe to import other sites to my siteI was needing to import several random pages from other sites to my site. Wikipedia, for example. I saw that I can use either Iframe (this worked) or Object (does not show content). Then, I would… 
- 
		13 votes3 answers2891 viewsWhat is the need to maintain a`name` attribute in a`HTML`tag?What is the need to maintain an attribute name on a tag HTML? its characteristics are equal to those of the attribute id that still has other utilities like being the key of the arrays $_POST and… 
- 
		13 votes1 answer10939 viewsWhat is parse, and how the parse of DOM works in HTML5I started to study more CSS3 in depth, and I ended up wanting to better understand how the HTML rendering works in the Document Object Model (DOM), and how this HTML and CSS (and JS) markup is made… 
- 
		13 votes1 answer16196 viewsDifference between keyup(), keydown() and keypress()I’d like to know the difference between keyup(), keydown() and keypress(), in my opinion I think they do the same thing, but what is the purpose of each? Performance improvement for each type?… 
- 
		13 votes2 answers133 viewsget original HTML entities with javascriptI need all the original HTML entities of a paragraph, mainly the accents, the methods I know only recover some entities, as the example below where ">" is correctly coded but "ç" does not. It is… 
- 
		13 votes2 answers127257 viewsPut a background image and make it responsiveI’m having a problem putting a background image on my page. I did some tests and it looks like this when I change the window size: When I maximize it’s right: How can I adjust this image to get the… 
- 
		13 votes4 answers31386 viewsSending email via Phpmailer to GmailI can’t at all send an email to my Gmail account via PHP. I had a previous project where I tried to use phpmailer and I can’t get it to work properly (2 months trying). Now I finished a website and… 
- 
		13 votes1 answer2046 viewsWhat is the purpose of the "Return true;" command at the end of a function?I noticed that in many functions in javascript I see at the end a return true. function EscreveDados(){ document.getElementById("divData").value = 'texto'; return true; } and in HTML we have the tag… 
- 
		13 votes2 answers1166 viewsIs it acceptable to use <H2>, <H3>, <p>, <div> tags within links/anchors (<a></a>)?It is acceptable in question SEO and semantics to use tags like <h2>, <h3>, <p> and <div> inside <a href=""></a>? I noticed that to make items on a page people… 
- 
		13 votes3 answers4045 viewsHow to add <li> dynamically in <ul> with jQuery?I’m bringing back notifications and need to dynamically add the path to them, how do I add a <li> to each element of the response? Javascript $(document).ready(function () { $.ajax({ url:… 
- 
		13 votes3 answers849 viewsHow to make a flex container have the width of internal Ivs?Good afternoon, I’m creating a layout with height:100% where I have 2 groups, and within each group I line up the DIVs vertically and if any DIV did not fit in the height maximum or there is resize… 
- 
		13 votes3 answers890 viewsIs it wrong to use more than one <thead>, <tbody> or <tfoot> in a table?I have a table that gets a certain formatting when the elements have a tbody. Because of this formatting, I thought to use the tbody twice on the same table, but I wondered if this would be valid.… 
- 
		13 votes3 answers512 viewsWhat is the difference between the <del> and <s> tag?I saw about the tags <del> and <s>, say that one is to be used in texts/phrases not relevant and another to "delete" part of the text, but when using both tags the effect is the same (a… 
- 
		13 votes2 answers457 viewsUse "left: -9999px" instead of "display: None"? But why?I started to wonder about that a little while ago. I read in some article, which I don’t remember what it is, that for "visibility" sake instead of using display: none or visibility: hidden should… 
- 
		13 votes1 answer996 viewsWhat is the allow attribute in iframes and how to use it?According to the website of MDN Web Docs the attribute allow serves to Specifies a Feature policy for the <iframe>. Translated Specifies a resource policy for <iframe>. Source This… htmlasked 5 years, 12 months ago user168020
- 
		12 votes1 answer1368 viewsHow to detect that the div was rolled to the end?I need to know if a certain div was rolled to the end, using jQuery. I’m having problems because the height of the div is not constant. The goal is that the automatic scrolling of the div does not… 
- 
		12 votes2 answers5931 viewsHow to hide a visible sub-menu by clicking on another JS menu?I have the script below to use in a menu. It changes the visibility of a specific element by its ID. Clicking on a main menu opens a submenu. Is there any way to change the script so that when… 
- 
		12 votes2 answers9742 viewsDynamically adding element with jQueryI have assembled the following structure in HTML: <form name="criaModelo" method='post' action=''> <label for="name"> <strong>Nome:</strong> <input name="nomeModelo"… 
- 
		12 votes6 answers8117 viewsHow to remove a "href" from a <a> tag with Jquery/Javascript?I have a tag <a> with hyperlink properly set. However, I would like to remove it when firing from an event. The same tag has a properly set ID, too (unique, valid, and related). I wonder if… 
- 
		12 votes3 answers1676 viewsHow to set a max-width to a div that increases and decreases proportionally?My div which increases or decreases proportionally is with style: padding-bottom: 75%; Look at this example: Jsfiddle What I want is that the div that grows proportionately lock the size, when you…