How do you get text from your website into the featured snippet box?

When you type in "how to tie a tie" or "when is fathers day" in the google search gives you the answer at the top of the search query in the "featured

When you type in "how to tie a tie" or "when is father's day" in the google search gives you the answer at the top of the search query in the "featured snippet box". I researched and found that Google automatically puts that in because it is extracted programmatically from a webpage. How exactly does it choose what to feature?

or:When you type in \"how to tie a tie\" or \"when is father's day\" in the google search gives you the answer at the top of the search query in the \"featured snippet box\". I researched and found that Google automatically puts that in because it is extracted programmatically from a webpage. How exactly does it choose what to feature?

Tags:website,answer,