html css header code example Example: Html header <header> <h1>Main page heading here</h1> <p>Posted by John Doe</p> </header>