31
loading...
This website collects cookies to deliver better user experience
<html>
<head>
<link href="main.css" rel="stylesheet" >
<title>From HTML To The Screen: How Browsers Render Web Pages</title>
</head>
<body>
<h1>Lorem Ipsum</h1>
<p>Dolor sit amet.</p>
</body>
</html>
HTML
> HEAD
> LINK
> TITLE
> TEXT
> /TITLE
> /HEAD
> BODY
> H1
> TEXT
> /H1
>P
> TEXT
> /P
> /BODY
> /HTML
title
, h1
and p
tags generate a TEXT
token to identify them.body { font-size: 14px; }
p { line-height: 25px; }
span { color: red }
p span { color: green }
font-size
rule defined forbody
is cascaded down to p
and span
.span
elements should be red
. But all span
that are inside a p
p span
overrides the<script>
or <link>
tags won't be present indisplay: none
won't be present either.%
or em
and must be converted to absolute