Found 8591 Articles for Front End Technology

How do we include attributes for table columns in HTML?

Arjun Thakur
Updated on 30-May-2020 22:14:08

336 Views

Use the tag to include attributes for table columns. The HTML tag allows authors to group together attribute specifications for table columns. It does not group columns together structurally -- that is the role of the element.The following are the attributes −AttributeValueDescriptionAlignrightleftcenterjustifycharDefines horizontal alignment, not supported in Html5.CharcharacterDefines a character to use to align text on (use with align = "char"), not supported in Html5.CharoffpixelSpecifies an alignment offset (either in pixels or percentage value) against the first character as specified with the char attribute, not supported in Html5SpannumberDefines the number of columns the should span, not ... Read More

Execute a script when the user opens or closes the
element in HTML?

Abhinaya
Updated on 03-Mar-2020 06:51:55

155 Views

When a user opens or closes the element, the ontoggle event fires. You can try to run the following code to implement ontoggle event attribute −Example           Details       You need to join office from Feb23                More Information          Timings: 9 to 5:30          Office location: Hyderabad                            function myFunction() {             alert("Timings, office location, etc");          }          

How to specify citation in HTML?

usharani
Updated on 03-Mar-2020 06:48:41

203 Views

Use the tag in HTML to specify citation. Cite can be defined as the title of a work. You can try to run the following code to implement tag for adding citation −Example           HTML cite Tag               The learning content can be referred from Data Structures        & Algorithms in Java    

Execute a script when the browser is unable to fetch the media data for whatever reason in HTML?

Nancy Den
Updated on 24-Jun-2020 08:48:14

483 Views

Use the onstalled attribute in HTML to execute a script when the browser is unable to fetch the media date.The onstalled attribute can be used for the following elements − The following is the syntax for −The following is the syntax for −ExampleYou can try to run the following code to implement onstalled attribute −                                        Your browser does not support the video element.                      function display()          {             alert ("Sorry! Video isn't available right now!");          }          

How to insert a single line break in HTML?

George John
Updated on 03-Mar-2020 06:46:12

678 Views

Use the tag to insert a single line break in HTML. You can try to run the following code to insert a line break using the tag −Example           HTML br Tag               This is before the line break       and this after the line break.    

Execute a script when a element is shown as a context menu in HTML?

Govinda Sai
Updated on 30-May-2020 22:16:07

134 Views

When a element is shown as a context menu in HTML, the onshow event fires.ExampleYou can try to run the following code to execute a script when a element is displayed as a context menu −           HTML menu                        Right click inside here....                                                                                          function display() {             alert("The context menu will be visible now.");          }          

How do we define a dialog box in HTML?

Daniol Thomas
Updated on 03-Mar-2020 12:39:33

248 Views

Use the tag to define a dialog box in HTML. The following are the attributes −AttributeValueDescriptionopenopenopens a dialog box and user can interact with itExampleYou can try to run the following code to learn how to work with tag −           HTML dialog Tag               Tutorialspoint       We provide tutorials, quizzes, learning videos, etc.       Tutorials are free for all    

How to display a directory list in HTML?

Chandu yadav
Updated on 03-Mar-2020 06:38:02

11K+ Views

Use the dir tag in HTML to display directory list. This is very similar to tag but do not use since it is deprecated now.The following is the attribute −AttributeValueDescriptionCompactcompactDeprecated − Specifies a compact rendering.ExampleYou can try to run the following code to show a directory list in HTML −           HTML dir Tag               The following are the values:                car          bike          ship          

How to display deleted text in HTML?

Ankith Reddy
Updated on 24-Jun-2020 08:49:13

401 Views

Use the tag to display the deleted text. The following are the attributes −AttributeValueDescriptionCiteURLDefines a URL to another document which explains why the text was deleted.DatetimeYYYYMMDD HH:MM:SSDefines the date and time the text was deleted.ExampleYou can try to run the following code to display deleted text −           HTML del Tag               The following text is deleted using HTML del tag    

How to make graphics with a script in HTML?

Ramu Prasad
Updated on 24-Jun-2020 08:51:09

776 Views

To make graphics with a script, use the tag. The HTML tag is for drawing graphics, animations, etc using scripting.The following are the attributes of the tag −AttributeValueDescriptionheight pixelsSpecifies the height of the canvas.width pixelsSpecifies the width of the canvas.ExampleYou can try to run the following code to implement tag and create graphics −           HTML Canvas Tag               Your browser does not support canvas tag.                var c = document.getElementById('newCanvas');          var ctx = c.getContext('2d');          ctx.fillStyle = '#00AEEF';          ctx.fillRect(0,0,180,50);          

Advertisements