Include Alternate Text for Failing HTML Elements

Giri Raju
Updated on 02-Mar-2020 12:41:03

150 Views

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          

Set Alignment According to Surrounding Elements in HTML

Anvi Jain
Updated on 02-Mar-2020 12:40:23

703 Views

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.    

Specify Where to Send Form Data When Submitted in HTML

George John
Updated on 02-Mar-2020 12:39:42

636 Views

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:                    

Set Character Encodings for Form Submission in HTML

Govinda Sai
Updated on 02-Mar-2020 12:39:07

235 Views

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                                  

Set the Types of Files that the Server Accepts in HTML

Nitya Raut
Updated on 02-Mar-2020 12:35:56

182 Views

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                                  

Create Preformatted Text in HTML

Chandu yadav
Updated on 02-Mar-2020 12:35:10

190 Views

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.    

Indicate Word Break Point in a Nobr Section in HTML

usharani
Updated on 02-Mar-2020 12:34:30

147 Views

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    

Add Text Tracks in HTML5 Media Players

Srinivas Gorla
Updated on 02-Mar-2020 12:33:51

311 Views

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.          

Create Underlined Text in HTML

Nikitha N
Updated on 02-Mar-2020 12:31:16

539 Views

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.    

Add Document Title in HTML

varma
Updated on 02-Mar-2020 12:28:36

315 Views

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.    

Advertisements