Questions tagged as 'html5'

1
answer

In which tag do you put the form?

I created a page and inside this page has a form. Until then, everything ok. But I put the form inside that tag? Semantically speaking, inside a section, an article, a section and an article, or a div? I'm still a bit confused by the semantics w...
asked by 25.04.2018 / 11:46
3
answers

Audio API to calculate the duration of several songs

I'm working on an player and I need to know how to calculate the length of multiple MP3s that are selected on the user's machine by a input of type file ? EDIT: Follow my current code and it does not return the correct val...
asked by 10.09.2014 / 22:05
1
answer

Drag and Drop: Dropping image within another image

Good afternoon, I'm doing a Drag and Drop code and dropping an image inside another image, it just adds
asked by 19.09.2017 / 21:22
2
answers

Incorrect button centering

I have button within a div of which I can not centralize it. Through margin-left I can do this, but to treat the same in responsiveness is very annoying. Code of button together with div : <div class="...
asked by 04.11.2017 / 13:59
2
answers

Add border over an image and text

How do I override a border over an image and text, leaving a border for the image as the attached image:     
asked by 07.11.2017 / 21:07
2
answers

What is and what is br clear="all"?

I remember that it used to be common to see this <br clear="all"> in source codes. But I've always wondered why this clear all ? What's the difference from <br> to <br clear="all"> ? When should I use on...
asked by 07.12.2018 / 11:51
1
answer

How do I delete a specific object on the HTML5 canvas?

Well, for example I have two rectangles drawn on canvas: const canvas = document.getElementById('canvas') const context = canvas.getContext('2d'); context.fillRect(20,20,150,100); context.fillRect(300,300,150,100); <canvas id="c...
asked by 27.07.2018 / 16:33
1
answer

HTML5, use input on a select to type one of the option

Is everything good? Next, I have a select inside an html, see: <select> <option selected="selected" value>...</option> <option>opção 1</option> <option>opção 2</option> </select>...
asked by 18.07.2018 / 01:26
1
answer

How to align the dropdown menu with the text?

I'm having difficulty aligning my menu dropdown , the whole form and even the text that should accompany the dropdown menu is right. Any tips? Eg: Result obtained: | dropdown | Choose an ingredient: Expected result : C...
asked by 28.05.2017 / 23:52
1
answer

How to insert specific fonts in CSS? [duplicate]

My client has passed specific fonts to a site. These are in TTF format. I'm used to using Google's fonts and there are not any there. How can I use these fonts in my CSS or HTML?     
asked by 19.11.2017 / 22:36