Most developers start with <div> and <span> and never look back.
Need a button? Wrap it in a <div> and slap an onclick.
Need a ...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
Not a lot of people know the button tag is very powerful.
Exactly! The
<button>
tag is powerful and a lot of people don’t realize all the built-in functionality it has. Nice example!👍
You should make an article on the built-in JS features for browsers like:
confirm("Do you want to proceed?") - which pops up a browser-default confirmation window
and
input("Type in your name") - which pops up a input field in the browser
Thanks for the suggestion! I’ll think about it (There’s no input(), you might be thinking of prompt())
In React it can be easy to end up with
<div>
’s everywhere. I agree 100% that we should be using the proper HTML tags no matter the stack. I also didn’t know about the<figure>
and<figcaption>
tags. Great article!Thanks! And I agree, it’s easy to rely on
<div>
everywhere in React. Glad you found the<figure>
and<figcaption>
tips helpful!Very valid points and promotes good coding practices.
Many thanks!
Nice ⭐ figure figcaption 🔖
Thanks, great article 👍 All this are very useful for web development projects.
Thanks! Glad you found it useful
The 'main' element is somewhere in the middle, right?
Help me I have problem in JavaScript switch question is (by us a switch case write a program that ask for a number (1-7) and print the corresponding day of the week.