Javatpoint Logo

91-9990449935

 0120-4256464

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