03. HTML Structure
main class="anita-main" tag.
<!DOCTYPE html>html lang="en" head meta charset="UTF-8" meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1 " meta Page Titlehttp-equiv="X-UA-Compatible" content="ie=edge" title Your Page Title/title Google Fontslink Template Confighref="https://fonts.googleapis.com/css2?family=Open+Sans:wght@600;800&family=Rajdhani:wght@700&display=swap" rel="stylesheet" link Librariestype="text/css" rel="stylesheet" href="css/config.css" link Template Stylestype="text/css" rel="stylesheet" href="css/libs.css" link Responsivetype="text/css" rel="stylesheet" href="css/style.css" link Favicontype="text/css" rel="stylesheet" href="css/responsive.css" link rel="icon" href="img/favicon.png" sizes="32x32" /head body Headerheader id="anita-header" class="anita-header" div ...class="anita-header-inner" /div /header Fullscreen Menudiv ...class="anita-fullscreen-menu-wrap" /div Page Background (Optional)div class="anita-page-background-wrap" div class="anita-page-background" data-src="(your_image_or_video_url)" data-opacity="0.05" /div /div Page Contentmain ...class="anita-main" /main Footerfooter id="anita-footer" div ...class="anita-footer-inner" /div /footer JS Scriptsscript src="js/lib/jquery.min.js" /script script src="js/lib/aos.min.js" /script script src="js/lib/core.js" /script /body /html
In the example above, you can see the base structure of the HTML file. All main parts of the code are commented on for better understanding and ease of use. Some parts shown in the example are optional or depend on some options. We will take a closer look at them below.
In the section all you need to change from page to page, is the tag. And even this is optional because you can use your company name title for all pages. In the rest, the part is the same for all pages unless you will want to add some additional styles to some of the pages.
Content Animation on Scroll
In our template, you can find data attributes like data-aos, data-aos-delay, and data-aos-offset in the code for some blocks. These attributes are used to animate elements appearing. In our template, we use the AOS library for that purpose. You can find detailed information about how to use them in the official documentation here: https://michalsnik.github.io/aos/.