Keyword density is the percentage of times a keyword or phrase appears on a web page compared to the total number of words on the page.