Welcome to the Treehouse Community
Looking to learn something new?
Where to put the doctype in a php header inc file?
Hi was wondering where to put the doctype in the header php file?
I noticed there isnt a doctype in any of the lessons....
Sean T. Unwin28,660 Points
Put it above the
<html> tag like so (I'm using an HTML5 doctype as example):
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"></meta> <title><?php echo $pageTitle; ?></title> ...