Questions tagged as 'html'

2
answers

What is the "dirname" attribute in HTML?

I saw on the internet a code similar to this: <form action="/the-action"> First name: <input type="text" name="fname" dirname="fname.dir"> <input type="submit" value="Submit"> </form> I've never seen (this day) t...
asked by 10.07.2018 / 18:28
2
answers

Apply css to all but a few specific elements

How to apply padding to all a.button except those with a span , I do not know how to do but an example: a.button:not(span)     
asked by 18.11.2015 / 12:30
2
answers

Open DIV after clicking a Button with Link

I would like to know how to create, in CSS3, Javascript or Jquery, a button that, upon clicking it, reveals a DIV on it, and that a new page with target _blank is opened. I've done enough research, found some things, but nothing concrete. Of...
asked by 14.11.2014 / 19:22
2
answers

How to get a loose number in my HTML?

Consider the following code: <span class="test"><span style="color:green">Teste</span>:</span> Text<br><br> <span class="test"><span style="color:green">Mais</span>:</span> Text<br...
asked by 22.04.2014 / 00:49
3
answers

How to create a click event that is only called when clicking off of a div?

I need to click on a div (it's a register), it will close. What selector should I use so that by clicking anywhere outside the div this div closes? $(????).on("click", function(){ $('div').hide(); }); If you click on any par...
asked by 07.03.2014 / 22:17
3
answers

Table css type excel

I am creating a table for data insertion / query that is the most similar to the format of an excel sheet. My table: Problem: As the image above shows, putting input into td , it does not occupy td all, staying...
asked by 21.02.2014 / 10:54
2
answers

Fix the footer of an html page and follow the contents of the page

I need to set the footer tag to the end of the html page, but when the content exceeds the page the tag footer must accompany the content and not be fixed. See the CSS code is the HTML code I'm using for this. header {...
asked by 08.06.2014 / 04:28
1
answer

Colapse Menu after page refresh with localStorage

How can I close a menu and keep it closed after the refresh of the page using jQuery only? It would be something like in this link . When you click the menu, the menu is reduced and so remains after the refresh page. When you click the...
asked by 16.04.2014 / 23:34
1
answer

Problem with Background Html / Css

I created a id in css with a background. When I put div in html the background becomes beauty, but when I put a <form> , the part it occupies becomes white. Note:whenIputboldtextinit,too.HowcanIresolvethis? Here's an...
asked by 19.03.2014 / 13:20
2
answers

When should I use the class attribute in HTML elements?

I feel irresponsible to use as many class at will, without limits, at any time in any situation, whether to use CSS or to use with JavaScript. So I ask myself, is it that I'm right, or does class actually have well defined main goa...
asked by 14.03.2016 / 00:10