We're shifting on web 3.0 or you are still using Div element all along.🙄

That's not fair🤦‍♂️🤷‍♂️

Let's upgrade Div with Semantic tags. 🤯✔

thread🧵👇 Image
1️⃣ Wtf is Semantic?

Semantics refers to the meaning of a piece of code:-

"what purpose or role does that HTML element have".

The semantic element itself conveys some information about the type of content contained between the opening and closing tags.

1/3
Semantic elements increase the:-

- Accessibility
- Improve Search Engine Optimization
- Maintainability

And this makes code more readable for machines and humans too.

2/3
Examples:-

✔ non-semantic elements: <div> and <span> - Tells nothing about its content.

✔ semantic elements: <header>, <nav>, and <article> - Clearly defines its content.

3/3
2️⃣ If we can create a structure with Div, why should we use semantics?

Div tags for designing a Web page might provide the same good-looking UI as we would get by using Semantic Tags,

but this would snatch away the ability of communication from the page.

1/2
We are not just dealing with the users,

but we also have numerous Screen readers and Search engines,

that are directly dependent on the information which a Web page provides.

2/2
3️⃣ Importance Of Semantic HTML?

These are the most important advantages that semantic markup give us:

- Clear code and easy maintainability
- improve accessibility
- improve your SEO positioning

1/4
✔ Clear code and easy maintainability:-

Finding semantic blocks of meaningful code is easier than searching through endless divs.

When a project grows, adding more pages and more lines of code, the appearance of semantic tags helps us orientate ourselves.

2/4
✔ improve accessibility:-

Screen readers can use semantic as a signpost to help visually impaired users navigate a page.

We have to code for all users.

3/4
✔ improve your SEO positioning:-

Semantic markup provides better instructions for search engine crawlers when scanning pages for their content;

it tells them what important content is on the page.

4/4
4️⃣ Let's talk about common semantic tags:-

- header
- nav
- main
- section
- article
- aside
- footer

and More.....🙃
✔ header -

The <header> element defines a header for the document or section. It usually contains a logo, search bar, navigation links, etc. Image
✔ nav -

The <nav> element defines a set of navigation links.

This tag represents a section of the document intended for navigation. Image
✔ main -

The <main> element defines the main content of the page.

The content of the <main> tag must be unique and not duplicate blocks. Image
Let's not discuss each and every semantic tag.

if you want to know more then check MDN docs.👇

developer.mozilla.org/en-US/docs/Glo…
Start learning semantic that will make your life easier and your code better.💛✨
And that's it. I tried my best to explain semantic tags.

If you like this thread, drop a like and retweet, means a lot to me 💛 Image

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Mahesh 👽

Mahesh 👽 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Ali6nX404

2 Oct
Are you using solid color background?🙄

Let's upgrade it with beautiful CSS gradients ✨

Mega thread🧵👇 Image
1️⃣ What is the gradient?

CSS gradient allows you to create anything from a smooth gradient between two colors, right up to impressive mixing and multiple gradients.

Gradient makes the background more attractive than a solid color.
We all know about Instagram but did you notice that the Instagram logo is also a gradient.

The genius is in its simplicity.✨ Image
Read 29 tweets
2 Oct
Are you using solid color background?🙄

Let's upgrade it with beautiful CSS gradients ✨

Mega thread🧵👇 Image
1️⃣ What is the gradient?

CSS gradient allows you to create anything from a smooth gradient between two colors, right up to impressive mixing and multiple gradients.

Gradient makes the background more attractive than a solid color.
We all know about Instagram but did you notice that the Instagram logo is also a gradient.

The genius is in its simplicity.✨ Image
Read 20 tweets
29 Sep
Best CSS animation libraries for Web Developers✨

thread🧵👇
1️⃣ animate - This is a cross-browser library of CSS animations.

It’s extremely easy to use and helps you create beautiful CSS animations for web projects.

animate.style
2️⃣ Hover - A collection of CSS3 powered hover effects to be applied to links, buttons, logos, SVG, featured images and so on

ianlunn.github.io/Hover/
Read 7 tweets
28 Aug
Are You a Frontend Developer?

Or want to boost your frontend skills?

Here are 6 awesome websites to boost your Frontend skills.

Thread 🧵
1. frontendmentor - Solve real-world HTML, CSS, and JavaScript challenges whilst working on professional designs. one of the best website to get inspiration for your next projoct.

frontendmentor.io
2. codewell - Improve your HTML and CSS skills by practicing on real design templates.

codewell.cc
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(