Home >Web Front-end >HTML Tutorial >HTML target attribute
<h3>Table of Contents</h3> <ul> <li><a href="pref.html" target="view_window">Preface</a></li> <li><a href="chap1.html" target="view_window">Chapter 1</a></li> <li><a href="chap2.html" target="view_window">Chapter 2</a></li> <li><a href="chap3.html" target="view_window">Chapter 3</a></li> </ul>Try it yourselfWhen the user first selects an item in the content list When linking, the browser will open a new window, label it "view_window", and display the desired document content there. If the user selects another link from this content list and the "view_window" is still open, the browser will load the selected document into that window again, replacing the previous documents. Throughout the entire process, this window containing the content list is accessible to the user. By clicking a link in a window, the contents of another window can be changed. Open a window in a frameInstead of opening a full browser window, the more common method of using target is to direct the hyperlink content to one or more objects in a