17.10.17

Unrecognized Elements and Attributes

Eventhough web authors type some element or attribute that the browser does not recognize,it does not complaint.This is a unique feature as compared to any programming language.Because if we make any typographical mistakes in a java program then definitely compiler will raise error message.The web browsers simply displays the contents eventhough the element is not surrounded by any tag.

Xhtml document [mistake.html]

<html xmlns="http://www.learnhtmeasyl.blogspot.com/2017/xhtml">

Made spelling mistake while defining the tag</title>
<head>
<ttle>Testing</title>

Hence title appears in the client area of web browser just like a normal text.
</head>
<body>
<h2>To error</h2>
</body>
</html>

No comments:

Post a Comment

Featured Post