Few HTML tags you should use & which one to avoid!

A Thread... 🧵

#100DaysOfCode #CodeNewbie
The basic semantic HTML tags such as <header>, <footer> and <nav> are almost self explanatory.

But, there are a host of newer HTML tags that you need to be using as well.

Eight HTML tags that you should be using.
1. <picture>

This tag is similar to <img>, the <picture> element provides flexibility by allowing multiple <source> elements for the same resource, which can adapt based on a media query or image type support.
2. <datalist>

It provides an autocomplete interface for <input> elements. Each list contains a set of <option> elements that have an associated value. When linked to an <input> using the “list” attribute, it can provide a drop-down list.
3. <dl>

This tag, element serves as a container for groups of defined terms.

Inside, each term (<dt>) and definition (<dd>) are grouped together to form a glossary-like structure. While it applies basic formatting by default, semantic HTML benefits screen readers.
4. <details>
Accordions are a common design pattern when lots of data need to be shown at once, such as question page. By using the <details> element alongside <summary>, we can achieve the same effect without JavaScript. Clicking the summary will toggle the rest of the content.
5. <dfn>

Complex terms or abbreviations often need defining for those that are not familiar.

A term wrapped in a <dfn> tag will be defined by the text that surrounds it. This is an inline element and is designed to be used to highlight definitions in human language.
6. <figure>

A figure is defined as a unit of content that often appears in the main flow of a document but can be also interpreted separately.

The <figure> element wraps an image or other reference content and can also include a description of its contents with <figcaption>.
7. <code>

it can be useful to visually separate computer code from the rest of the sentence.

By wrapping each occurrence in a <code> tag, the browser can apply some default formatting to display it more appropriately.

Combine with <pre> for larger code blocks.
8. <time>

We can write time values differently depending on the context or the language.

By marking these values with the <time> tag, search engines and other automated tooling can quickly extract this information.
Now 5 HTML tags to avoid:

1. <font>
2. <menuitem>
3. <big>
4. <center>
5. <marquee>

• • •

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

Keep Current with Ankur💻🎧💪

Ankur💻🎧💪 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 @TheAnkurTyagi

21 Oct
My roadmap for your first 45 days of JavaScript learning

Thread 🧵
I get many DMs, and the most asked question so far is,

"How & From Where do I start with JavaScript?"

I would suggest this roadmap to start your JavaScript journey.

This is well tested by me in the last two years.
First thing first that you should commit to consistency, before even writing your "HELLO WORLD" program.

1 hour of coding practice, every day, no excuses.

Make it a habit💪
Read 14 tweets
20 Oct
GitHub is not just a code hosting service with version control — it’s also an enormous developer network.

Here projects are:

- Education
- Gaming
- Web and mobile app & much more

it’s really a great outlook for the technology world.

Few projects & repositories

A Thread.🧵
1- Google Kubernetes

github.com/kubernetes/kub…
Read 6 tweets
19 Oct
TOP Python Github repositories for you.

A Thread... 🧵

#100DaysOfCode #CodeNewbies
1- Pandas

Pandas is a very simple and powerful data analysis/manipulation tool.

github.com/pandas-dev/pan…
2- Python patterns

A collection of design patterns/idioms in Python. My go-to place when designing new solutions.

github.com/faif/python-pa…
Read 12 tweets
18 Oct
Next Month I will complete 10 years as a software dev.

"Why Stay Fit Physically and Mentally As a Coder"

A Thread... 🧵
In this marathon, there are lots of ups & downs I see, the biggest mistake was to avoid my health until 2018.

I worked hard to stay relevant & stay long hours, but the problem for me was, that I have felt exhausted mentally and physically at every end of the day.
In early 2018 I get the sense that I am doing something wrong with my life and it cannot go on like this anymore.

As a coder what we do when things go wrong in the codebase.

"REFACTORING" so I challenged myself to do refactoring of my mental & physical health.
Read 12 tweets
17 Oct
Whether you’re an experienced developer, or new grad,

APIs can be a great way to quickly move your app idea from the drawing board and onto the world’s devices.

Most Useful APIs for Developers.

Thread 🧵

#100DaysOfCode
API’s are a quick way to get and manipulate data from other web services for your app or site.

It’s also common to create “mashups” using the overlapping data from multiple APIs (such as geospatial data) to create new functionality.
Google APIs

- Google APIs: An ever-changing list of 57 Google APIs.

- Google Analytics API: Measure user interactions with your site or app across multiple devices.

Youtube API: Choose from the data or players API to embed types of players or offer Youtube search capabilities.
Read 17 tweets
16 Oct
Top JavaScript GitHub repositories For You.

A Thread... 🧵

#100DaysOfCode #CodeNewbies
Some of the main advantages of JS are its community and ecosystem. The ecosystem is huge and it is very easy to get lost sometimes.

Here I will share some of the trending JavaScript GitHub repositories for you.

These are the ones for which community is most excited about today.
1- Airbnb JavaScript

Airbnb, Inc. is an American vacation rental online marketplace company based in San Francisco, California, United States.

github.com/airbnb/javascr…
Read 20 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!