html 4 doctype declaration code example Example: html doctype declaration <!DOCTYPE html> <!--Use the html tag too, under the declaration. -->