HTML v/s HTML5
HTML uses browser cache memory as temporary storage. HTML5 offers multiple storage options, such as an SQL database, application cache, and web storage.
Points of HTML :
No support for audio and video.
Does not have any standard process to handel the codes that have structual error.
It does not allow javascript to run in the browser.
HTML is not a mobile friendly markup language.
Points of HTML5 :
Supports high quality audio and video.
Have support for persistent error handler through improvised error handling process.
It allows javascript to run in the background
HTML5 is quite mobile friendly.
HTML5 is the most recent version of the Hypertext Markup Language (HTML).
Semantic Tag
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.
In HTML there are some semantic elements that can be used to define different parts of a web page:
<article> - element specifies independent, self-contained content.
Examples of where the
<article>
element can be used:Forum posts
Blog posts
User comments
Product cards
Newspaper articles
<footer> - element defines a footer for a document or section.
A
<footer>
element typically contains:authorship information
copyright information
contact information
sitemap
back to top links
related documents
<header> - element represents a container for introductory content or a set of navigational links.
A
<header>
element typically contains:one or more heading elements (<h1> - <h6>)
logo or icon
authorship information
<nav> - element defines a set of navigation links.
<section> - a section in a document.
DAY_8 25_Jan(Wed)_2023