Use the alt attribute to add alternative text for an image. If the user fails to view it (loading issue), then the same text will be visible. In addition, the attribute helps screen readers in reading the content to the user.ExampleYou can try to run the following code to implement alt attribute in HTML − HTML alt attribute Simple Image Insert
Use the align attribute to set the alignment. You can try to run the following code to implement align attribute in HTML −Note − The align attribute deprecated in HTML5. Use CSS instead.Example A right-aligned paragraph. Note: The align attribute is not supported in HTML5. Use CSS instead.
Use the action attribute to add the file, where you want to reach after clicking Submit button. You can also add an email to send the data to that email-id.ExampleYou can try to run the following code to set where to send the form-data when a form is submitted in HTML − Student Contact Form Student Name: Student Subject:
The accept-charset attribute in HTML is used to include the character encodings for form submission.ExampleYou can try to run the following code to implement accept-charset attribute in HTML − File Upload Box
Use the accept attribute to set the types of files that the server accepts in HTML. Use the attribute only with .ExampleYou can try to run the following code to work with accept attribute − File Upload Box
Use the tag to create preformatted text. Note − The tag deprecated.ExampleYou can try to run the following code to learn how to create preformatted text in HTML − HTML xmp Tag HTML tags include for bold text, for italic text.
The HTML tag defines a potential line breakpoint if needed. This stands for Word Break Opportunity.ExampleYou can try to run the following code to learn how to implement tag in HTML − HTML wbr Tag The browser to extend the document window beyond the size of the viewing pane and the poor user must scroll right
Use the tag in HTML5 to add text tracks used in media players. You can try to run the following code to learn how to add text tracks used in media players in HTML5 −Example Your browser does not support the video element.
The HTML tag is used to underline a text. You can try to run the following code to create underlined text in HTML −Note − This tag is deprecated now and should not be used. Use CSS instead.Example HTML u Tag Qries.com is the next generation knowledge management system.
Use the tag to add document title. The HTML tag is used for indicating the title of the HTML document. The body title is placed between the and the tags.ExampleYou can try to run the following code to learn how to add document title in HTML − Title comes here title tag is used for indicating the title of the HTML document. HTML document title is visible via browser’s title bar.