Questions tagged as 'html'

3
answers

PHP bank text for html

I'm having trouble returning text with HTML formatting for the view . I need to return it with broken lines. I also tried to put it without the HTML tags in the database and then I used the nl2br() function that transforms /n int...
asked by 10.12.2015 / 13:45
2
answers

Make a checkered HTML list

Hello, I would like to know if it is possible to make a checklist, like the image below, with css only (please disregard blue lines): I found the nth-child function of css, but I was able to do just that: .box_parceiro:nth-child(odd) { b...
asked by 30.03.2016 / 14:51
1
answer

When using input type="button" or input type="submit"

I have a simple question about the semantic part. button I can modify your actions using Javascript . When should I use it or exchange it with submit ? <input type="button"> e <input type="submit">     
asked by 30.10.2014 / 18:17
2
answers

Code indentation spacing standardization

I used Sublime Text for the front end, I had to open some old code and I had a problem with indentation. I saw that it was only to modify the tab size. I wonder if there is a Tab Size pattern for building a website's HTML. I currently use Tab...
asked by 29.07.2014 / 21:14
2
answers

What is the best way to upload files with Ajax?

I could get a code on the internet paste here and try an answer but I'd rather have it help me with the logic and programming of a script to upload images in Ajax. I do not know how to start, I'm a beginner but I already know some things about j...
asked by 05.08.2014 / 15:23
2
answers

Javascript, action on selected text

Galera would like to know how to do an action on text selected in textarea, for example I selected the word 'hi' and when I click a button with Onlick, change the text to 'bye'. I await the answer, because I am looking all day and I do not th...
asked by 20.08.2015 / 21:11
2
answers

JavaScript does not work if placed in the head tag

Well, I need the Tag Script to be inside the Tag Head, but unfortunately it's only working when I put it in the end of the html. Please, if anyone knows why this is happening, please give some help. This is HTML: <!DOCTYPE html> <h...
asked by 08.07.2015 / 21:00
4
answers

Increase image when user clicks JS

I would like help with a problem I'm having: I'm doing something similar to a gallery, and when the user clicks on the image it has to open in full size, not the whole screen, but it covers a good part of the page. Also, I need it to center....
asked by 06.01.2016 / 14:53
2
answers

Add attribute to an element

In JavaScript we can add attributes to a given element in at least two ways: var div = document.createElement('div'); div.id = 'meuId'; or var div = document.createElement('div'); div.setAttribute('id', 'meuId'); Is there any differenc...
asked by 02.04.2015 / 16:47
2
answers

Which standard to use: HTML5 or XHTML5?

Why should not we mix both and which of the patterns is most useful these days?     
asked by 25.03.2016 / 13:53