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




Contact US

Email:[email protected]

Get Title from HTML
10/30