Hi, i'm trying to understand css and first thing i tried was this:
<div style="
height: 100px;
width: 100px;
border: 1px solid black"/>
<div style="
height: 100px;
width: 100px;
border: 1px solid red"/>
and
<div style="
height: 100px;
width: 100px;
border: 1px solid black"></div>
<div style="
height: 100px;
width: 100px;
border: 1px solid red"/>
can anybody please explain what's happening? i thought there should be no difference.. until now i was experiencing just pure xml so this is kinda frustrating for me..
and one more side question.. how does it work with displaying the whole thing? I assume first thing is the browser builds the DOM tree which would normally be displayed dependent from order of elements. Is it the same with css with only that little change defined by styles? i mean the rule from stylesheet is first applied when some concrete element is being displayed, no other tricks in it..right?