Why does the universal selector show two elements when a border is applied in an empty html file? (CSS) -



Why does the universal selector show two elements when a border is applied in an empty html file? (CSS) -

i'm doing web fundamentals course of study @ code academy , noticed strange.

if have html file so:

<!doctype html> <link type="text/css" rel="stylesheet" href="stylesheet.css"/>

and css file so:

* { border: 2px dashed black; }

i see 2 elements outlined. seems border of browser window, , smaller box within it. 2 boxes? there no elements in html file beingness outlined?

at first thought outline <html> , <body> elements, tried removing <body>, tried removing <head>, , removed <html> still there 2 boxes.

thanks!

edit: did seek searching, recommended, not find previous answer. quite hard find reply specific question, thanks.

the start , end tags html , body elements optional.

you deleted tags, not elements. can see looking @ document in dom inspector (such can find in browser developer tools).

(the same applies head, display: none default).

html css

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -