HTML Notes
.png)
HTML
.png)
HTML Tags and Elements
.png)
Attributes and Hyperlinks
.png)
Headings and Lists
.png)
Class and id attributes
.png)
Semantic Elements
.png)
Inline and Block-Level Elements
.png)
Div and Span
.png)
img
.png)
Tables
.png)
Forms
Heading
Q
1
What are Semantic Elements in HTML?

Ans
A semantic element clearly describes its meaning to both the browser and the developer.
Examples of non-semantic elements: <div>and <span> - Tells nothing about its content.
Examples of semantic elements: <form>, <table>, and <article> - Clearly defines its content.
Because semantic HTML uses elements for their given purpose, it's easier for both people and machines to read and understand it.

Q
2
Differentiate between semantic and non-semantic elements in HTML.

Ans
Semantics-Elements has meaning.Describes its meaning to browser and developer.
Example-
<article>
<section>
<header>
<footer>
<nav>
<aside>
<time>
Elements has no meaning called non-semantic elements.
Example-
<div>
<span>
