Home » Jsoup example: print title from html file

Jsoup example: print title from html file

by Online Tutorials Library

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 

You may also like