html declare character encoding code example Example: doctype html charset utf-8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>