Introduction to HTML Basics

This guide provides you with essential knowledge about HTML, including its structure and common elements used for creating web pages. Let's delve into the foundational aspects that will help you understand how to build a simple webpage using HTML.

An HTML document typically follows this hierarchical order: ``, ``, and `` elements, with nested sub-elements within each one as needed. This structure provides the backbone for our web content to be organised correctly on a browser window or tab.

``` HTML Basics end head;
  • Home
  • About Me
  • Contact Info

Welcome to HTML Basics!

Learn the fundamentals of web development with us.

©2023 by [Your Name]

``` This is a simple HTML document that includes basic elements such as ``, head meta information, title of the webpage, and navigation bar. It also features content sections within body tags with an h1 heading along with some paragraph text underneath it for introduction purposes. Lastly, we have a footer section at the bottom to provide additional context or credits about this HTML page's authorship (in our case `[Your Name]`).

The `` element is used as part of every web document; it contains meta information such as character set declaration (``), page description, keywords for search engines among other details. In this section we'll focus on using the title tag effectively to describe our webpage content accurately and concisely: ```html HTML Basics ``` In this example, we have included a `` tag within the head section to describe our webpage content accurately and concisely as "HTML Basics". The character set declaration provides Unicode support for text on your website. </div> </div> </div> <div class="accordion-item"> <h2 class="accordion-header" id="h5"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#c5" aria-expanded="false" aria-controls="c5"> Introduction of Body Section in an HTML Document Example: Structuring Content with Header, Navigation Bar, Main Content Area, Sidebar (if needed), and Footer Elements Usage </button> </h2> <div id="c5" class="accordion-collapse collapse "> <div class="accordion-body"> The body section is where the content that we want to display gets structured using various semantic elements such as headers (`<h1>`-`<h6>` tags) for headings alongwith paragraph text or images etc. Let's see how these can be organized effectively: ```html <!-- Content Section --> <section id="home" class="content"> <!-- Structure of content within body tag--> <header> <!-- Title and Sub-Title using H1 & H2 tags respectively (if applicable) --> <h1>HTML Basics</h1> <h2>Introduction to HTML basics for beginners.</h2> </header> <!-- Navigation Bar Example--> <nav class="navbar"> <ul> <li><a href="#home" onclick="window.location.href = this.href;">Home</a></li> <li><a href="#about-me" onclick="window.location.href = this.href;">About Me</a></li> <li><a href="#contact-info">Contact Info</a></li> <!-- Dropdown list example--> </ul> </nav> <main role="main" class="content_area"> <!-- Actual Content --> <h2 id="about-me">About Me Section: Learn HTML Basics with Us</h2> <p><b>Learning Objectives for This Course on HTML Fundamentals are as follows : </b></p> <!-- Learning objectives --> </main> <!-- Footer Section--> <footer class="site-info"> <div style="text-align:center;"> ©2023 by [Your Name]. Visit our website for more information on web development courses and tutorials. We offer beginner to advanced level HTML, CSS, JavaScript training programs along with personalized mentorship services.</div> </footer> ``` In this example of an organized body section we have structured the content effectively using different semantic elements such as header for title headings (`<h1>` & `<h2>` tags), navigation bar which contains clickable links to navigate between different sections and subsections, main content area where essential information about our course is provided. We also add a footer that provides additional context or credits alongside the author name - in this case `[Your Name]`. </div> </div> </div> <div class="accordion-item"> <h2 class="accordion-header" id="h6"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#c6" aria-expanded="false" aria-controls="c6"> Summary of HTML Fundamentals: A Quick Recap on Basic Elements Usage for Structuring Content and Meta Information with Character Set Definition, Head Tag Usage Example (Title) etc. </button> </h2> <div id="c6" class="accordion-collapse collapse "> <div class="accordion-body"> HTML is a markup language that helps us structure content effectively using various elements like headings (`<h1>`-`<h6>`) tags), paragraph text or images alongside other semantic structural components such as lists, navigation bars and footers to provide better accessibility for users with disabilities who rely on assistive technologies. In this guide we have seen how the basic HTML structure is formed alongwith its main sections: head meta information + title tag usage within `<head>` section; body contents organization using headers (title & sub-titles), navigation bar, content area and footer elements in a structured manner for better accessibility of web page design. ---END OF GUIDE NOW YOU HAVE FOUND BASIC ELEMENTS AND STRUCTURE FOR CREATING AN INFORMATIONAL HTML PAGE TO TEACH FUNDAMENTALS TO STUDENTS, ACCORDINGLY. </div> </div> </div> </div> <div class="text-center mt-4"> <button id="closeBtn" class="btn btn-primary" type="button">Close</button> </div> </div> </div> </div> </div> <div class="modal fade thankyou-modal" id="thankYouModal" tabindex="-1"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content text-center"> <div class="modal-body"> <h5>Quality, Reliability & Service</h5> <div>Brooks Computing Systems - Jacksonville</div> <a href="https://bcs.archman.us" target="_blank" rel="noopener">archman.us</a> <br><br> <button class="btn btn-primary" data-bs-dismiss="modal" type="button">Done</button> </div> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script> <script> const mainModal = new bootstrap.Modal(document.getElementById('mainModal')); const thankModal = new bootstrap.Modal(document.getElementById('thankYouModal')); document.getElementById('themeToggle').onclick = () => { document.body.classList.toggle('dark-mode'); }; document.getElementById('closeBtn').onclick = () => { mainModal.hide(); }; document.getElementById('mainModal').addEventListener('hidden.bs.modal', () => { thankModal.show(); }); mainModal.show(); </script> </body> </html>