Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

chrome: difference page source and inspect element?

what is the difference between the html in 'view page source' and inspect element in Chrome 15? looks like 2 different html?

like image 972
user603007 Avatar asked Dec 09 '22 04:12

user603007


1 Answers

The view page source page shows you the exact text that was returned by the server. Inspect element actually shows you the fully rendered DOM tree.

The DOM tree is slightly different for each browser, depending on the specific quirks and support of features.

like image 102
geoffreak Avatar answered Dec 27 '22 07:12

geoffreak