documentation | highlight js | | Search

An HTML document is composed of a root <html> element, containing metadata in the <head> element and content in the <body> element. The document uses styles and variables to dynamically generate content and layout properties.

Run example

npm run import -- "javadoc template"

javadoc template

<!DOCTYPE html>
<html>

<head>
  <meta charset='utf-8'>
  <meta http-equiv='X-UA-Compatible' content='IE=edge'>
  <title>${TITLE}</title>
  <meta name='viewport' content='width=device-width, initial-scale=1'>
  <link rel='stylesheet' type='text/css' media='screen' href='main.css'>
  <style>
    html {
      padding: 0;
      margin: 0;
    }

    nav {
      position: fixed;
      overflow: auto;
      top: 0;
      left: 0;
      right: auto;
      bottom: 0;
      width: 200px;
    }

    header {
      background-color: #EEE;
      padding: 10px;
    }

    body {
      padding: 0 0 0 200px;
      margin: 0;
    }

    .gold pre code,
    .gold pre code span,
    .gold code pre,
    .gold code pre span {
      color: gold;
    }

    @media screen and (max-width: 600px) {
      body {
        padding-left: 0;
      }

      nav {
        display: none;
      }
    }
  </style>
</head>

<body>
  <nav>
    <h3>${PARENT}</h3>
    ${CLASSES}
  </nav>
  <header>
    ${PARENT} | ${PREV} | ${NEXT} | ${SEARCH}
  </header>

  ${OUTPUT}
</body>

</html>

What the code could have been:




  
  
  <%=TITLE%>
  
  
  



  
  

  
  

  
  <%=OUTPUT%>

  
  <%----%>

  
  <%----%>


HTML Document Breakdown

Document Structure

Metadata

Styles

Content