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
-
7
votes1
answer12118
viewsBreak lines in CSS without using extra elements
I have 2 elements inline and I need to get the line broken without me having to add display: block; or if possible add but not occupy 100% of the line: <div class="box-error-page cb"> <h1…
-
7
votes1
answer642
viewsRelative sidebar in responsive layout
Solved, look at my answer * I asked this question in the gringas, but I don’t think I could express myself well there. Ask there: https://stackoverflow.com/questions/25481613/side-menu-align I have…
-
7
votes5
answers5323
viewsHow to center a div with position:Fixed?
I wonder if it is possible to centralize a div with the position:fixed ? Currently I tried to centralize using the margin:0 auto but it didn’t work... unfortunately as the width of my div Fixed will…
-
7
votes2
answers863
viewsHow to include a indent when using the tab key in a textarea?
I have a <textarea> which will act as a small source editor. I wish that, by pressing the Tab, include a indent in the text instead of focusing on the next element, which is the default…
-
7
votes4
answers1357
viewsMargin in percentage is relative to what?
I’m currently seeing a youtube video on how to create a responsive website. It, at a certain moment (minute 24.55), establishes the margin of an image in percentage, instead of using normal pixels.…
-
7
votes4
answers1799
viewsMaximum amount of elements sent by a form?
I would like to know if there is a maximum amount of elements that I can send from one form to another POST as I saw GET. I know if I pass my data via GET, there is a maximum length of URL, varying…
-
7
votes1
answer1002
viewsSemantically, which tag should I use for icons?
I have a navigation menu with some icons using @font-face. Each item in this menu has: the icon (with ::before); text, explaining the function of that link. .It turns out that when the page is…
-
7
votes3
answers3350
viewsAdd event to multiple elements without being inside a for loop
I wonder how you would add an event click to all links with the same class without using jQuery, and without this event click is inserted within a loop for. The reason is this: don’t use functions…
-
7
votes2
answers4809
viewsHow to leave a text centered between two horizontal lines?
I need to use text centered on the page and between two horizontal lines in all project titles, as below: The title text has magin: 0 35px, is dynamic and horizontal lines shall increase or decrease…
-
7
votes1
answer3635
viewsHas Marquee been discontinued in HTML5?
If yes, what the tag that I can use to enjoy its functions? How can I limit the beginning and its end, for example: When using the tag Marquee, in the transition of images or texts there is always a…
-
7
votes1
answer11995
viewsKeep checkbox selected by default
How can I make my checkbox appear checked for everyone who enters the site once it has been checked? I am creating in the html field of Wix, free version. The code template I’m using is as follows:…
-
7
votes2
answers22499
viewsAdd attribute to an element
In Javascript we can add the attributes to a given element with at least two ways: var div = document.createElement('div'); div.id = 'meuId'; or var div = document.createElement('div');…
-
7
votes1
answer982
viewsSave space, SVG, Base64 or regular images?
I created this question to clarify doubts that I ended up developing over the months in relation to images and space. While accessing websites, either on my mobile phone or my normal computer, I…
-
7
votes1
answer474
viewsHow to change an HTML 4 document to HTML 5?
I have a project already ready, done in HTML 4.01, as I can change so that it recognizes HTML 5 ? I can just change that: < !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"…
-
7
votes1
answer5624
viewsChange selected item color - select > option
I got the following select. It is possible to change his blue color to one I want to apply, red for example?…
-
7
votes3
answers23448
viewsFooter "glued" at the bottom of the page and responsive (variable height - using bootstrap)
I’ve been following similar issues here on stackoverflow and other web sites, in addition to tutorials on the internet, but the vast majority of solutions do not work as I need, or even are…
-
7
votes0
answers73
viewsHow did Microsoft manage to customize the title style of the tab?
Looking at the new Microsoft page for Windows 10, at least in Ubuntu 14 / Chrome 43, I realized that the font size of the tab was larger than the source of the other open tabs. In Firefox 38, this…
-
7
votes2
answers10715
viewsSimplest way to generate a PDF of an HTML, client-side input
I am developing a didactic material in web language, and within it, there are some exercises where the user has to answer some questions, writing a brief dissertation within a Text Area. After…
-
7
votes1
answer251
viewsCustomizing CSRF Protection error messages in Codeigniter
In the CodeIgniter, if I give a Reload F5 on a form page, the error is returned The action you have requested is not allowed. A protection against CSRF. How do I customize the HTML of that error…
-
7
votes2
answers335
viewsHow to verify that the document markup is HTML5?
I am creating a plugin and need to know if the document is written in HTML5 or not. I thought I’d use the document.doctype, but I don’t know what to compare it to since I compare it to '<!DOCTYPE…
-
7
votes2
answers160
viewsPrevent Insertion of Zalgo Text in Inputs
I have a Aplicação Web that has user registration, I would like to know how to prevent the user send as name, email (registration data) a Zalgo Text. Example of Zalgo Text: T̃͟͏̧̟͓̯̘͓͙͔o̤̫͋ͯͫ̂…
-
7
votes3
answers189
viewsInternationalize the content of Meta Tags
We should internationalize the content of Meta Tags HTML as description and keywords? This internationalization undermines the indexing by google since it will only analyze the page in a single…
-
7
votes3
answers2716
viewsChange class with javascript when resizing the screen
I need a javascript code to change the class menu for the class responsivemenu when the screen resolution is less than 750px.
-
7
votes3
answers13303
viewsStar voting with radio input, javascript/css
I am creating a registration form, in it I will insert a voting system, I wanted to do that when clicking on some star, the previous ones will change color too. (Follows the code I created) <div…
-
7
votes1
answer301
viewsAre there HTML text editing tags "preferred" by google search robots?
I decided to rewrite some 300 files that I will use in a project, because they were originally written directly on google Docs, and when saved as HTML and try to include with requireor include,…
-
7
votes4
answers2128
viewsHow to create a custom context menu?
When right-clicking on certain areas of the page appears the Popup browser default: I’d like to show my own Popups customized! It is possible to intercept the click and open a different menu? Note:…
-
7
votes2
answers310
viewsDiv effect to show two, half-to-half images
I need to do an effect like this example: What I noticed by debugging is that there are two images one div inside the other: <div class="box-image-differ" style="width: 620px; height: 366px;">…
-
7
votes2
answers1185
viewsWhich pattern to use: HTML5 or XHTML5?
Why should we not mix the two and which of the patterns is most useful today?
-
7
votes1
answer150
viewsWhat are the rules for building an HTML email?
I’m about to build an HTML email, but I see there are differences for a common website page. I want the HTML email to have css and appear both on desktop access and tablet and mobile, and should…
-
7
votes1
answer1164
viewsDropdown containing image on the right
I am using Bootstrap to make a bar at the top of the page, and I have a problem: What I need is to open the dropdown, have a list of options, and an image next to it that always has the same size of…
-
7
votes1
answer1595
viewsIs it right to create my HTML tags?
I’m creating a website and I don’t really like adding classes and id’s because I think it makes HTML a little dirty. The system I am developing will not be indexed by the search engines, because it…
-
7
votes2
answers9136
viewsCreate static Selectlist and pass a selected item to the View
I’m having a question about how to send my selectList "status" to my View EditarUsuario. I created my list with the following items: var list = new SelectList(new[] { new{ID="2",Name="Selecione"},…
-
7
votes4
answers327
views -
7
votes1
answer259
viewsHide Divs with similar ID
I have several tags div with the similar id, they all start with cn-, example: <div id="cn-name">...</div> <div id="cn-email">...</div> <div…
-
7
votes1
answer791
viewsForm Validation with Jquery
I’m a beginner in jQuery and I’m having a hard time doing a form validation with jQuery to the CRM of a church that is next: I have a code HTML that is part of a CRM that I am developing. In this…
-
7
votes2
answers18567
viewsPick select selected (only picking first value)
An Alert is displayed (with the sweetalert plugin) and in that Alert has a selectwith names. After selecting the name, the person has to click the button Add, when the person clicks the function of…
-
7
votes3
answers1977
viewsHow to attach events to dynamically created elements and pass parameters?
I have a table that is generated via ajax and a certain column generates a link. As it has been implemented, currently, it writes a code html with javascript intrusive. Something like below: return…
-
7
votes2
answers8300
viewsHow to create a toggle on and toggle off button?
I have seen that in some registers, they are using the button a lot toggle. Someone would know how to do it?…
-
7
votes2
answers5915
viewsHow to leave a span in the center of a div both vertically and horizontally
I have a text that I wish to manipulate with effect, but I need the structure of it to be correct. The structure I need to do, is that each letter is exactly in the middle of a div (a div for each…
-
7
votes2
answers3172
viewsHow to add Card Mask?
I’m having a problem to re-adapt this function in JS. function mcc(v){ v=v.replace(/\D/g,""); v=v.replace(/^(\d{4})(\d)/g,"$1 $2"); v=v.replace(/^(\d{4})\s(\d{4})(\d)/g,"$1 $2 $3");…
-
7
votes1
answer6278
viewsHow to filter the file format by input type file?
When it is sent I do a validation checking if the chosen file is the format I need so: function validaExtensao(id) { var result = true; var extensoes = new Array('xls'); // Arquivos permitidos var…
-
7
votes3
answers1464
viewsHow to change the text of a link after clicked?
How do I do in HTML (or CSS if you have how) the text of a link where it is written "show more" change to "show less" and vice versa after clicked?
-
7
votes4
answers4863
viewsHow to pick the first word of a string with jquery?
Ex.: "First word of string" I want to take the word "first"
-
7
votes1
answer140
viewsIs it correct to omit the "true" value of the Boolean attributes inserted in the HTML elements?
When we insert attributes Boolean in the elements (tag) <html> we do not need to inform the value true, its mere presence already confirms, by default, that this attribute is active. Example:…
-
7
votes2
answers216
viewsMenu Centralized
I’m having many difficulties to align the text from my menu to the center, I’m now starting to learn how to develop websites. Screenshot: The code is like this: <center> <h1>Meu…
-
7
votes1
answer1427
viewsIs it possible to make a line break inside a placeholder?
I would like to perform a line break within the placeholder from a textarea, for example how users can fill it. Is there any way to do that? <textarea placeholder="Excelentíssimo Senhor Professor…
-
7
votes3
answers590
viewsNever use inline styles is never really?
For example the tag canvas: I saw some tutorials on Youtube, and almost all of them used it like this: <canvas height="" width=""></canvas>. Then I should use it in HTML, inline, as…
-
7
votes3
answers24888
viewsAre the accents on my page missing?
I created a page html, however the accents are not being read, already tested the following code but does not work. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> What…
-
7
votes1
answer171
viewsElement Rotation With Arrow
As you see in this image, inside the dark gray ball is a number. It’s 100. That means the pointer has to hit 100. If it’s 0, it has to be in the middle of the pointer. The issue is that this value…
-
7
votes1
answer478
viewsWhat is the security in using input "password" or "text"?
Recently we are on a wave to use the combination of input of passwords with the option to hide/display the password (*** -> abc), with the "eye" technique. I understand this purpose as it greatly…