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
-
3
votes1
answer271
viewsRegular expression in Pattern
I have a text input that I’m validating with regular expression, the expression rule is the following: it starts with a number between 0 and 2 and then 6 more random numbers, but I don’t know why it…
-
3
votes1
answer320
viewstoastr.js disabling the required HTML5 property
I am using toastr.js to display form validation messages, but when using this plugin it disabled all my inputs that had the property required. My code: <!DOCTYPE html> <html>…
-
3
votes4
answers9024
viewsHow to make the 'focusout' event an input?
I want to make an input appear when I click on label, when I click out of the input, ie take the focus of such, I would like it to disappear. HTML: <form action="/" class="search">…
-
3
votes1
answer226
viewsClear field after X time
I have the form below, that after 2 minutes it updates every page: With the command below: <meta HTTP-EQUIV="refresh" CONTENT="120;URL=http://pcn-sig.peccin.local/cracha"> And with that he…
-
3
votes1
answer63
viewsHow to transform the text of a div into lines with <p>
Suppose you have one div, and that it has an enormous text, and you would like each line to be transformed into <p>. How would it work? What I really want is, at the beginning of every line of…
-
3
votes3
answers4432
viewsHow to set a default option in a select with data-live-search HTML?
I need to bring in select a default option every time the page is loaded. But with the data-live-search plugin. There is this possibility? <div class="row-fluid"> <select…
html5asked 8 years, 9 months ago Maickon Rangel 59 -
3
votes2
answers1148
viewsHow to read what the user typed in a form?
The code is like this: <form method="post" action="pagina.php"/> <?php $c= 1; $neg = 0; while($c <=3){ echo "Digite um numero: <input type='number' name='$num' min='1'/>"; if($num…
-
3
votes1
answer95
viewsReferencing variables in HTML
I am a beginner in web programming and I have a very simple question (I believe): I was wondering if there is any way to reference variables of a backend language (in my case I’m using Go-lang) in…
-
3
votes1
answer365
viewsFormat SQL read variable hours and minutes presentation
I’m starting up PHP. I intend to present the hours and minutes stored in a field but when I read it what it presents is something like: 01:00:00.0000000. The SQL field is time(7) and the variable…
-
3
votes3
answers566
viewsshow all options of <select> without scroll bar
I have a select that brings information from a JS, but this select is forming scroll bar and the options are not many and there is room for more options to be shown but regardless of what I try I’m…
-
3
votes1
answer96
viewsPure Javascript Drag n Drop
I’m trying to make a pure Drag'n Drop with Javascript: Example Two mistakes if I can’t solve: 1 - When I drag the List 2 it always puts the element down the mouse and not on top. 2 - When I try to…
-
3
votes1
answer160
viewsCreation of dynamic Thumbs
How do websites like Youtube, Netflix and many other sites do this function? Are Thumbs created at the time of Mousemove / mouseenter in the Ogress bar, or have they been created before and the…
-
3
votes2
answers263
viewsI’m not able to create notifications with the $cordovaLocalNotification plugin using IONIC
I tried to do based on the code of this site: https://devdactic.com/local-notifications-ionic/ But when I press the "Add notification" button this error appears: ionic.bundle.js:26771…
-
3
votes4
answers5749
viewsInput type NUMBER does not consider maxlength
I have the following HTML: <input ng-model="idade" type="number" maxlength="3" placeholder="Informe a idade"> When I go to test, the input ignores the maxlength and lets you type as many…
-
3
votes1
answer434
viewsProblem with Background Image using Bootstrap 3
I’m having trouble displaying the background image when website is accessed by Chrome on smartphone, on PC usually displays (responsive). HTML: <!DOCTYPE HTML> <html lang="pt-br">…
-
3
votes1
answer412
viewsBetter HTML structure - Virtual Store
Talk, you guys, blz ? My question is the following: what is the best HTML structure to build a virtual store ? Taking into account semantic and SEO patterns. For example: I must use divs, li or…
-
3
votes2
answers106
viewsAttribute href exclusively for goal <a></a>?
It is correct to put the attribute href in a mark other than a. Example: <ul> <li href="#page1">Page1</li> <li href="#page2">Page2</li> <li…
-
3
votes1
answer208
viewsCSS selector changing value if it contains an element
By choosing any selector definition it is possible to set styles for each element that this is defined. My doubt would be, instead of selecting an element and changing properties for itself, I would…
-
3
votes1
answer78
viewsHow to make the elements appear with the mouse scrool?
Visibility.onVisible(function(){ setTimeout(function(){ $(".animar").addClass("animated fadeInDown"); }, 400); setTimeout(function(){ $(".animar2").addClass("animated fadeInDown"); }, 800);…
-
3
votes2
answers76351
viewslink to an image to be redirected to another site
so I have an image, I wanted that when clicking on this image the user was redirected to the link I defined, <a href="www.google.com"><img src="img/css3.png" class="media-object…
html5asked 7 years, 10 months ago Fernando Alcantara 127 -
3
votes1
answer640
viewsCan "<a>" be used without "href"?
Is there a restriction or problem in using the tag a without the attribute href? Example: <a>teste</a>.
-
3
votes2
answers522
viewsNative HTML 5 Progressibar Animation
How to animate the Progressbar below using Javascript? <progress max="100" id="myBar" value="0" class="progressBar"></progress>
-
3
votes2
answers144
viewsHow to acquire the value of the onclick() event
I want an "if" that your condition is based on the location of the user’s click, but I have no idea how to refer to it. I believe on that basis you understand what I want to happen: if (onclick ==…
-
3
votes2
answers691
viewsWhat is the correct tag for grouping elements into an aside
I’m creating a sidebar for my site, I want to put something like "last posts, social network, a kind of top downloaded etc." or something simpler "last posts" just :D .. but I’m in doubt about tag…
-
3
votes1
answer330
viewsHow to use the output tag?
I copied this example from a website but it doesn’t work. <form oninput="result.value=parseInt(a.value)+parseInt(b.value)"> 0<input type="range" name="b" value="50" />100 +<input…
-
3
votes2
answers1635
viewsz-index does not work on link
I’m having a problem creating a <div> masking and a link to disable this mask. In another layout that I had worked normally, now that I am performing the exchange it stopped working. I have…
-
3
votes1
answer495
viewsAttack svg image with css and include php
I cannot attack the properties of the SVG image with include php. Is there another method? Therefore, I need to call the bank images dynamically through include(). Here is a functional example, when…
-
3
votes2
answers83
views@media screen not working properly
I’m studying css and html still, so I may be making some banal mistake, I’m not able to solve alone. The problem is the following I set on @media screen a minimum width for it to change the img…
-
3
votes1
answer148
viewsAlign form items with CSS
Hello, I would like a help to align the items in the following form. I would like the selects Labels to stand above them to the example of inputs Labels. Additionally he would like the selects,…
-
3
votes1
answer165
viewsIs there any way to manipulate the brightness of the image through Canvas?
I am developing a system where the user can make small adjustments in images, and can rotate and cut currently. Before this whole part was being done through coordinates, where I sent the parameters…
-
3
votes0
answers1140
viewsWhat is the difference between Local Storage, Session Storage and Cookie?
What’s the difference between Local Storage, Session Storage and Cookie? What is the purpose of each of them and what differentiates them?
-
3
votes1
answer484
viewsIs it possible to create an internal search of a website without using PHP and database?
It is possible to create a search system inside a site with javascript and no database or php? I want to create an HTML search system
-
3
votes2
answers1014
viewsHow to copy a canvas to an image
I’ve been struggling to resolve this issue, which seems simple, but I’m not getting it, Maybe I am not knowing how to ask the question, then I count on the goodwill of friends: 1. I have the…
-
3
votes2
answers87
viewsHow to pass a different value in an HTML form?
I am creating an HTML date filter so that the SQL query can return a specific value to me. I’m just trying to make it difficult to pass on this information because the form option needs to appear…
-
3
votes4
answers2363
viewsJavascript - Validating Numeric Field (popup)
I have a screen that has 4 inputs. The value of these inputs is being saved in my database. But I need to figure out how I do to validate these fields being only numerical fields? I tried a code…
-
3
votes2
answers85
viewsChange function jQuery
I’m having a problem with a jquery code, I found a code almost perfect for my use, however, it has a function that does not suit me and I can not disable it. This function is that when I click on…
-
3
votes1
answer184
viewsHow to Place Image on X-Axis
I’m trying to put an image on this graph that represents the Labels, but how is a canvas I don’t know how to do this in Chartjs. JS myBarChart = new Chart(chartBar, { type: 'bar', data: { labels:…
-
3
votes2
answers147
viewsHow to give a "refresh" after updating the new video?
In my view, I have an old video, when I "upload" new video, want to automatically reload a new video after "upload". Follows the code View: <div id="embed_video" class="embed-responsive…
-
3
votes2
answers2477
viewsCSS-only carousel: problems centering and fixing size
I have a carousel created with only CSS, but I have identified some difficulties. All images are in the 4:3 ratio and may have until 640x480 px (i.e., may be less than this value), so: I cannot…
-
3
votes2
answers119
viewsWhat is the difference between # and #! in HTML 5?
What is the difference between # and #! in the href element attribute <a>? <a href="#">link 1</a> <a href="#!>link 2</a> NOTE: I am using Jquery and Materialize…
-
3
votes1
answer591
viewsResponsive image adjustment in div box
I’m having difficulty making this image fit inside the box, I want regardless of the size of the screen the box always appears in the same place (OK) and the image inside fits the size of the box…
-
3
votes2
answers170
viewsJava Script Animation
Good afternoon, I’m trying to do a job with css,html,js . I need to make some images slide right and left as soon as I scroll the bar, one image at a time, but as soon as I scroll the images scroll…
-
3
votes1
answer151
viewsHow to put the same animation on two canvas at the same time?
I have an animation on "Html5 Canvas" (using Flot Real Time) and now I need it to be cloned in real time for a new canvas, ie draw the same thing on 2 canvas at the same time. So I just tried to…
-
3
votes2
answers683
viewsTransferring values from one page to another with Angularjs
Good afternoon, I was wondering if there was a way to pass the data from one page to the other... I made a small function that when you press the button it changes the name, only it appears on one…
-
3
votes1
answer398
viewsInput[number] accept numbers only in Firefox
How do I make the input[number] field accept only numbers in Firefox? In Chrome, Opera and Edge works perfectly, but in Firefox the[number] field accepts letters and spaces. <input type="number"…
-
3
votes2
answers790
viewsAdd border over an image and text
How do I override a border on an image and text, leaving a border for the image as the attached image:…
-
3
votes2
answers791
viewsjavascript paste command
How do I paste what’s in the clipboard? I did a lot of research, but what I found was just the copy, not the necklace! the only thing I found about necklace, it didn’t work, which was the…
-
3
votes3
answers38304
viewsPosition DIV in the center of the page
How do I align the div with black and transparent background where it contains the buttons in the center of the page independent of the monitor resolution? The code I’m using is this: .fundo{…
-
3
votes2
answers131
viewsCharacter display using numeric codes: ߷
I tried to search on the subject in Google, but it was difficult because several other subjects are related, so I ask here. I am using special characters, printed from the respective numeric code,…
-
3
votes2
answers343
viewsclassname, Setattribute or classList.add
I have a JSON list that creates several objects from a blog and come across the following ways to add classes to the HTML objects that I create after loading the list: classname, setAttribute and…