Questions tagged as 'html5'

2
answers

How do I expect to import text / html content into modern browsers using the link tag?

Recently I came across the current documentation of TAG <link> on the W3.org site - link where you specify that you can import content with mime-type text / html, ie HTML files. This would solve a current problem that I have t...
asked by 19.02.2014 / 18:49
4
answers

Insert the paragraphs of a JSON file into a DIV

I have a file json that in its content it contains paragraphs . These paragraphs are separated by \n but when I insert content the paragraphs are not separated and instead of line break I have a space in DIV . In my view my soluti...
asked by 12.12.2013 / 13:48
4
answers

How to implement a textarea in a responsive way?

I want to use a <textarea> , but instead of using rows="4" cols="100" , I wanted to use something like this: style="width: 80%" to make the layout responsive. But since this does not work, that is, use the size at 80% bu...
asked by 14.02.2014 / 13:14
1
answer

Rails application with offline mode

In a new venture, I need a simple application to stay in place if the internet connection is lost. Can someone explain me how to do this? I had thought about using the HTML5 persistence features in case of connection loss, and somehow I still...
asked by 20.09.2014 / 14:10
1
answer

Rotate an arrow on a canvas

I need to draw a stream dynamically based on the user's choices. In this flow I want to draw the chosen hypotheses (blue circles with numbers) and the direction between the choices (lines with arrows). For example: node 1 for node 2. JSFiddl...
asked by 16.01.2015 / 11:13
2
answers

Only with CSS is there any way to make a "Toast"? An element that goes up and then click to close it?

In mobile there is a very common component that is known as " Toast ", but I was thinking about how to adapt it only with HTML and CSS Isthereanywaytodosomethinglikethis"component" above just using CSS and HTML, without framework or other...
asked by 21.11.2018 / 11:51
1
answer

How do the Outline of the buttons follow the curvature of the elements?

I know that outline is very important for usability and especially for the accessibility of the page, even here is a very interesting WebAIM article about it: link However, outline does not seem to match the border-radius...
asked by 18.10.2018 / 15:55
2
answers

Collision system for game in html5!

I'm learning a little about games in html5, css and js. I made a very basic gameplay, player movement, enemy and a collision system , see: var canvas;//o elemento canvas sobre o qual desenharemos var ctx;//o "contexto" da canvas que s...
asked by 04.05.2018 / 02:25
1
answer

Navigation via HTML or Javascript

I've been working hard with javascript and it makes me use it for almost everything. But I have a question. Is there any problem with semantics, indexing or search results of my page when I use: HTML: <img class="teste" src="img.pj...
asked by 11.01.2017 / 14:01
2
answers

How to capture audio from microphone using HTML5 audio API?

How do I capture audio from the microphone using the HTML5 Audio API and play it at the same time?     
asked by 03.04.2014 / 18:59