0
What is difference between writing border="2" and border="2px"...?
4 Antworten
+ 3
Both are equivalent in previous version of Html, but are attributes deprecated in Html5.
You must use css border properties to style them ^^
+ 2
one works and the second is an error!
+ 2
you always need a unit in css (exept 0 cause it's always 0) if you don't specify one, to (clever) browsers take it as pixel, but it's definetly invalid code
+ 1
Thanks #kamil & #visph