How many nested tags in HTML can I get before it crashes in the browser?

Today I thought about nested HTML tags and how browsers make them:

<html xmlns="http://www.w3.org/1999/xhtml" {or whichever html version} xml:lang="en" lang="en">
<head>
</head>
<body>

let n= 1

<div>

recurse div ntimes to the maximum (browser does not work)

</div>
</body>
</html>

What happens nwhen the browser cannot handle more recursion?

I would think that this will be different for each browser, as well as for mobile applications. Is there a web standard like 127 character lengths for domain names?

I have never encountered this problem, but I am curious when it will be.

0
source share
2 answers

, , .

, ( ..).

, - , , :)

+3

. . , HTML, .

HTML , -. / , , , .

, OutOfMemoryError, ( ) .

0

All Articles