If you have major gaps in employment, there are a few ways to make them less noticeable like a change of resume foramt. It is important to be honest about gaps in your resume and not try to cover them up, but to also make them seem productive and intentional. Adding volunteer work or classes in the time you were unemployed is highly valuable and fairly simple to get starter with.
Your goal should be to write your resume with both robots and humans in mind. Many organizations use Applicant Tracking Systems to sort and vet resumes, before hiring managers ever take a look at them. This means that you could have the best experience and qualifications in a whole field of candidates, and a pretty decent resume besides, but your information will fall through the cracks if your resume doesn’t contain the right keywords. Good keywords will refer not only to your experience but to the job description in the posting as well.