Posts

Showing posts from September, 2026

A Simple Guide on Main Tags in HTML

Image
 A Simple Guide on Main Tags in HTML What is a main tag A main tag in html is a tag that has a unique and important content for that particular html page or document and it should not be an information that is repeated across all other pages of the document. It is also not supposed to be the child element of a header, article, footer, nav, aside of a html page. Another important point to consider and note here is that the html document should not by any means have more than one main tag. Code Syntax <main> // some content to do with the main tag put here </main> Example Code for using a main tag Given below is a code block to understand the main tag usage in an html document. As you can understand here, you cannot use this content between the main tags in any other page of the html document as this is the main information provided inside the main tag and cannot be repeated across the other pages of the document. <main> <h1>Coding F...

Section Elements in HTML

Image
Section Elements in Html A guide to understand what are sections and how to use sections in a HTML page. Photo by Hal Gatewood on Unsplash Introduction  Section elements are very crucial to any website page as they help in determining their respective layouts and design in order to have a good reading experience and an aesthetic appeal as well. Section elements are used to group together similar content in a  html web page or document as explained in the paragraphs below. Section elements in a html page lends a semantic appeal to the page or document as explained below and demonstrated by the code block that is used for sectioning different parts of a similar content together while giving a rich user experience. Section Elements  We depict Section element by writing <section></section> whereby the open and closed Section tags would enclose the different sections accordingly.  For example, let us consider a web page document about a particular topic with ...