32 ms·
That is completely valid HTML5. https://html5.validator.nu/?doc=https%3A%2F%2Fmeiert.com%2Fen%2Fblog%2Fminimal-web-development%2F https://html5.validator.nu/?d
by detaro 6y ago
That is completely valid HTML5.
https://html5.validator.nu/?doc=https%3A%2F%2Fmeiert.com%2Fen%2Fblog%2Fminimal-web-development%2F https://html5.validator.nu/?doc=https%3A%2F%2Fmeiert.com%2Fe...
- cringepirate 6y agoThat maybe but it differs from what is shown in the inspector (which shows the <head> and <body> tags). This could be confusing as the source html doesn't match how the browser interprets it.
- giantrobot 6y agoWeb inspectors are showing a representation of the DOM, they are not showing the raw source. Netscape and IE used to have "Show Source" functions that literally showed just the page source. Inspectors will do things like display colors as their RGB triples i.e. rgb(x, y, z) in computed styles when a color has been defined in the HTML like in a body tag or table cell's bgcolor attribute.
- recursive 6y agoAll browsers still have show source. It's just not usually that useful anymore.
- cringepirate 6y agoYes I am aware. It can be confusing if you are new. I had someone ask me why it was different the other day.
- jrumbut 6y agoI usually look at the network log for that information now.
- saagarjha 6y agoJust because it is valid does not mean you should do it.
- recursive 6y agoThat's true. The reasons to do it are in the article.
- redmagic 6y agoTIL!