Sometimes we need t open the webpage which is a part of some web document then there must be some way to specify it.we can mention the target element by including the id attribute which can be used to identify it in an href attribute.
XHTML Document[hyperLinkDemo1.html]
<html xmlns="http://www.learnhtmeasyl.blogspot.com/2017/xhtml">
<head>
<title>Use of Hyperlink on the web page</title>
</head>
<body>
<h2 id="book"></h2>
<a href="#book">click here to get a book on engineering</a>
</body>
</html>
No comments:
Post a Comment