Sounds like that is possible, per W3C am able to validate the following HTML code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Inline can another inline?</title>
</head>
<body>
<div>
<span>some text <span>comes here</span>.</span>
</div>
</body>
</html>
Is that means an inline can contain another inline? Am confused, so long I thought only block-level elements can contain another block-level or inline elements. Also thought inline elements can contain only text. Can any one give some theory here with W3C reference or some reference, please? Thanks.
That’s correct. It’s described in HTML spec chapter 7 The global structure of an HTML document: