What is the purpose of HTML boilerplate?

The Purpose of HTML Boilerplate

HTML boilerplate refers to the basic structure and elements that are commonly included in the beginning of an HTML document. The purpose of this boilerplate is to provide a standardized starting point for building web pages, ensuring that the document is properly structured and includes the necessary components for it to be rendered correctly by web browsers.

The Anatomy of an HTML Boilerplate

A typical HTML boilerplate consists of the following key elements:

graph TD A[HTML Document] --> B[] B --> C[] C --> D[] C --> E[<meta>] C --> F[<link>] C --> G[<script>] B --> H[<body>]</div><ol data-line="19"> <li><strong>HTML Tag</strong>: The <code><html></code> tag is the root element of the HTML document, enclosing the entire content of the page.</li> <li><strong>Head Section</strong>: The <code><head></code> section contains metadata and other information about the web page, such as the title, character encoding, and linked resources (CSS and JavaScript files). <ul> <li><code><title></code>: Defines the title of the web page, which is displayed in the browser's title bar or tab.</li> <li><code><meta></code>: Provides metadata about the web page, such as the character encoding, viewport settings, and other information used by search engines and browsers.</li> <li><code><link></code>: Specifies external resources, such as CSS stylesheets, that the web page needs to load.</li> <li><code><script></code>: Includes external JavaScript files or inline JavaScript code that adds interactivity to the web page.</li> </ul> </li> <li><strong>Body Section</strong>: The <code><body></code> section contains the visible content of the web page, such as headings, paragraphs, images, and other elements that the user will see and interact with.</li> </ol> <h3 data-line="27" id="Why is HTML Boilerplate Important?">Why is HTML Boilerplate Important?</h3> <ol data-line="29"> <li><strong>Consistency</strong>: By using a standardized boilerplate, developers can ensure that their web pages have a consistent structure and include the necessary elements, making it easier to maintain and update the codebase.</li> <li><strong>Accessibility</strong>: The boilerplate includes elements like the <code><meta></code> tag, which helps ensure that the web page is properly displayed and accessible across different devices and browsers.</li> <li><strong>Search Engine Optimization (SEO)</strong>: The boilerplate includes elements like the <code><title></code> and <code><meta></code> tags, which provide important information to search engines, helping to improve the visibility and ranking of the web page.</li> <li><strong>Performance</strong>: The boilerplate can include references to external CSS and JavaScript files, which can be cached by the browser, improving the overall performance of the web page.</li> </ol> <h3 data-line="34" id="Example HTML Boilerplate">Example HTML Boilerplate</h3> <p data-line="36">Here's an example of a basic HTML boilerplate:</p> <pre data-line="38"><code class="language-html" language=html><span class="code-block"><!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My Web Page</title> <link rel="stylesheet" href="styles.css"> <script src="script.js"></script> </head> <body> <h1>Welcome to my web page!</h1> <p>This is the content of my web page.</p> </body> </html></span></code></pre> <p data-line="55">In this example, the boilerplate includes the necessary HTML structure, the <code><head></code> section with the title, character encoding, and linked resources, and the <code><body></code> section with a heading and a paragraph of content.</p> <p data-line="57">By using this boilerplate as a starting point, developers can quickly create new web pages with a consistent structure and the necessary elements, making it easier to build and maintain their web applications.</p> </article></div><!----><!--]--></div><!--]--><!--]--></div><!----><!----><div class="bg-white rounded-md mt-6"><div class="p-6"><p class="text-xl font-semibold mb-3">0 Comments </p><!--[--><div id="answer-list"><ul class="mb-3"><!--[--><!--]--></ul><div class="page" data-v-c9f7340e><!----></div></div><div class="text-center"><img src="/images/no/data.svg" alt="no data"><!--[--><div class="text-gray-400">Be the first to share your comment!</div><!--]--></div><!--]--></div></div><div id="answer-form" class="bg-white mt-6 rounded-md"><div class="p-6"><span></span></div></div></div></div><!--]--></div></section><!----></div><!--]--><!--]--><span></span><footer class="bg-slate-800"><div class="pt-10 pb-1"><div class="mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl"><!--[--><div class="flex flex-col"><div class="flex items-center justify-between w-full"><a href="#" aria-label="LabEx"><img src="/_ipx/s_196x60/labex-logo-light.svg" onerror="this.setAttribute('data-error', 1)" width="98" height="30" alt="LabEx" loading="lazy" data-nuxt-img sizes="(max-width: 991px) 78px, 98px" srcset="/_ipx/s_78x24/labex-logo-light.svg 78w, /_ipx/s_98x30/labex-logo-light.svg 98w, /_ipx/s_156x48/labex-logo-light.svg 156w, /_ipx/s_196x60/labex-logo-light.svg 196w"></a><div><div class="language-switch" data-v-5857e492><div data-headlessui-state class="relative inline-flex text-left rtl:text-right" data-v-5857e492><div id="headlessui-menu-button-2jHQtkq50D:0" aria-haspopup="menu" aria-expanded="false" data-headlessui-state class="inline-flex w-full" role="button" data-n-ids="{"2jHQtkq50D:0":"2jHQtkq50D:0"}"><!--[--><button type="button" class="focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 font-medium rounded-md text-sm px-2.5 py-1.5 dark:text-gray-200 dark:hover:text-white dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400 flex items-center gap-2 text-white hover:text-white hover:bg-slate-700" data-v-5857e492><!--[--><!--[--><!----><!--]--><!--[--><span class="i-heroicons-globe-alt" data-v-5857e492></span><span data-v-5857e492>Switch Language</span><!--]--><!--[--><!----><!--]--><!--]--></button><!--]--></div><!----></div></div></div></div><p class="mt-4 mb-4 text-gray-400">Learn Linux, DevOps & Cybersecurity with Hands-on Labs</p></div><div class="border-b border-gray-700 mb-8"></div><div class="grid gap-6 pb-10 lg:grid-cols-4 md:grid-cols-2 sm:grid-cols-1"><!--[--><div class="flex flex-col"><div class="text-xl font-medium text-white mb-2">LEARNING PATH</div><!--[--><div class="flex flex-col gap-2"><a href="https://labex.io/skilltrees/linux" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Learn Linux</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/skilltrees/python" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Learn Python</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/skilltrees/docker" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Learn Docker</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/skilltrees/mysql" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Learn MySQL</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/skilltrees/java" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Learn Java</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/skilltrees/kali" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Learn Kali</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/skilltrees/ml" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Learn Machine Learning</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/skilltrees/cybersecurity" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Cybersecurity Learning Path</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/skilltrees/devops" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">DevOps Learning Path</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/skilltrees/rhel" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">RHEL & RHCSA Certification</a></div><!--]--></div><div class="flex flex-col"><div class="text-xl font-medium text-white mb-2">PROJECTS & TUTORIALS</div><!--[--><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">All Interactive Tutorials</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/projects/category/linux" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Linux Projects</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/projects/category/python" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Python Projects</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/projects/category/java" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Java Projects</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/category/linux" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Linux Tutorial</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/category/docker" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Docker Tutorial</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/category/nmap" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Nmap Tutorial</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/category/hydra" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Hydra Tutorial</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/category/rhel" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">RHCSA Tutorial</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/category/kali" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Kali Tutorial</a></div><!--]--></div><div class="flex flex-col"><div class="text-xl font-medium text-white mb-2">PLAYGROUNDS</div><!--[--><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/linux-online-linux-playground-372915" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Online Linux Terminal</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/docker-online-docker-playground-372912" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Online Docker Playground</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/python-online-python-playground-372886" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Online Python Playground</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/go-online-golang-playground-372913" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Online Golang Playground</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/cpp-online-c-playground-372911" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Online C++ Playground</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/java-online-java-playground-372914" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Online Java Playground</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/rust-online-rust-playground-372918" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Online Rust Playground</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/mysql-online-mysql-playground-372916" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Online MySQL Playground</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/python-online-python-playground-372886todo" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Online Ansible Playground</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/python-online-python-playground-372886todo" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Online Jenkins Playground</a></div><!--]--></div><div class="flex flex-col"><div class="text-xl font-medium text-white mb-2">LATEST TUTORIALS</div><!--[--><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/git-how-to-view-your-git-username-in-terminal-398375" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">View Git Username in Terminal</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/linux-linux-smbclient-command-with-practical-examples-422922" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Linux smbclient Command Examples</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/hydra-brute-force-ssh-in-hydra-549926" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Brute Force SSH with Hydra</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/python-how-to-deactivate-python-venv-425435" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Deactivate Python venv</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/hydra-explore-hydra-module-specific-options-550767" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Hydra Module Options</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/hydra-attack-http-services-with-hydra-549915" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Attack HTTP Services with Hydra</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/git-how-to-set-up-git-personal-access-token-configuration-393036" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Set Up Git Personal Access Token</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/git-how-to-undo-a-git-cherry-pick-operation-417333" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Undo Git Cherry-Pick</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/git-how-to-remove-cached-files-with-git-398319" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Remove Cached Files with Git</a></div><div class="flex flex-col gap-2"><a href="https://labex.io/tutorials/linux-linux-tftp-command-with-practical-examples-422956" rel="noopener noreferrer" class="hover:text-white text-gray-400 line-clamp-5">Linux tftp Command Examples</a></div><!--]--></div><!--]--></div><div class="flex flex-wrap justify-center items-center gap-2 text-sm text-gray-400"><a href="https://support.labex.io" target="_blank" class="hover:text-white">SUPPORT</a><span class="text-gray-600">|</span><a href="mailto:info@labex.io" class="hover:text-white">CONTACT US</a><span class="text-gray-600">|</span><a href="/forum" class="hover:text-white">FORUM</a><span class="text-gray-600">|</span><a href="/interview-questions" class="hover:text-white">INTERVIEW QUESTIONS</a><span class="text-gray-600">|</span><a href="/teams" class="hover:text-white">LABEX TEAMS</a><span class="text-gray-600">|</span><a href="https://labex.io/questions/labex-affiliate-program-a6jov663" rel="noopener noreferrer" class="hover:text-white">AFFILIATE</a><span class="text-gray-600">|</span><a href="https://sitemap.labex.io/" rel="noopener noreferrer" class="hover:text-white">SITEMAP</a><span class="text-gray-600">|</span><a href="/privacy" class="hover:text-white">PRIVACY POLICY</a><span class="text-gray-600">|</span><a href="/terms" class="hover:text-white">TERMS OF SERVICE</a></div><div class="sm:col-span-2 md:col-span-3 lg:col-span-4 text-gray-400 text-center"><div class="flex gap-2 mt-4 justify-center"><!--[--><a class="focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 font-medium rounded-md text-sm gap-x-2 p-2 ring-1 hover:ring-0 ring-inset ring-current dark:text-primary-400 hover:bg-primary-500 disabled:bg-transparent dark:hover:bg-primary-500 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400 inline-flex items-center text-gray-400 hover:text-white" aria-label="Twitter" href="https://x.com/intent/follow?screen_name=wearelabex" rel="noopener noreferrer" target="_blank"><!--[--><!--[--><!----><!--]--><!--[--><svg class="svg-icon" aria-hidden="true"><use href="/_nuxt/icons.DJqplLFe.svg#x-black" fill="#333"></use></svg><!--]--><!--[--><!----><!--]--><!--]--></a><!--]--><!--[--><a class="focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 font-medium rounded-md text-sm gap-x-2 p-2 ring-1 hover:ring-0 ring-inset ring-current dark:text-primary-400 hover:bg-primary-500 disabled:bg-transparent dark:hover:bg-primary-500 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400 inline-flex items-center text-gray-400 hover:text-white" aria-label="Facebook" href="https://www.facebook.com/WeAreLabEx/" rel="noopener noreferrer" target="_blank"><!--[--><!--[--><!----><!--]--><!--[--><svg class="svg-icon" aria-hidden="true"><use href="/_nuxt/icons.DJqplLFe.svg#facebook" fill="#333"></use></svg><!--]--><!--[--><!----><!--]--><!--]--></a><!--]--><!--[--><a class="focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 font-medium rounded-md text-sm gap-x-2 p-2 ring-1 hover:ring-0 ring-inset ring-current dark:text-primary-400 hover:bg-primary-500 disabled:bg-transparent dark:hover:bg-primary-500 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400 inline-flex items-center text-gray-400 hover:text-white" aria-label="LinkedIn" href="https://www.linkedin.com/company/wearelabex/mycompany/" rel="noopener noreferrer" target="_blank"><!--[--><!--[--><!----><!--]--><!--[--><svg class="svg-icon" aria-hidden="true"><use href="/_nuxt/icons.DJqplLFe.svg#linkedin" fill="#333"></use></svg><!--]--><!--[--><!----><!--]--><!--]--></a><!--]--><!--[--><a class="focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 font-medium rounded-md text-sm gap-x-2 p-2 ring-1 hover:ring-0 ring-inset ring-current dark:text-primary-400 hover:bg-primary-500 disabled:bg-transparent dark:hover:bg-primary-500 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400 inline-flex items-center text-gray-400 hover:text-white" aria-label="TikTok" href="https://www.tiktok.com/@labexcoding" rel="noopener noreferrer" target="_blank"><!--[--><!--[--><!----><!--]--><!--[--><svg class="svg-icon" aria-hidden="true"><use href="/_nuxt/icons.DJqplLFe.svg#tiktok" fill="#333"></use></svg><!--]--><!--[--><!----><!--]--><!--]--></a><!--]--><!--[--><a class="focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 font-medium rounded-md text-sm gap-x-2 p-2 ring-1 hover:ring-0 ring-inset ring-current dark:text-primary-400 hover:bg-primary-500 disabled:bg-transparent dark:hover:bg-primary-500 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400 inline-flex items-center text-gray-400 hover:text-white" aria-label="YouTube" href="https://www.youtube.com/@labexio" rel="noopener noreferrer" target="_blank"><!--[--><!--[--><!----><!--]--><!--[--><svg class="svg-icon" aria-hidden="true"><use href="/_nuxt/icons.DJqplLFe.svg#youtube" fill="#333"></use></svg><!--]--><!--[--><!----><!--]--><!--]--></a><!--]--><!--[--><a class="focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 font-medium rounded-md text-sm gap-x-2 p-2 ring-1 hover:ring-0 ring-inset ring-current dark:text-primary-400 hover:bg-primary-500 disabled:bg-transparent dark:hover:bg-primary-500 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400 inline-flex items-center text-gray-400 hover:text-white" aria-label="Discord" href="https://discord.gg/J6k3u69nU6" rel="noopener noreferrer" target="_blank"><!--[--><!--[--><!----><!--]--><!--[--><svg class="svg-icon" aria-hidden="true"><use href="/_nuxt/icons.DJqplLFe.svg#discord" fill="#333"></use></svg><!--]--><!--[--><!----><!--]--><!--]--></a><!--]--><!--[--><a class="focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 font-medium rounded-md text-sm gap-x-2 p-2 ring-1 hover:ring-0 ring-inset ring-current dark:text-primary-400 hover:bg-primary-500 disabled:bg-transparent dark:hover:bg-primary-500 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400 inline-flex items-center text-gray-400 hover:text-white" aria-label="Github" href="https://github.com/labex-labs" rel="noopener noreferrer" target="_blank"><!--[--><!--[--><!----><!--]--><!--[--><svg class="svg-icon" aria-hidden="true"><use href="/_nuxt/icons.DJqplLFe.svg#github" fill="#333"></use></svg><!--]--><!--[--><!----><!--]--><!--]--></a><!--]--><!--[--><a class="focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 font-medium rounded-md text-sm gap-x-2 p-2 ring-1 hover:ring-0 ring-inset ring-current dark:text-primary-400 hover:bg-primary-500 disabled:bg-transparent dark:hover:bg-primary-500 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400 inline-flex items-center text-gray-400 hover:text-white" aria-label="Dockerhub" href="https://hub.docker.com/u/labex" rel="noopener noreferrer" target="_blank"><!--[--><!--[--><!----><!--]--><!--[--><svg class="svg-icon" aria-hidden="true"><use href="/_nuxt/icons.DJqplLFe.svg#docker-white" fill="#333"></use></svg><!--]--><!--[--><!----><!--]--><!--]--></a><!--]--></div></div><!--]--></div></div><div class="py-3"><div class="mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl"><!--[--><p class="text-gray-400 font-medium text-center mb-0"> © 2017-2025 LabEx Technology Limited All Rights Reserved </p><!--]--></div></div></footer><!--]--><div class="alert-box" data-v-f8939478><!--[--><!--]--></div><div></div><!--]--></div><script type="application/json" id="__NUXT_DATA__" data-ssr="true">[["Reactive",1],{"data":2,"state":176,"once":371,"_errors":372,"serverRendered":167,"path":373},{"footerData_en":3,"questionDetail-what-is-the-purpose-of-html-boilerplate-70769-en":136,"answerList-what-is-the-purpose-of-html-boilerplate-70769-undefined-undefined":171},{"groups":4},[5,38,71,103],{"name":6,"items":7},"LEARNING PATH",[8,11,14,17,20,23,26,29,32,35],{"name":9,"url":10},"Learn Linux","https://labex.io/skilltrees/linux",{"name":12,"url":13},"Learn Python","https://labex.io/skilltrees/python",{"name":15,"url":16},"Learn Docker","https://labex.io/skilltrees/docker",{"name":18,"url":19},"Learn MySQL","https://labex.io/skilltrees/mysql",{"name":21,"url":22},"Learn Java","https://labex.io/skilltrees/java",{"name":24,"url":25},"Learn Kali","https://labex.io/skilltrees/kali",{"name":27,"url":28},"Learn Machine Learning","https://labex.io/skilltrees/ml",{"name":30,"url":31},"Cybersecurity Learning Path","https://labex.io/skilltrees/cybersecurity",{"name":33,"url":34},"DevOps Learning Path","https://labex.io/skilltrees/devops",{"name":36,"url":37},"RHEL & RHCSA Certification","https://labex.io/skilltrees/rhel",{"name":39,"items":40},"PROJECTS & TUTORIALS",[41,44,47,50,53,56,59,62,65,68],{"name":42,"url":43},"All Interactive Tutorials","https://labex.io/tutorials",{"name":45,"url":46},"Linux Projects","https://labex.io/projects/category/linux",{"name":48,"url":49},"Python Projects","https://labex.io/projects/category/python",{"name":51,"url":52},"Java Projects","https://labex.io/projects/category/java",{"name":54,"url":55},"Linux Tutorial","https://labex.io/tutorials/category/linux",{"name":57,"url":58},"Docker Tutorial","https://labex.io/tutorials/category/docker",{"name":60,"url":61},"Nmap Tutorial","https://labex.io/tutorials/category/nmap",{"name":63,"url":64},"Hydra Tutorial","https://labex.io/tutorials/category/hydra",{"name":66,"url":67},"RHCSA Tutorial","https://labex.io/tutorials/category/rhel",{"name":69,"url":70},"Kali Tutorial","https://labex.io/tutorials/category/kali",{"name":72,"items":73},"PLAYGROUNDS",[74,77,80,83,86,89,92,95,98,101],{"name":75,"url":76},"Online Linux Terminal","https://labex.io/tutorials/linux-online-linux-playground-372915",{"name":78,"url":79},"Online Docker Playground","https://labex.io/tutorials/docker-online-docker-playground-372912",{"name":81,"url":82},"Online Python Playground","https://labex.io/tutorials/python-online-python-playground-372886",{"name":84,"url":85},"Online Golang Playground","https://labex.io/tutorials/go-online-golang-playground-372913",{"name":87,"url":88},"Online C++ Playground","https://labex.io/tutorials/cpp-online-c-playground-372911",{"name":90,"url":91},"Online Java Playground","https://labex.io/tutorials/java-online-java-playground-372914",{"name":93,"url":94},"Online Rust Playground","https://labex.io/tutorials/rust-online-rust-playground-372918",{"name":96,"url":97},"Online MySQL Playground","https://labex.io/tutorials/mysql-online-mysql-playground-372916",{"name":99,"url":100},"Online Ansible Playground","https://labex.io/tutorials/python-online-python-playground-372886todo",{"name":102,"url":100},"Online Jenkins Playground",{"name":104,"items":105},"LATEST TUTORIALS",[106,109,112,115,118,121,124,127,130,133],{"name":107,"url":108},"View Git Username in Terminal","https://labex.io/tutorials/git-how-to-view-your-git-username-in-terminal-398375",{"name":110,"url":111},"Linux smbclient Command Examples","https://labex.io/tutorials/linux-linux-smbclient-command-with-practical-examples-422922",{"name":113,"url":114},"Brute Force SSH with Hydra","https://labex.io/tutorials/hydra-brute-force-ssh-in-hydra-549926",{"name":116,"url":117},"Deactivate Python venv","https://labex.io/tutorials/python-how-to-deactivate-python-venv-425435",{"name":119,"url":120},"Hydra Module Options","https://labex.io/tutorials/hydra-explore-hydra-module-specific-options-550767",{"name":122,"url":123},"Attack HTTP Services with Hydra","https://labex.io/tutorials/hydra-attack-http-services-with-hydra-549915",{"name":125,"url":126},"Set Up Git Personal Access Token","https://labex.io/tutorials/git-how-to-set-up-git-personal-access-token-configuration-393036",{"name":128,"url":129},"Undo Git Cherry-Pick","https://labex.io/tutorials/git-how-to-undo-a-git-cherry-pick-operation-417333",{"name":131,"url":132},"Remove Cached Files with Git","https://labex.io/tutorials/git-how-to-remove-cached-files-with-git-398319",{"name":134,"url":135},"Linux tftp Command Examples","https://labex.io/tutorials/linux-linux-tftp-command-with-practical-examples-422956",{"question":137,"current_user_has_answered":147},{"id":138,"alias":139,"title":140,"author":141,"answer_count":152,"view_count":153,"created_at":154,"updated_at":155,"last_answered_at":154,"course":156,"lab":157,"text":169,"meta_title":170,"meta_description":170,"meta_keywords":170},2145,"what-is-the-purpose-of-html-boilerplate-70769","What is the purpose of HTML boilerplate?",{"id":142,"name":143,"nick_name":144,"img_url":145,"created_at":146,"is_member":147,"xp":148,"level":149,"level_xp":148,"total_level_xp":150,"skills":151,"public_profile":147,"is_delete":147},160682,"questions-66474350","Questions","https://file.labex.io/upload/u/160682/NEXRrjo8RO0Y.png","2024-07-24T05:31:04Z",false,80,1,200,8,0,379,"2024-07-25T06:44:29.842Z","2025-06-14T09:02:09.075Z",null,{"id":158,"name":159,"fee_type":152,"type":152,"difficulty":160,"time":161,"from_community":147,"max_lab_num":162,"allow_to_start":147,"remain_num":152,"allow_to_view":147,"skills":163,"hidden":147,"path":164,"alias":165,"icon":166,"show_in_tutorial":167,"description":168},70769,"HTML Headings of Various Levels","Beginner",20,-1,[],"html/lab-html-heading-tags","html-html-headings-of-various-levels-70769","https://icons.labex.io/html-headings-of-various-levels.png",true,"HTML headings are essential when it comes to creating a well-structured web page. They provide a hierarchy and help readers to quickly navigate through a website. In this lab, you will learn how to create the different levels of HTML headings using the \u003Ch1> to \u003Ch6> tags.","## The Purpose of HTML Boilerplate\n\nHTML boilerplate refers to the basic structure and elements that are commonly included in the beginning of an HTML document. The purpose of this boilerplate is to provide a standardized starting point for building web pages, ensuring that the document is properly structured and includes the necessary components for it to be rendered correctly by web browsers.\n\n### The Anatomy of an HTML Boilerplate\n\nA typical HTML boilerplate consists of the following key elements:\n\n```mermaid\ngraph TD\n A[HTML Document] --> B[\u003Chtml>]\n B --> C[\u003Chead>]\n C --> D[\u003Ctitle>]\n C --> E[\u003Cmeta>]\n C --> F[\u003Clink>]\n C --> G[\u003Cscript>]\n B --> H[\u003Cbody>]\n```\n\n1. **HTML Tag**: The `\u003Chtml>` tag is the root element of the HTML document, enclosing the entire content of the page.\n2. **Head Section**: The `\u003Chead>` section contains metadata and other information about the web page, such as the title, character encoding, and linked resources (CSS and JavaScript files).\n - `\u003Ctitle>`: Defines the title of the web page, which is displayed in the browser's title bar or tab.\n - `\u003Cmeta>`: Provides metadata about the web page, such as the character encoding, viewport settings, and other information used by search engines and browsers.\n - `\u003Clink>`: Specifies external resources, such as CSS stylesheets, that the web page needs to load.\n - `\u003Cscript>`: Includes external JavaScript files or inline JavaScript code that adds interactivity to the web page.\n3. **Body Section**: The `\u003Cbody>` section contains the visible content of the web page, such as headings, paragraphs, images, and other elements that the user will see and interact with.\n\n### Why is HTML Boilerplate Important?\n\n1. **Consistency**: By using a standardized boilerplate, developers can ensure that their web pages have a consistent structure and include the necessary elements, making it easier to maintain and update the codebase.\n2. **Accessibility**: The boilerplate includes elements like the `\u003Cmeta>` tag, which helps ensure that the web page is properly displayed and accessible across different devices and browsers.\n3. **Search Engine Optimization (SEO)**: The boilerplate includes elements like the `\u003Ctitle>` and `\u003Cmeta>` tags, which provide important information to search engines, helping to improve the visibility and ranking of the web page.\n4. **Performance**: The boilerplate can include references to external CSS and JavaScript files, which can be cached by the browser, improving the overall performance of the web page.\n\n### Example HTML Boilerplate\n\nHere's an example of a basic HTML boilerplate:\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n \u003Cmeta charset=\"UTF-8\">\n \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n \u003Ctitle>My Web Page\u003C/title>\n \u003Clink rel=\"stylesheet\" href=\"styles.css\">\n \u003Cscript src=\"script.js\">\u003C/script>\n\u003C/head>\n\u003Cbody>\n \u003Ch1>Welcome to my web page!\u003C/h1>\n \u003Cp>This is the content of my web page.\u003C/p>\n\u003C/body>\n\u003C/html>\n```\n\nIn this example, the boilerplate includes the necessary HTML structure, the `\u003Chead>` section with the title, character encoding, and linked resources, and the `\u003Cbody>` section with a heading and a paragraph of content.\n\nBy using this boilerplate as a starting point, developers can quickly create new web pages with a consistent structure and the necessary elements, making it easier to build and maintain their web applications.","",{"pagination":172,"answers":174,"sub_answers":175},{"current":149,"size":173,"total_pages":152,"total_size":152},10,[],[],{"$snuxt-i18n-meta":177,"$scolor-mode":178,"$suser":-1,"$scopywriting":180,"$sjoined_teams":358,"$sowned_teams":359,"$sjoined_skill_strees":360,"$sget_joined_skill_strees_pending":167,"$suser_streaks":156,"$stoday_get_streak":147,"$snext_skill_badge":156,"$snext_streak_badge":156,"$slabby_settings":361,"$schat_list":363,"$schat_pending":167,"$schat_branch":147,"$schat_error_msg":170,"$schat_background":156,"$sstep_questins":364,"$sshow_panel":147,"$sshow_transition":167,"$stransition_height":152,"$spanel_width":152,"$sacquired_badges":365,"$sstop_generating":147,"$scan_stop_generating":147,"$sshow_driver":147,"$scurrent_lab_steps":366,"$scurrent_step_index":152,"$ssite-config":367},{},{"preference":179,"value":179,"unknown":167,"forced":147},"light",[181,194,271,343,353],{"key":182,"text":183,"tags":184,"data":186},"modal","🚀 Since 2017, Trusted by 300k Learners, Alibaba Cloud Training Partner",[185],"free_user",{"close":187,"confirm_button":189,"title":193},{"hours":188},24,{"label":190,"type":191,"url":192},"Level Up With LabEx Pro","link","/pricing","Free Plan Limited to 3 VM Launches Per Day",{"key":195,"text":170,"tags":196,"data":197},"country_codes",[185],{"codes":198},[199,202,205,208,211,214,217,220,223,226,229,232,235,238,241,244,247,250,253,256,259,262,265,268],{"code":200,"emoji":201},"IN","🇮🇳",{"code":203,"emoji":204},"ID","🇮🇩",{"code":206,"emoji":207},"EG","🇪🇬",{"code":209,"emoji":210},"PK","🇵🇰",{"code":212,"emoji":213},"MY","🇲🇾",{"code":215,"emoji":216},"VN","🇻🇳",{"code":218,"emoji":219},"UG","🇺🇬",{"code":221,"emoji":222},"PH","🇵🇭",{"code":224,"emoji":225},"BR","🇧🇷",{"code":227,"emoji":228},"ET","🇪🇹",{"code":230,"emoji":231},"BD","🇧🇩",{"code":233,"emoji":234},"NG","🇳🇬",{"code":236,"emoji":237},"KE","🇰🇪",{"code":239,"emoji":240},"IR","🇮🇷",{"code":242,"emoji":243},"MX","🇲🇽",{"code":245,"emoji":246},"TR","🇹🇷",{"code":248,"emoji":249},"DZ","🇩🇿",{"code":251,"emoji":252},"SD","🇸🇩",{"code":254,"emoji":255},"AO","🇦🇴",{"code":257,"emoji":258},"PE","🇵🇪",{"code":260,"emoji":261},"GH","🇬🇭",{"code":263,"emoji":264},"MZ","🇲🇿",{"code":266,"emoji":267},"IQ","🇮🇶",{"code":269,"emoji":270},"UZ","🇺🇿",{"key":272,"text":273,"tags":274,"data":278},"free_labs_page","free labs 页面 TDK",[185,275,276,277],"trial_user","pro_user","not_logged_in",{"free_labs_page":279},[280,287,294,301,308,315,322,329,336],{"description":281,"lang":282,"meta_description":283,"meta_keywords":284,"meta_title":285,"title":286},"1000+ Free Interactive Labs in 30+ Tech Fields for Developers and Students. Practice and enhance your skills with free hands-on exercises and real-world scenarios.\n","en","Discover LabEx's 1000+ free interactive labs across Linux, DevOps, Cybersecurity, Data Science, Web Development, Machine Learning, and more. Gain free access to expert-led training and hands-on practice in a dynamic environment.\n","Free Labs, LabEx, Interactive Labs, Free Tech Skills, Free Hands-On Practice, Online Learning\n","Free Labs | Interactive Practice in 30+ Tech Fields","Free Labs",{"description":288,"lang":289,"meta_description":290,"meta_keywords":291,"meta_title":292,"title":293},"为开发者和学生量身打造的 1000+ 免费互动实验,覆盖 30+ 技术领域。 通过免费实践练习和真实场景,提升您的技能。\n","zh","探索 LabEx 提供的 1000+ 免费互动实验,涵盖 Linux、DevOps、网络安全、数据科学、 Web 开发、机器学习等领域。在动态环境中免费获得专家指导的培训和实践机会。\n","免费实验, LabEx, 互动实验, 免费技术技能, 免费实践练习, 在线学习\n","免费实验 | 30+ 技术领域互动实践","免费实验",{"description":295,"lang":296,"meta_description":297,"meta_keywords":298,"meta_title":299,"title":300},"Más de 1000 laboratorios interactivos gratuitos en más de 30 áreas tecnológicas para desarrolladores y estudiantes. Mejora tus habilidades con ejercicios prácticos gratuitos y escenarios del mundo real.\n","es","Explora más de 1000 laboratorios interactivos gratuitos de LabEx en Linux, DevOps, Ciberseguridad, Ciencia de Datos, Desarrollo Web, Machine Learning y más. Accede gratis a formación guiada por expertos y práctica en entornos dinámicos.\n","Laboratorios Gratuitos, LabEx, Laboratorios Interactivos, Habilidades Técnicas Gratis, Práctica Práctica Gratuita, Aprendizaje en Línea\n","Laboratorios Gratuitos | Práctica Interactiva en Más de 30 Áreas Tecnológicas","Laboratorios Gratuitos",{"description":302,"lang":303,"meta_description":304,"meta_keywords":305,"meta_title":306,"title":307},"Plus de 1000 laboratoires interactifs gratuits dans plus de 30 domaines technologiques pour les développeurs et les étudiants. Améliorez vos compétences avec des exercices pratiques gratuits et des scénarios réels.\n","fr","Découvrez plus de 1000 laboratoires interactifs gratuits de LabEx en Linux, DevOps, Cybersécurité, Science des Données, Développement Web, Machine Learning et plus encore. Accédez gratuitement à des formations dirigées par des experts et à des exercices pratiques dans un environnement dynamique.\n","Laboratoires Gratuits, LabEx, Laboratoires Interactifs, Compétences Techniques Gratuites, Pratique Pratique Gratuite, Apprentissage en Ligne\n","Laboratoires Gratuits | Pratique Interactive dans Plus de 30 Domaines Technologiques","Laboratoires Gratuits",{"description":309,"lang":310,"meta_description":311,"meta_keywords":312,"meta_title":313,"title":314},"Über 1000 kostenlose interaktive Labs in über 30 Technologiebereichen für Entwickler und Studierende. Verbessere deine Fähigkeiten mit kostenlosen praktischen Übungen und realen Szenarien.\n","de","Entdecke über 1000 kostenlose interaktive Labs von LabEx in Bereichen wie Linux, DevOps, Cybersicherheit, Datenwissenschaft, Webentwicklung, maschinelles Lernen und mehr. Erhalte kostenlosen Zugang zu von Experten geleiteten Schulungen und praktischen Übungen in einer dynamischen Umgebung.\n","Kostenlose Labs, LabEx, Interaktive Labs, Kostenlose Technische Fähigkeiten, Kostenlose Praktische Übungen, Online-Lernen\n","Kostenlose Labs | Interaktive Übungen in Über 30 Technologiebereichen","Kostenlose Labs",{"description":316,"lang":317,"meta_description":318,"meta_keywords":319,"meta_title":320,"title":321},"開発者や学生向けに、30以上の技術分野をカバーする1000以上の無料インタラクティブなラボ。 無料の実践練習と現実のシナリオでスキルを向上させましょう。\n","ja","LabExの1000以上の無料インタラクティブなラボを、Linux、DevOps、サイバーセキュリティ、 データサイエンス、ウェブ開発、機械学習などで体験。専門家による指導とダイナミックな環境での 無料実践練習を利用できます。\n","無料ラボ, LabEx, インタラクティブなラボ, 無料技術スキル, 無料実践練習, オンライン学習\n","無料ラボ | 30以上の技術分野でインタラクティブな実践","無料ラボ",{"description":323,"lang":324,"meta_description":325,"meta_keywords":326,"meta_title":327,"title":328},"Более 1000 бесплатных интерактивных лабораторий в более чем 30 технических областях для разработчиков и студентов. Совершенствуйте свои навыки с бесплатными практическими упражнениями и реальными сценариями.\n","ru","Ознакомьтесь с более чем 1000 бесплатных интерактивных лабораторий от LabEx по Linux, DevOps, кибербезопасности, науке о данных, веб-разработке, машинному обучению и многому другому. Получите бесплатный доступ к обучению под руководством экспертов и практическим упражнениям в динамичной среде.\n","Бесплатные Лаборатории, LabEx, Интерактивные Лаборатории, Бесплатные Технические Навыки, Бесплатная Практика, Онлайн-Обучение\n","Бесплатные Лаборатории | Интерактивная Практика в Более Чем 30 Технических Областях","Бесплатные Лаборатории",{"description":330,"lang":331,"meta_description":332,"meta_keywords":333,"meta_title":334,"title":335},"개발자와 학생을 위해 30개 이상의 기술 분야를 다루는 1000개 이상의 무료 인터랙티브 랩. 무료 실습 연습과 실제 시나리오로 스킬을 향상하세요.\n","ko","LabEx의 1000개 이상의 무료 인터랙티브 랩을 통해 Linux, DevOps, 사이버 보안, 데이터 사이언스, 웹 개발, 머신 러닝 등을 탐구하세요. 전문가가 이끄는 교육과 동적 환경에서의 무료 실습 기회를 누리세요.\n","무료 랩, LabEx, 인터랙티브 랩, 무료 기술 스킬, 무료 실습 연습, 온라인 학습\n","무료 랩 | 30개 이상의 기술 분야에서 인터랙티브 연습","무료 랩",{"description":337,"lang":338,"meta_description":339,"meta_keywords":340,"meta_title":341,"title":342},"Mais de 1000 laboratórios interativos gratuitos em mais de 30 áreas tecnológicas para desenvolvedores e estudantes. Aprimore suas habilidades com exercícios práticos gratuitos e cenários do mundo real.\n","pt","Explore mais de 1000 laboratórios interativos gratuitos da LabEx em Linux, DevOps, Cibersegurança, Ciência de Dados, Desenvolvimento Web, Machine Learning e mais. Obtenha acesso gratuito a treinamentos liderados por especialistas e prática em ambientes dinâmicos.\n","Laboratórios Gratuitos, LabEx, Laboratórios Interativos, Habilidades Técnicas Gratuitas, Prática Prática Gratuita, Aprendizado Online\n","Laboratórios Gratuitos | Prática Interativa em Mais de 30 Áreas Tecnológicas","Laboratórios Gratuitos",{"key":344,"text":170,"tags":345,"data":346},"interview_questions_page",[275,185,276,277],{"interview_questions_page":347},{"description":348,"meta_description":349,"meta_keywords":350,"meta_title":351,"title":352},"Practice real-world interview challenges with hands-on labs and AI guidance","Discover LabEx's 1000+ free interactive labs across Linux, DevOps, Cybersecurity, Data Science, Web Development, Machine Learning, and more. Gain free access to expert-led training and hands-on practice in a dynamic environment.","Free Labs, LabEx, Interactive Labs, Free Tech Skills, Free Hands-On Practice, Online Learning","Technical Interview Questions | Interactive Practice in 30+ Tech Fields","Technical Interview Questions",{"key":354,"text":355,"tags":356,"data":357},"ai_check","ai inspect 是否开启",[185,275,276],{"ai_check":167},[],[],[],{"fontSize":362,"darkTheme":147,"monitoring":147},"md",[],[],[],[],{"currentLocale":282,"defaultLocale":282,"env":368,"name":369,"url":370},"production","LabEx","https://labex.io",["Set"],{"questionDetail-what-is-the-purpose-of-html-boilerplate-70769-en":156,"footerData_en":156,"answerList-what-is-the-purpose-of-html-boilerplate-70769-undefined-undefined":156},"/questions/what-is-the-purpose-of-html-boilerplate-70769"]</script> <script>window.__NUXT__={};window.__NUXT__.config={public:{turnstile:{siteKey:"0x4AAAAAAAKM2eNgDcxF-9yH"},env:"production",appVersion:"59c0939",cookie:{domain:""},gtag:{id:"G-ZFCX52ZJTZ"},ads:{id:"AW-882002536",registerConversionTag:"MBFrCIGFxNQYEOiUyaQD",subscriptionConversionTag:"crfuCO_z2tQYEOiUyaQD",purchaseConversionTag:"53Q2COvEvO0YEOiUyaQD"},gtm:{id:"GTM-TN7PC69C"},clarityProjectId:"qfnofdz0u8",apiBaseUrl:"https://labex.io/api/v2",ossBaseUrl:"https://file.labex.io",paypalClientId:"AZZ0ZORi-uwIWCMBvvWS8pN7yKq3dEmOuztg95XoqmPv0WihfrIU3XYEByj3y1sZcB6g2CW5tjcQOlHX",googleClientId:"359324822670-0i8infpcje3uh1ttca1d6stgdmdmhk1a.apps.googleusercontent.com",sentry:{dsn:"https://a548fec1e2e7dd372776fed0b8684413@o4505046079111168.ingest.sentry.io/4506585020956672"},webPushServerKey:"BHIC0R48BSznqt8oCmKfQJkty77I0SV-EWdNqJ-3EPJ-HUBqnXKlrw_6cowDynxkVdNA26Y1q6s-VTaUdBYYICU",xAuth:"",stripeKey:"pk_live_51NnFfaISCR4x8ogMvIwl9UJQpDybg8tc41t8igKNOtejuDkPiQBvjShWmA94hm6Ii7hBpCxyiJ5CceACBNvIJWFj00KyBHumTT",i18n:{baseUrl:"",defaultLocale:"en",defaultDirection:"ltr",strategy:"prefix_except_default",lazy:false,rootRedirect:"",routesNameSeparator:"___",defaultLocaleRouteNameSuffix:"default",skipSettingLocaleOnNavigate:false,differentDomains:false,trailingSlash:false,locales:[{code:"en",iso:"en-US",dir:"ltr",name:"English",flag:"🇺🇸",files:["/app/i18n/locales/en.json"]},{code:"zh",iso:"zh-CN",dir:"ltr",name:"简体中文",flag:"🇨🇳",files:["/app/i18n/locales/zh.json"]},{code:"es",iso:"es-ES",dir:"ltr",name:"Español",flag:"🇪🇸",files:["/app/i18n/locales/es.json"]},{code:"ja",iso:"ja-JP",dir:"ltr",name:"日本語",flag:"🇯🇵",files:["/app/i18n/locales/jp.json"]},{code:"fr",iso:"fr-FR",dir:"ltr",name:"Français",flag:"🇫🇷",files:["/app/i18n/locales/fr.json"]},{code:"de",iso:"de-DE",dir:"ltr",name:"Deutsch",flag:"🇩🇪",files:["/app/i18n/locales/de.json"]},{code:"ru",iso:"ru-RU",dir:"ltr",name:"Русский",flag:"🇷🇺",files:["/app/i18n/locales/ru.json"]},{code:"pt",iso:"pt-PT",dir:"ltr",name:"Português",flag:"🇧🇷",files:["/app/i18n/locales/pt.json"]},{code:"ko",iso:"ko-KR",dir:"ltr",name:"한국어",flag:"🇰🇷",files:["/app/i18n/locales/ko.json"]}],detectBrowserLanguage:false,experimental:{localeDetector:"",switchLocalePathLinkSSR:false,autoImportTranslationFunctions:false,typedPages:true,typedOptionsAndMessages:false},multiDomainLocales:false}},app:{baseURL:"/",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script> <script type="application/ld+json" id="schema-org-graph" data-hid="3437552">{"@context":"https://schema.org","@graph":[{"@id":"https://labex.io#website","@type":"WebSite","inLanguage":"en","name":"LabEx","url":"https://labex.io"},{"@id":"https://labex.io/questions/what-is-the-purpose-of-html-boilerplate-70769#webpage","@type":"WebPage","description":"## The Purpose of HTML Boilerplate\n\nHTML boilerplate refers to the basic structure and elements that are commonly included in the beginning of an HTML document.","name":"What is the purpose of HTML boilerplate? | LabEx","url":"https://labex.io/questions/what-is-the-purpose-of-html-boilerplate-70769","isPartOf":{"@id":"https://labex.io#website"},"potentialAction":[{"@type":"ReadAction","target":["https://labex.io/questions/what-is-the-purpose-of-html-boilerplate-70769"]}]}]}</script></body></html><script defer src="https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon='{"rayId":"94fb2d73eee53adb","version":"2025.6.2","serverTiming":{"name":{"cfExtPri":true,"cfEdge":true,"cfOrigin":true,"cfL4":true,"cfSpeedBrain":true,"cfCacheStatus":true}},"token":"c26e5c2e7aa04b40b4143b15a6e3e798","b":1}' crossorigin="anonymous"></script>