📝 Edit page
            
    ➕ Add page
            
    
         
    
    
    
    
        
            
        
    
 
        
    HTML5 Boilerplate
A more thorough
headtag to cover modern browsers and sharing
See the HTML5 Boilerplate website - html5boilerplate.com.
The page below is based on dist/index.html of the html5-boilerplate repo.
- index.html- <!DOCTYPE html> <html class="no-js" lang="en"> <head> <meta charset="utf-8"> <title>My title</title> <meta name="description" content="My description"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta property="og:title" content="My title"> <meta property="og:type" content=""> <meta property="og:url" content=""> <meta property="og:image" content=""> <link rel="manifest" href="site.webmanifest"> <link rel="apple-touch-icon" href="icon.png"> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/style.css"> <meta name="theme-color" content="#fafafa"> </head> <body> </body> </html>
Notes
- Place favicon.icoin the root directory. Can be picked up without a tag here, though some recommend to be explicit. See my Favicon cheatsheet.
- Assets are in dist. See dist/css.
- See also Normalize.css homepage.
- See the OG homepage for og tags.
Extended
Here is the above with suggestions added by ChatGPT.
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
    <meta charset="utf-8">
    <title>My title</title>
    <meta name="description" content="My description">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="My author">
    <meta name="application-name" content="My application name">
    <meta name="application-version" content="My application version">
    <meta property="og:title" content="My title">
    <meta property="og:type" content="">
    <meta property="og:url" content="">
    <meta property="og:image" content="">
    <link rel="manifest" href="site.webmanifest">
    <link rel="apple-touch-icon" href="icon.png">
    <link rel="icon" href="favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/webfont.css">
    <link rel="stylesheet" href="css/customfont.css">
    <script src="js/script.js"></script>
    <meta name="theme-color" content="#fafafa">
    <meta name="language" content="english">
    <meta name="copyright" content="My copyright">
    <script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "WebPage",
      "name": "My title",
      "url": ""
    }
    </script>
</head>
<body>
</body>
</html>