Why paragraphs are separated by p tags when writing rich text boxes

Why should paragraphs in rich text boxes be separated by p tags? can"t they be separated by div?


because the p tag originally means a paragraph, you can also use div. As long as the css attribute is consistent, you can express it in a more semantic way


for reasons similar to HTML5's new semantic tags such as section, header, nav, article, etc., but you can also keep using div, throughout the article, but in principle, it is no longer recommended


is not a technical reason. Upstairs @ Jilin makes it clear


semantic tags, non-mandatory

Menu