Questions tagged as 'html'

1
answer

Insert line break (enter) using HTML codes

I'm trying to put an enter / line break ( \n , <br /> , etc) in title of an html element. For that, I was searching for HTML Codes something equivalent to the &nbsp used to give a "space". I found few referenc...
asked by 08.09.2014 / 11:43
2
answers

document.getElementById ('ID'). func (...) vs ID.func (...) [duplicate]

Yesterday I came across a curious thing , I had no idea what to do in this way. So far I've done it this way: document.getElementById('a').innerHTML = 'CONTENT'; <div id="a"></div> Always but always I have seen t...
asked by 24.01.2017 / 12:32
4
answers

Identify whether the device is a PC or cell phone and use a different code for each

I want it to be automatic if the person is on the computer, to display a code if it is on the phone, to display a different one. I do not want to change the resolution, but rather all the content presented on the page. Example: If it's mobile:...
asked by 01.06.2016 / 18:40
5
answers

Turn HTML into PDF

I noticed that on Banco do Brasil's website it is possible to choose the output format of a proof of payment in txt , pdf , csv without having to resubmit the page. Is there any library that will convert the html displayed on...
asked by 13.07.2015 / 14:12
2
answers

What is the unicode signature (BOM)

I noticed that sometimes dreamweaver puts assinatura unicode (BOM) on some php pages, I have to remove most of the time so that there is no space on the page to display and I'm not sure what%% of% would you like to explain?     
asked by 20.03.2014 / 16:51
2
answers

Is it safe to minify HTML?

Like JS and CSS, HTML can also be "minified": <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi...
asked by 10.07.2014 / 18:47
3
answers

How to add dynamically in ul with jQuery?

I'm bringing backend notifications and I need to dynamically add the path to them, how do I add a <li> to each response element? JavaScript $(document).ready(function () { $.ajax({ url: "/tasks/not-assign", dataType:...
asked by 20.09.2016 / 13:21
4
answers

Fill in leading zeros in JavaScript

I need to insert leading zeros in a input text field. Since this field can be up to 5 characters + a checker digit That is, I need to fill in the leading zeros according to what the user types, for example: 123451 = 12345-1 12341 = 01...
asked by 18.10.2014 / 00:20
1
answer

How to detect that the div has been rolled to the end?

I need to know if a certain div has been rolled to the end using jQuery. I'm having problems because the height of div is not constant. The goal is to automatically roll div down unless it has already been rolled by the user...
asked by 16.12.2013 / 03:05
3
answers

How to stylize the select tag

How do I style the select tag, like the arrow at the end of the field. Do pseudo-classes :hover , :focus work with this element?     
asked by 03.02.2014 / 18:57