Include Attributes for Table Columns in HTML

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

360 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

Include Groups of Table Columns in HTML

varma
Updated on 30-May-2020 22:13:25

1K+ Views

Use the tag to include groups of table columns.The HTML tag is used for specifying properties for a group of columns within a table. If you need to apply different properties to a column within a colgroup, you can use the HTML col tag within the colgroup tag.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.CharoffpixelDefines the number of columns the should span, not supported in Html5SpannumberDefines the number of columns the should span, not supported in ... Read More

Include an Inline Sub Window in HTML

vanithasree
Updated on 29-May-2020 23:06:51

530 Views

Inline sub window is an iframe and you can include it using the tag.The HTML tag supports the following additional attributes −AttributeValueDescriptionalignleftrighttopmiddlebottomSpecifies how to align the iframe according to the surrounding text.frameborder10Specifies whether or not to display border around the frame.heightpixelsSpecifies the height of the inline frame.longdescURLA URL to a long description of the frame contentsmarginheightpixelsAllows you to specify the width of the space between the left and right of the frame's borders and the frame's content. The value is given in pixels. For example marginwidth = "10".marginwidthpixelsSpecifies the margin, in pixels, between the frame's contents and it's ... Read More

Add Sample Computer Code in HTML

seetha
Updated on 29-May-2020 23:04:24

188 Views

Use the tag to display a sample computer code. The HTML tag is used to display the output of a computer program.ExampleYou can try to run the following code to implement tag in HTML −           HTML samp Tag               The header file always starts with #include.    

Execute Script When Seeking Attribute is Active in HTML

Smita Kapse
Updated on 29-May-2020 22:51:50

144 Views

Use the onseeking attribute to indicate that seeking is active in a video in HTML.ExampleYou can try to run the following code to execute a script when the seeking attribute is set to true indicating that seeking is active in HTML −                                        Your browser does not support the video element.                      function display() {             alert("Seeking starts!");          }          

Add Multi-Language Content in HTML

Prabhas
Updated on 29-May-2020 22:35:53

4K+ Views

The lang attribute in HTML allows you to set content for languages other than English. You can try to run the following code to implement lang attribute.ExampleHere, we have added content in French and Spanish as well.           English       This is demo text             French       Ceci est un texte de démonstration             Spanish       Este es un texto de demostración    

Create a Hidden Paragraph in HTML5

varun
Updated on 29-May-2020 22:34:51

2K+ Views

Use the hidden attribute in HTML5 to create a hidden paragraph in HTML5 i.e. an element no longer relevant.ExampleYou can try to run the following code to implement hidden attribute in HTML5 −           Heading       This is a demo paragraph and visible.       This is a demo paragraph and hidden.    

Set Data Transfer Mode for Dragged Data in HTML

Ankith Reddy
Updated on 29-May-2020 22:12:50

100 Views

Use the dropzone attribute to set whether the dragged data is copied, moved or linked.Copy − The drop will create a copy of the dragged element.Move − The dragged element will get moved to the new location.Link − It creates a link to the dragged data       Try the following to work with dropzone attribute in JavaScript − None of the browsers supports this attribute now.

Display a URL Explaining Quote Deleted/Inserted Text in HTML

Giri Raju
Updated on 28-May-2020 00:23:13

135 Views

The cite attribute allows you to add URL and explain why the text was deleted or inserted.ExampleYou can try to run the following code to implement cite attribute −           Define WordPress             WordPress is open source software you can use to create a beautiful website, blog, or app.    

Pre-select Input Element on Page Load in HTML

Ankitha Reddy
Updated on 28-May-2020 00:22:39

214 Views

Use the checked attribute to specify an element is to be pre-selected on page load. The attribute works with − .ExampleYou can try to run the following code to implement checked attribute in HTML − Live Demo           Which sports do you like?                 Football           Cricket           Hockey                    

Advertisements