Contextual advertising refers to a type of online ad that appears on websites, or search engine results pages based on the content of the page or search query keywords.