I'm trying to build a login form, and one of the fields accepts both email and text(username). What type should I use for my input?
your question has already been answered above. but here I want to add if you want to make an input
tag for a specific email, you can also provide a pattern in the tag. like this:
<!DOCTYPE HTML>
<html>
<body>
<input type="text" id="email" placeholder="Email using @example.com" pattern=".+@example\.com" required>
</body>
<html>
I hope this helps as another reference