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