Create a white space in HTML

Nancy Den
Published on 13-Mar-2018 13:05:11
The HTML <spacer> tag specifies a whitespace. It supports the following additional attributes −AttributeValueDescriptiontypeverticalhorizontalblockThe type attribute is used to specify whether the spacer will be horizontal, vertical, or block.sizenumberSpecifies the number of pixels tall or wide the spacer will be This attribute is only used if the spacer type is ... Read More

How do we display a script in HTML?

vanithasree
Published on 13-Mar-2018 13:02:14
To add a script, use the <script> tag. The HTML <script> tag is used for declaring a script (such as JavaScript) within your HTML document.The script tag supports the following additional attributes −AttributeValueDescriptionasync syncSpecifies that the script is executed asynchronouslyCharsetcharsetDefines the character encoding that the script uses.deferdeferDeclares that the script ... Read More

How to display a short quotation in HTML?

Ankitha Reddy
Published on 13-Mar-2018 12:57:38
The HTML <q> tag is used for indicating short quotations (i.e. quotations that span multiple lines). The HTML <q> tag also supports the following additional attributes −AttributeValueDescriptionciteURLURL of the quote, if it is taken from the web.ExampleYou can try to run the following code to implement <q> tag in HTML ... Read More

How to display completion progress of a task in HTML5?

Chandu yadav
Published on 13-Mar-2018 13:00:19
Use the <progress> tag in HTML5 to display the completion progress of a task. This helps in creating a progress bar. The following are the attributes −The HTML <progress> tag supports the following additional attributes −AttributeValueDescriptionmax MaxIt should have a value greater than zero and a valid floating-point number.value valueSpecifies ... Read More

How to add preformatted text in HTML?

Rishi Rathor
Published on 13-Mar-2018 12:55:03
Use the <pre> tag to add preformatted text in HTML. The HTML <pre> tag is used for indicating preformatted text. The code tag surrounds the code being marked up.Browsers normally render pretext in a fixed-pitched font, with whitespace intact, and without word wrap.ExampleYou can try to run the following code ... Read More

How to render the remainder of the document as preformatted plain text in HTML?

mkotla
Published on 13-Mar-2018 12:46:30
The HTML <plaintext> tag is used to render all text in the document exactly as it was typed in, including all tags and even the document tags.This tag ignores all formatting for the rest of the document, displaying all text exactly as is. It cannot be stopped, it cannot be ... Read More

How to add a parameter for an object in HTML?

Nancy Den
Published on 13-Mar-2018 12:43:32
Use the <param> tag to add a parameter for an object. The HTML <param> tag also supports the following additional attributes −AttributeValueDescriptionnameparameter typeDefines a unique name for the parameter.typeMIME typeSpecifies the internet media type for the parameter.valuevalueSpecifies the value of the parameter.valuetypedatarefobjectSpecifies the MIME type of the value.ExampleYou can try ... Read More

How to add a paragraph in HTML?

Sreemaha
Published on 13-Mar-2018 12:41:59
Use the HTML <p> tag to add a paragraph in HTML. You can try to run the following code to implement <p> tag in HTML −Example<!DOCTYPE html> <html>    <head>       <title>HTML p Tag</title>    </head>    <body>       <p>This is demo text.</p>    </body> </html>Read More

How to include the result of a calculation in HTML5?

Abhinaya
Published on 13-Mar-2018 12:46:43
Use the <output> tag in HTML5 to specify the result of a calculation. The HTML <output> tag also supports the following additional attributes −AttributeValueDescriptionfor forList of IDs of other elements, i.e. it indicates the elements who have contributed input value to the calculation.form formEnables to place output elements anywhere within ... Read More

How to include an option in a drop-down list in HTML?

Arjun Thakur
Published on 13-Mar-2018 12:46:34
To include an option in a drop-down list, use the <option> tag in HTML. The HTML <option> tag is used within a form for defining options in the drop-down list.The HTML <option> tag also supports the following additional attributes −AttributeValueDescriptionDisableddisabledDisables the input control. The button won't accept changes from the ... Read More
Advertisements