This is the HTML structure:

Element link = doc.select("div.subtabs p").first();
That does not seem to work. How do I select that p?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The DIV with the class=”subtabs” is not in fact the parent of the
pelement but instead is the sibling ofp. To retrieve thep, you’ll need to first get a reference to the parent DIV that has the id=”content”:Additionally, you’ll need the
>symbol to indicate that you’re selecting a child of div#content.If you get stuck with a JSOUP CSS selector in the future, check out the JSOUP Selector Syntax cookbook, which has some nice examples and explanations.