Most voted "html5" questions
HTML5 (Hypertext Markup Language, version 5) is a generic term for recent web technologies (HTML, CSS, and Javascript). It is also the latest iteration of the HTML Recommendation scheduled for 2014, and featuring new elements and Apis.
Learn more…3,881 questions
Sort by count of
-
4
votes2
answers461
viewsWhat is the Riot.js?
I was reading about some frameworks and libraries for front-end UI development and came across the Riot.js. Giving a quick read on page of the library (in English), I concluded superficially that…
-
4
votes2
answers791
viewsAlign HTML + CSS component
I need to line up two Uttons this way they should be exactly next to each other, but each at an end…
-
4
votes1
answer1384
viewsHow to change IMG(logo) from menu(header) when scrolling page?
I have this menu that has an image: logo.png, as the code below shows <header class="header"> <div class="container"> <a href="index.html" class="grid-4"> <img…
-
4
votes2
answers9324
viewsSubtract days from an input date with javascript
I need to take a data from a type number field and add to a date of a input date. I already did, but now I need to get the result of that date and subtract 14 days, but I can’t get it. I’m a…
-
4
votes5
answers14273
viewsHow to put a colored layer over an image?
div { background: #000; width: 640px; height: 640px; opacity: 0.2; position: absolute; z-index: 99; } <span> <div></div> <img…
-
4
votes2
answers85
viewsFunction Optimization (probably with for loop)
I’m having trouble developing when we talk about for... The basics I can understand now in practice... People have developed this code and I believe it can be reduced to a few lines with for. Notice…
-
4
votes1
answer5406
viewsWhat’s the difference between cshtml and html
Is there any difference between CSHTML and HTML, mainly in security, performance and application? There is some loss when using HTML on a project ASP MVC, and what are the benefits of using the…
-
4
votes1
answer111
viewsGeolocation with Mobile Data
Well, I’m trying to make a project to be used in smartphones, more specifically in Android, but not this Developed on Android ! I’m just using HTML5 and CSS,all Responsive, and I want to put a…
-
4
votes2
answers173
viewsTransform text to text on Hover!
Good, I have a paragraph and I want him to have it font-style: italic; when I pass the mouse over, which properties should I :hover?! I wish it was a 0.3-second transition…
-
4
votes1
answer607
viewsFormat @Html.Label - MVC
On my page I have one: @Html.ActionLink(linkText: "Bem Vindo(a) " + User.Identity.GetUserName() + "!", actionName: "Index", controllerName: "RelatorioTagModels1") Which generates, the "Welcome" page…
-
4
votes1
answer962
viewsMagnific-Popup with Bootstrap Modal Image Display Problem
I am facing the problem of displaying image inside the modal bootstrap. Use this plugin : Magnific-Popup Follows the code: HTML: <!-- Button trigger modal --> <button type="button"…
-
4
votes2
answers5911
viewsWhat is rel="Preload"?
I saw in a code snippet of a site a definition more or less like this: <link rel="preload" href="caminho/para/o/script.js" as="script"> I’ve never seen that code before. I wonder what that…
-
4
votes1
answer276
viewsHow to control the thickness/thickness of the tag 'strike, del, s', the famous line above the text
Today I was developing a project and I reached a point that for the first time in my life I decided to make use of the tag <strike> html. I don’t know if it was the font style I was using, but…
-
4
votes2
answers419
viewsWhat is the "module" value for in the type property of the HTML <script> element
I recently saw a code that includes a file Javascript was set the attribute type with the value module as in the example below: <script type="module" src="arquivo.js"></script> I would…
-
4
votes2
answers4666
viewsRemove disabled attribute when a condition is met
Good night. I am trying to make a login and registration screen for an application that will save the data in localStorage. To prevent the user from registering with incomplete data I disabled the…
javascript jquery html5 localstorage javascript-eventsasked 7 years, 7 months ago Mauricio Hartmann 131 -
4
votes1
answer1661
viewsRedirect HTTP to HTTPS on . htaccess with Let’s Encrypt
I cannot in any way test whether my address is in https when Let’s Encrypt is installed... Some charitable soul could help me redirect to https? I have installed in my hosting Uolhost (Platform:…
-
4
votes1
answer74
viewswidth in responsive slide show
I’m building the responsive of a study project, Codes below: var slideItem=0; window.onload =function() { setInterval(passarSlide, 2000); var slidewidth…
-
4
votes2
answers243
viewsHow to style the <p> tag differently?
But I can’t style it to look like the image below. How do I do it? It will be another tag? I tried so: p.acessorapido{ float: left; width: 100%; height: 38px; max-width: 885px; margin-top: 20px;…
-
4
votes1
answer204
viewsSuggested script for creating an HTML tree?
Hello, I would like to know if there is a program of some kind that allows me to quickly create an html tree, as in the example: I would like to add along with the tags on the chart, the class name…
-
4
votes1
answer74
viewsWhat is rel="noopener"? Should I use it on all links on my site? Can it affect SEO?
I recently noticed that the property rel of link may receive the tribute noopener, but I didn’t quite understand the advantages of using it... <a href="http://example.com" target="_blank"…
-
4
votes3
answers2746
viewsHow to write HTML as text within a div?
For example I have the div: <div class="option" id="resposta-1" onclick="mudaConteudo()"></div> I would like to write without html recognizing as a tag but rather a text: <div…
-
4
votes1
answer141
viewsCSS + Java Script : Treating image larger than a circular div
Good morning !! Here’s what I’m trying to do: I created a Function that when clicking on the photo, sends the photo to the circular div conteudo, the problem is that if the image is larger than the…
-
4
votes2
answers264
viewsRedirect to a URL if Javascript is disabled
Using the tag <noscript> it is possible to detect when the Javascript engine is disabled in the browser (as per this question), but how to redirect the browser, after a few seconds, to a…
-
4
votes1
answer59
viewsProblems to add element to HTML with jQuery
Everybody, good morning! All right ?! I’m going through a problem with jQuery and HTML in which I’m trying to add the elements when the mouse click is out of certain field[input]. This procedure…
-
4
votes2
answers213
views -
4
votes5
answers1054
viewsHow to make each input stay on a separate line?
I have this HTML and would like each input stay in separate lines, in this case below I had 3 lines, one for each input. *{ margin: 0px; padding: 0px; background-color: #ccc; font-family: 'Arial';…
-
4
votes3
answers1776
viewsDeselect radio type input
I have two inputs of the kind radio. Follow the code below: <input type="radio" id="isgift0" name="isgift" value="0" class="arredondado" /> <label for="isgift0">Teste 1</label>…
-
4
votes2
answers77
viewsHow to Make an Onclick on all Page Images?
I would like to know how to, when clicking on ANY image on the page, activate a function. I tried it in the following ways: 1- var imagez = document.getElementsByTagName('img'); imagez.onclick = ()…
-
4
votes1
answer183
viewsDiv height is greater than image height. Why?
I have the following pure HTML, no CSS <div> <img src="_img/_banner/banner1.jpg" /> </div> The image banner1.jpg possesses 300px of height and to div no dimensions have been…
-
4
votes2
answers435
viewsUPDATE PHP com Javascript
I am trying to carry out the UPDATE, but gives the following error: Notice: Undefined index: id in C: wamp www Sitephp base updateFunctioning.php on line 4. Follow my code Function function…
-
4
votes3
answers169
viewsWhat is the loading="Lazy" attribute for images and iframes?
To help with my site’s SEO, I use an extension in Chrome called Meta SEO Inspector. After an update, she began to indicate that my site needed to add the attribute loading="lazy" in tags…
-
4
votes1
answer49
viewsDoes the <Section> tag replace the <main>?
I’m starting to use HTML5 and still not sure how to choose between tags <main> and <section>. I see people using after the header <main>, while others already use the…
-
4
votes3
answers96
viewsHow to hide a text being bigger than my Div
The purpose of the exercise is focused on study , I’m creating a blog that has articles on dubbing and one of the objectives is to hide the text, which is much bigger than my Div, so when clicking…
-
4
votes1
answer541
viewsI should still save files as . HTM or just as . HTML
Although the two are interpreted equally by the Browser it seems to me that the extension . HTM has fallen into disuse. I still have to save my files as . HTM or should I always choose . HTML? It…
-
4
votes3
answers797
viewsHow to remove "whitespace-only text Node" that appear in HTML from the DOM
It seems that the HTML by default puts a damn"whitespace-only text node" among the elements of inline level with this I gain a "margin" between the elements that I cannot remove from the DOM I know…
-
4
votes1
answer111
viewsHow to put a border / Stroke in an <image> in an SVG?
I need to add one stroke around a <image> within a <svg>. But nothing happens when you add the value to that tag. See below what happens: when I use on <image> does not work, but…
-
4
votes3
answers121
viewsList value of checkbox items
How do I make list the checkbox values when the user select and when you are unselected the value does not appear in the list? <select class="form-control" id="list-lugar"> <option…
-
4
votes1
answer153
viewsSearch localStorage Json object list for your key name
I know that the browser localStorage stores data in the key-value format, and that I can recover the Json objects saved there through the key. Now what I need to do is retrieve all the records whose…
-
4
votes2
answers375
views -
4
votes2
answers673
viewsWith CSS is it possible to fill in the "eyes" of the Font? Is it possible to fill in the "holes" of the letters A, O, P, etc?
I was wanting to create a title to use in the sessions of my site, but wanted the source to have an effect similar to those images, With eyes filled giving the impression that the source has the…
-
4
votes1
answer3207
viewsBack to top button only with CSS. Smooth scroll only with CSS is possible?
I know that here on the site there are numerous questions of Smooth Scroll and Button to "return to top" (back to top), but they all involve Javascript or jQuery, but this não is my goal. I would…
-
4
votes1
answer159
viewsHow to fix CSS problem with Letter-Spacing and right-aligned text?
I and have a situation in which I have a container with two lines of text inside aligned to the right. Only that one of the lines is with the property letter-spacing: 15px; Increase the spacing…
-
4
votes1
answer336
viewsWhat’s new between HTML5.2 and HTML5?
According to Wikipedia on topic HTML, note the following table of versions of HTML and their respective years: Entering the HTML5 topic on the same site, it just says: This new version brings with…
-
4
votes1
answer50
viewsWith CSS is it possible to change the cursor more than once when interacting with the element?
I have an element that will can be moved by the screen. So thinking about ux/ui I wish I could give two feedbacks for the user. In the first case it places the mouse over the element, and in the…
-
4
votes2
answers855
viewsHow to break line in Pseudo Content element ::after or ::before?
Is there any way to break the line of a text that is in content of a pseudo element type o ::after or the ::before ? Whereas something like this: content: "<br> não quebra?"; or this content:…
-
4
votes3
answers342
viewsAdd a new label to every button click
This is probably a very simple question, but I’m new to programming and I need a little help. I need every time I click a button a new label appears, but you need to add that label in a way that I…
-
4
votes1
answer113
viewscss responsive misaligned
Hello, everybody! I have an image gallery coming from a database that defaults some items when the screen resolution is reduced to 1150px. This is done when the title under the image is too large…
-
4
votes1
answer155
viewsWith CSS is it possible to control which element will activate the Focus-Within of a Form?
Is there any way to determine with CSS only which elemento focused on specific will activate the :focus-within of form? I want only one input specifically activate the class form:focus-within {} of…
-
4
votes5
answers1315
viewsJoin two events that have the same function
I am new to programming and I was creating an html code, in which I am calling JS functions in my own input. Anyway, I have this excerpt, in my input code: <input type="text"…
-
4
votes2
answers186
viewsHow to make a video start and restart automatically?
Good evening, I’m making a website and in the middle of it I put a video that I want to start and restart automatically without the user having to click the play button or the restart button, can…