3 ms·
Well, no, there's a bit more to it than that: <html> <head> <link rel="stylesheet" href="pure_css_digital_clock.css"> </head> <body></body> </
by Nicksil 6y ago
Well, no, there's a bit more to it than that:
<html>
<head>
<link rel="stylesheet" href="pure_css_digital_clock.css">
</head>
<body></body>
</html>
Indeed the the CSS defines styles for the <body> element. So this whole thing would not be possible there was no HTML (or some structured document representation). See, the part about lack of HTML in the title is completely unnecessary.
- kevincox 6y agoThis is the implied HTML DOM. The actual HTML file only contains the link element.
- Nicksil 6y agoAnd if the client didn't insert the necessary HTML, the thing wouldn't render at all.
- lights0123 6y agoThat's the HTML that your browser inserts. That HTML isn't present in the data served by the website.
- Nicksil 6y agoBut the CSS rules expect there to be a body element. Regardless of who/what inserted the HTML it's necessary.