Loading Please Wait...
Semantic elements are the elements with specific meaning. The name of the elements clearly defines the use to both the developer and the browser.
For example, <div> and <span> (non-semantic elements) describe nothing why it is used.
For example, <header> and <nav> (semantic elements) describe their use that is first one is header and second one is navigation.
HTML have various semantic elements to describe different part of the web page:
The <section> element defines a thematic group of content, typically with heading.
The <article> element defines an independent, self contained, reusable, and distributable content.
<!DOCTYPE html>
<html>
<body>
<section>
<h1>Latest News</h1>
<article>
<h3>News 1</h3>
<p>News 1 description</p>
</article>
<article>
<h3>News 2</h3>
<p>News 2 description</p>
</article>
</section>
</body>
</html>
The <aside> element defines content that is aside from other content such as sidebar.
<!DOCTYPE html>
<html>
<body>
<h1>Lynxsia IT Solutions</h1>
<p>
We are concern with various development process like website design & development,
E-commerce development, Software development, Application development,
SMS & Bulk SMS Provider, PWA Development, and many more.
</p>
<aside>
<h3>Sidebar Navigation</h3>
<ul>
<li><a href="https://lynxsia.com/">Home</a></li>
<li><a href="https://lynxsia.com/about">About</a></li>
<li><a href="https://lynxsia.com/contact">Contact</a></li>
</ul>
</aside>
</body>
</html>
The <details> element defines content with which user can interact to show and hide when needed.
The <summary> element defines a heading for the <details> element.
<!DOCTYPE html>
<html>
<body>
<details>
<summary>Lynxsia IT Solutions</summary>
<p>
We are concern with various development process like website design & development,
E-commerce development, Software development, Application development,
SMS & Bulk SMS Provider, PWA Development, and many more.
</p>
</details>
</body>
</html>
The <figure> element defines self-contained section for media like illustrations, images, etc.
The <figcaption> element defines a figure caption for the <figure> element.
The <img> element defines the actual figure.
<!DOCTYPE html>
<html>
<body>
<figure>
<img src="https://lynxsia.com/upload/logo/lynxsia-it-solutions-logo_1661513244.png">
<figcaption>Logo of Lynxsia IT Solutions</figcaption>
</figure>
</body>
</html>
The <footer> element defines the footer for the document.
<!DOCTYPE html>
<html>
<body>
<footer>
Copyright © 2023 <strong>Lynxsia IT Solution</strong>.
</footer>
</body>
</html>
The <header> element defines at the top of the document, a section, or article containg main heading, logo, navigation links, search tools, etc.
The <hgroup> element defines a group of headings such as main title, sub title, etc.
<!DOCTYPE html>
<html>
<body>
<header>
<img src="https://lynxsia.com/upload/logo/lynxsia-it-solutions-logo_1661513244.png">
<ul>
<li><a href="https://lynxsia.com/">Home</a></li>
<li><a href="https://lynxsia.com/about">About</a></li>
<li><a href="https://lynxsia.com/contact">Contact</a></li>
</ul>
</header>
<hgroup>
<h1>Main title</h1>
<h3>Subtitle</h3>
<p>Descripton</p>
</hgroup>
</body>
</html>
The <main> element defines the main content of the document. The content inside <main> element should be unique
<!DOCTYPE html>
<html>
<body>
<main>
<h1>Latest News</h1>
<article>
<h3>News 1</h3>
<p>News 1 description</p>
</article>
<article>
<h3>News 2</h3>
<p>News 2 description</p>
</article>
</main>
</body>
</html>
The <mark> element defines highlighted, and marked text.
<!DOCTYPE html>
<html>
<body>
<p>Sales end on <mark>12-02-2023</mark></p>
</body>
</html>
The <nav> element defines a group of important navigation links such as header, sidebar, footer.
<!DOCTYPE html>
<html>
<body>
<header>
<nav>
<ul>
<li><a href="https://lynxsia.com/">Home</a></li>
<li><a href="https://lynxsia.com/about">About</a></li>
<li><a href="https://lynxsia.com/contact">Contact</a></li>
</ul>
</nav>
</header>
</body>
</html>
The <time> element defines date and time.
<!DOCTYPE html>
<html>
<body>
<p>Office time is from <time>10:00</time> and we are off on <time>20-12-2022</time></p>
</body>
</html>
How you feel about this blog:
Share this blog on:
If you find any error in the turtorials, or want to share your suggestion/feedback, feel free to send us email at: info@lynxsia.com
Contact UsWe are concern with various development process like website design & development, E-commerce development, Software development, Application development, SMS & Bulk SMS Provider, PWA Development, and many more..
Copyright ©
, Lynxsia IT Solutions, All rights reserved