It is said that the p tag cannot nest divs and p tags, and the nesting will be parsed and separated by the browser. But if you use document.createElement to create a div and then appendChild, it will work. It seems that the browser does not support dynamic parsing