Blog Tutorials Web Design

Amazing HTML Attributes you may not know

Multiple

The multiple attributes allows user to enter multiple values on an <input>. It is a Boolean attribute valid for file or email input types and the <select> element.

Accept

The <input> element has the accept attribute that allows you to specify the types of files the user can upload. You need to pass it a string containing comma separated list of unique file type of specifiers.

Spellcheck

The spellcheck is another global attribute that you can use to check spelling and grammar on HTML elements such as input fields and other editable elements.

Download

Use the download attributes combined with an <a> element to instruct browsers to download a URL instead of navigating to it, So the user will be prompted to save it as a local file.

Poster

Use the poster attribute to specify an image to be shown while the video is downloading, or until the user hits the play button. If the image isn’t specified, nothing is displayed until the first frame is available, then the first frame is shown as the poster frame.

Translate

Translate tells the browser whether the content should be translated or not. Yo can use it to prevent Google Translate from automatically trying to translate your company’s or brand’s name.

Contenteditable

ContentEditable is a global attribute (common to all HTML attribute) that makes the HTML content editable by the user or not. However be careful with the changes only made to visible content vs the DOM content.

Important Notice

If you’re a college student and have skills in programming languages, Want to earn through blogging? Mail us at geekycomail@gmail.com

For more Programming related blogs Visit Us Geekycodes . Follow us on Instagram.

Leave a Reply

Discover more from Geeky Codes

Subscribe now to keep reading and get access to the full archive.

Continue reading

Discover more from Geeky Codes

Subscribe now to keep reading and get access to the full archive.

Continue reading