Horje

What is Differences Between HTML and XHTML

In XHTML, the content inside scripts is declared as #PCDATA (instead of CDATA), which means that entities will be parsed. This means that in XHTML, all special characters should be encoded, or all content should be wrapped inside a CDATA section.
index.html
Example: HTML
 <script type="text/javascript">
//<![CDATA[
let i = 10;
if (i < 5) {
  // some code
}
//]]>
</script>




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin