Questions tagged as 'html5'

1
answer

CSS recognizing Javascript variables within html, is it possible?

For example, I have a script that takes the mouse coordinates: function posicaoMouse(ev){ ev.preventDefault(); var x = ev.clientX; var y = ev.clientY; console.log(x); console.log(y); }...
asked by 20.10.2017 / 14:05
2
answers

Draw image using css

I would like to know if you would like to draw the image below using only css? Iwouldliketocreateabuttonlikethis     
asked by 28.07.2015 / 14:18
2
answers

What is the "module" value in the type property of the HTML script element

Recently I saw a code that when adding a JavaScript file was set to the attribute type with the value module as in the example below: <script type="module" src="arquivo.js"></script> I would like to know what this...
asked by 07.03.2018 / 13:29
3
answers

Limit HTML5 Audio Controls

I wanted, if it were possible, of course, that a component <Audio> of HTML5 would just show mute , and the rest would not show up; such as volume , play , pause , etc.     
asked by 30.12.2014 / 18:56
2
answers

Why does not my .svg work in Firefox?

My .svg is not loaded in Firefox, in chrome it works fine. I'm using css to do this, with the background: url('data:image/svg+xml...) property. I made a JSFiddle for example, containing all the code. Edit: I do not want to use base...
asked by 12.07.2018 / 15:31
1
answer

Is the label semantic or allowed to use what elements inside?

Studying I saw some code examples where input is placed inside label , this brought me a doubt, would it be semantic to use what elements within a label ? <label for="campo">Descritivo do campo <input type="text"...
asked by 29.08.2018 / 16:10
3
answers

Why use float: left and display: inline at the same time?

I'm watching a tutorial, where the teacher at a certain point, minute 28 , sets the style of the elements of a ul to create a horizontal navigation bar , and do so using either float:left or display:inline . The problem is...
asked by 11.10.2014 / 15:07
1
answer

TiledMap Scrolling

I'm trying to build a camera system for a game that I plan to do in pure javascript, but I can not produce the effect correctly. If anyone can see and fix it or guide me to read some tutorial I would appreciate it very much! Images used:...
asked by 24.11.2015 / 03:52
3
answers

Limit values for input text

I have two inputs and I need the value of the input of term to be greater than the value of the start input. Both are text type. Could someone help me? <div class="w3-half"> <label>Data de Início</label> <i...
asked by 10.01.2018 / 17:41
3
answers

TempData ["Message"] error in the runtime saying that the object is null

I recently started with ASP.NET MVC, and as you can see I'm playing in the if statement, else the tempData[] and the one that happens is a following, every time I click inside the else in "View in Page Inspector" it gives me an error in t...
asked by 02.09.2014 / 17:09