Javatpoint Logo
Javatpoint Logo

Jsoup Example: print title from HTML file

In this example, we will get the title of the HTML page from the HTML file. To do so, we are going to call Jsoup.parse() method that returns the reference of Document. The title() method of Document class returns the title of the HTML document.

Output:

title is: Please Register




Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA