Home  >  Article  >  Web Front-end  >  Add header to document or section in HTML5?

Add header to document or section in HTML5?

WBOY
WBOYforward
2023-09-16 15:21:081216browse

Add header to document or section in HTML5?

Add headers using the

tag in HTML5. HTML
tag specifies the header of a document or section.

Example

You can try running the following code to include the header of the document -

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Header Tag</title>
   </head>
   <body>
      <header>
         <h1>Simply Easy Learning</h1>
         <p>You&#39;re visiting tutorialspoint.com -
         tutorial hub for simply easy learning.</p>
      </header>
   </body>
</html>

The above is the detailed content of Add header to document or section in HTML5?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete