10 Hot HTML tags to use right now.

A Thread...🧵
HTML elements are the building blocks of the web, and there are tons of different HTML tags out there to choose from, so how do you ensure you're using the right ones?

Let me highlight the tags you should be using to build your sites the correct way.
1. <details> and <summary>

Whenever something on a page needs to be interactive, JS is often the first port of call. Showing & hiding content can be as straightforward as toggling a class.
But this behavior is already available, with no added page weight, right inside HTML.
2. <small>

This tag can distinguish supplementary information usually found in small print such as disclaimers or copyright notices.

This would be used for inline content, rather than a full block-level <aside>.
3. <output>

An <output> denotes where the result of a calculation will be displayed.

Any content inside an <output> element is read aloud by screen readers as it changes.

<input type=”range” id=”slider” min=”0” max=”100” value=”40” />
<output for=”slider”>40</output>
4. <code>

When writing content that should be interpreted as computer code, the <code> element will separate it from the rest of the text. By default, it is styled using a monospace font.

The content can be shown by providing the <code>open</code> attribute.
5. <template>

Most languages have some way to recreate common code.

In HTML, this task is achieved using the <template> element.

<template>
<tr>
<td><!-- Name --></td>
<td><!-- Email address --></td>
</tr>
</template>
6. <wbr>

While using overflow-wrap or word-break CSS properties gives some control over line breaks, they can end up either breaking in unsuitable places or not breaking at all.

https://<wbr>www<wbr>.theankurtyagi<wbr>.com/
7. <data>

Sometimes there can be data that makes sense to humans, but machines can find it difficult to parse. The <data> element provides a hook for them and provide an alternative meaning with the value attribute.

<data value=”9781484254516”>Web Inclusion Accessibility</data>
8. <meta>

Proprietary meta properties are provided by some social network platforms. Facebook uses its Open Graph protocol.

<meta name=”theme-color” content=”#FFE3F5”>
<meta property=”og:image” content=”example.com/image.jpg”>
9. <datalist>

A <datalist> element defines options for other controls, such as an <input>.

<datalist id=”meal-type”>
<option value=”Twitter”>
<option value=”FB”>
<option value=”Insta”>
</datalist>
10. <caption>

The <caption> element should be the first inside the <table> it describes. By default, it appears above the table, but it can be adjusted using the caption-side CSS property.

<table>
<caption>How many times a scoreline occurred</caption>
[…]
</table>
Good luck with your HTML journey!

If you enjoyed this don't forget to follow me & retweet this thread.

if you want to get more helpful tips that sharpen your mind & help you perform better then you can join my 2-1-1 Friday newsletter.

codelifefitness.com/2-1-1/

• • •

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

10 Jan
Free JavaScript Courses for Beginners in 2021.

A Thread... 🧵
1. Javascript Essentials

In this course, you will learn all the basics of the JavaScript language for e.g.

-primitive types,
-arrays, functions,
-operators,
-objects like a window,
-DOM, and much more.

udemy.com/course/javascr…
2. Interactivity with JavaScript

This is an awesome free course to learn JavaScript on Coursera.

This course covers concepts such as variables, looping, functions, and even a little bit about debugging tools.

coursera.org/learn/javascri…
Read 7 tweets
6 Jan
How to grow as a software engineer (developer) in 2021.

A thread...
If you are interested in pursuing a career in development and don't know where to start, here's your go-to guide for salaries, skills, and the best programming languages to learn.

Software development is a dynamic field & getting started the right way as a developer is tough.
-Getting a diploma
-Getting a degree
-Finishing a boot camp

Does not mean the end of studying.

In reality, you are just getting started. While your official studies are over, it does not mean that you do not need to learn new tricks anymore.
Read 22 tweets
5 Jan
You want to become a developer in 2021.

And don't have a CS degree. No worries!

You can learn everything on the internet today.

A Thread...👇
1- Open Source Society University

OSSU curriculum is a complete education in computer science.

Students can work through the curriculum alone or in groups, in order or out of order.
github.com/ossu
The curriculum is designed as follows:

- Intro CS
- Core CS
- Advanced CS
- Final Project

Nearly all course material is available for free.

However, some courses may charge money for assignments/tests/projects to be graded.
Read 11 tweets
4 Jan
My top 10 tweets of last year (2020).

A thread... 🧵
1- Here are top "JavaScript" course that I've taken over the last 6 years

2- Github Repos Every Web Developer Should Know

Read 12 tweets
2 Jan
Are you planning to learn JavaScript in 2021?

Here is a simple roadmap to learn JavaScript for you

A Thread... 🧵
Any code newbies can follow the below roadmap to learn javascript 👇

- Introduction to JavaScript
- The JavaScript Glossary
- JavaScript syntax
- Lexical Structure
- Expressions
- Types
- Variables
- Math Operators
- Functions
- Immediately-Invoked Function Expressions IIFE
- this
- Arrow Functions
- Loops
- Loops and Scope
- Arrays
- Regular expressions
- Template Literals
- Semicolons
- Strict Mode
- JavaScript Dates
- Math Object
- Asynchronous programming and
- Callbacks
- JavaScript Timers
Read 7 tweets
30 Dec 20
Here are top "JavaScript" course that I've taken over the last 6 years:

A Thread...🧵
1⃣ The Complete JavaScript Course 2020: Build Real Projects!

Instructor: Jonas Schmedtmann

You will learn:

- JavaScript and programming fundamentals like (variables, data types, functions, etc)

-How JavaScript works behind the scenes

- DOM manipulation like
- Asynchronous JavaScript (event loop, promises, async/await, Http requests)

- Build 3 beautiful real-world apps

- Modern JavaScript like (NPM, Webpack, Babel and ES6 modules)

udemy.com/share/101WfeAE…
Read 11 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!