Questions tagged as 'html5'

3
answers

Clock html / javascript does not appear

I'm trying to make a digital clock appear on the screen, but the browser does not return anything. <!DOCTYPE html> <html> <head> <title>teste</title> <meta charset="utf-8"> <script type="text/...
asked by 06.08.2018 / 23:07
3
answers

API Google MAPS location from address

I have an address saved in the database, divided correctly and I need from this address to generate latitude and longitude and also to plot on the map a marked in the registered area. SGL_ENDER_ESTAD: "MG" TXT_ENDER_BAIRR: "MEU BAIRRO" TXT_END...
asked by 06.10.2015 / 15:51
2
answers

Why is PUBLIC and xmlns declared using site w3.org?

I've always had this doubt, because most sites declare PUBLIC arguments in the !DOCTYPE and xmlns tag in the html tag and because the values of these arguments are always w3.org in>? I searched several times but did...
asked by 23.12.2015 / 18:27
5
answers

How to make font size fit automatically to the size of a div

Hello, I have a div of 300px by 300px , in it I leave a text that comes from a database, the problem is that there are times when the text inside the div exceeds the size of the same, leaving impossible to print. I need to know if yo...
asked by 27.09.2016 / 18:43
2
answers

Function that generates file

How to create a function in javascript that generates an .ini file? For example, I will fill 2 fields and it will generate a file like this [teste] nome: "campo 1 que vou preencher" teste: teste teste: teste email: "campo 2 que vou preenche...
asked by 13.09.2016 / 20:36
3
answers

Allow Select PDF only in JS

I would like to know how to do that by choosing the file to upload it to filter by native .pdf extension html or by JS, Jquery. Using the type="file" it brings all the files. <!DOCTYPE html> <html> <body> <h1&g...
asked by 03.08.2018 / 22:29
4
answers

Load page and scroll automatically to a certain element

In a contact page there is in order: a banner, map and form. How can I make the page automatically scroll down by letting the page start automatically from the map?     
asked by 27.08.2015 / 14:31
1
answer

Is it possible to get the value of a div?

If the div valor0 has a value, how can I get this value in a variable to sum it up for example ?? In this example we have the valor0 div with the value 1, how do I send it to the test variable? var teste = document.getEl...
asked by 05.10.2017 / 13:25
2
answers

Problem in implementing awesome font icone by css

I'm having a problem loading my font via css I'm using font awesome 5 I'm implementing icones via content on css but the icon I want to use is not working that would be the icon link I want to use F0da but he does n...
asked by 09.05.2018 / 17:33
2
answers

How to check if HTML tag has certain attribute with JS?

In this code: <img id="SizeImage1" style="cursor:pointer"> As you can see, it has no attribute src . How can I tell if a tag has src or not using JavaScript?     
asked by 22.11.2016 / 15:15