Per IRS Publication 501 Dependents, Standard Deduction, and Filing Information, page 10:
The term "dependent" means:
Page 11:
Tests to be a Qualifying Relative
See IRS Publication 501 for exceptions to the qualifying relative tests.
Note that any link in the information above is updated each year automatically and will take you to the most recent version of the webpage or document at the time it is accessed.