C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Introducing New.js
WhatsApp
Abhishek Sharma
6y
8.8
k
0
2
25
Blog
New tags and few classes are introduced here, let me explain all of these ones by one.
<new-h1> The very first tag, similar to <h1> in HTML but differs in UI, this will provide you the best suitable interphase for a good UI, if you will put any content inside it, followed by its closing tag then the color of the content will change every second up to infinity.
class="b1 to b9", 9 new classes to use for any div, a new background pattern will be provided to the div which will have any class from b1 to b9.
id="new-back-1" Similarly for the background of the page you have to assign "new-back-1" id to the body and there are 9 id's for that, same as the class. And these varies from "new-back-1" to "new-back-9".
<new-text> what it does, is similar to that of the <input type="text" />, but it is with strong HTML5 validations already, so anyone can use it inside a form tag.
<new-password> what it does, is similar to that of the <input type=" password" />, but it is with strong HTML5 validations already, so anyone can use it inside a form tag.
<new-passconfirm> what it does, is similar to that of the <input type="password" />, but it is with strong HTML5 validations already and matches the password with <new-password> tag. so anyone can use it inside a form tag to get the frequent output with strong form validations.
<new-search> what it does, is similar to that of the <input type=" search" />, but it is with strong HTML5 validations already, so anyone can use it inside a form tag.
<new-submit> what it does, is similar to that of the <input type="submit" />, but it is with strong HTML5 validations already, so anyone can use it inside a form tag.
<new-select-input> The most interesting and powerful tag introduced here is this one. you do not need to write select and options for each, just write values to be assigned to the options separated by comma (eg: 1,2,3,4) and close the tag then. You will automatically provide a select tag with datalist, in which you can select and type as well. Also, it has strong HTML5 validations inside a form tag.
<new-email> what it does, is similar to that of the <input type="email" />, but it is with strong HTML5 validations already, so anyone can use it inside a form tag.
<new-url> what it does, is similar to that of the <input type="url" />, but it is with strong HTML5 validations already, so anyone can use it inside a form tag.
<new-url> what it does, is similar to that of the <input type="phone" />, but it is with strong HTML5 validations already, so anyone can use it inside a form tag. Also, it does pattern matching for a phone number and restricts fake phone numbers thus.
You can check Demo.html page for a quick Demo or go to
https://github.com/abhishekvats/new.js
People also reading
Membership not found