Questions tagged as 'html'

4
answers

Difference between: disabled and: readonly in HTML?

Usually both have similar behaviors when rendered in the browser. If I open an HTML with this: <input type="text" value="tente me alterar" disabled> <input type="text" value="tente me alterar" readonly> Both do not allow the...
asked by 20.02.2014 / 21:25
4
answers

Where should I put a JavaScript code in an HTML document?

Where JavaScript should be placed in an HTML document: in element <head> or <body> ? At the beginning or the end of each? Is there any performance difference or any other related to this?     
asked by 26.12.2013 / 18:18
7
answers

Should I use input type="submit" or button type="submit" in the forms?

I usually use <button type="submit"></button> , but I see in most forms the use of <input type="submit" /> , is there any difference? Which is the ideal?     
asked by 08.04.2014 / 21:26
9
answers

Is it ok to use the i tag for icons and not for italics?

Now we've noticed that a lot of people are using the <i> tag for icons, not for italics. If we were still in the pre-HTML5 era this would be totally wrong. According to the specification of the <i> tag in HTML5, it i...
asked by 29.01.2014 / 17:44
2
answers

Do I really need to put "text / javascript" in the script tag?

We are in 2016. I have read in some places on the internet that it is no longer necessary to use this type="text/javascript" statement. In fact, using the script tag without declaring this snippet does not affect Javascript's worki...
asked by 29.11.2016 / 11:42
3
answers

How to make a progress bar that goes from 0 to 100% with CSS only?

I need to make a progress bar that starts from 0 and goes to 100%. But I need to do only with CSS, and besides that, I need it when it reaches 100%, start again from 0. Although there is some information about this progress bar, I need it to...
asked by 14.12.2017 / 13:23
4
answers

Upload file with AJAX

I would like to know if there is any simple way to upload files via AJAX + JSON. If there is one, what would it be?     
asked by 18.03.2014 / 18:55
6
answers

How to vertically center the content of an element?

I'm trying to vertically center the content of an element that has position: absolute . I've been able to make the content position half-way down the container , however, halfway up the space is "left over." How can I solve this jus...
asked by 12.12.2013 / 01:06
8
answers

The right is br or br / or br /?

I see each using in a way, I even vario the form in a few moments and all work, but which one is right? Does it depend on the HTML version or the browser ?     
asked by 09.01.2015 / 17:16
3
answers

Why is it not recommended to use "_" (underscore) in HTML / CSS?

I've seen people recommend never using _ ( underscore ) in HTML and CSS. Instead, we should give preference to - . Example: // Errado <div id="minha_div" class="minha_classe"></div> // Certo <div id="minha-div"...
asked by 10.06.2014 / 15:54