Found 2202 Articles for HTML

How to create a progress bar in HTML?

Prabhas
Updated on 03-Mar-2020 06:22:08

7K+ Views

Use the tag to create a progress bar in HTML. The HTML tag specifies a completion progress of a task. It is displayed as a progress bar. The value of progress bar can be manipulated by JavaScript.The following are the attributes −AttributeValueDescriptionmax maxIt should have a value greater than zero and a valid floating point numbervalue valueSpecifies how much of the task that has been completed. It should be a floating point number between 0 and max or 0 and 1 if max is omittedExampleYou can try to run the following code to learn how to create a ... Read More

How to create a section in a document in HTML?

Jennifer Nicholas
Updated on 03-Mar-2020 06:20:17

10K+ Views

Use the tag to add a section in a document. The HTML tag is used for defining a section of your document. With the div tag, you can group large sections of HTML elements together and format them with CSS.ExampleYou can try the following code to create a section −           HTML div Tag                            Welcome to our website. We provide tutorials on various subjects.           The following is the css file style2.css#contentinfo p {    line-height: 20px;    margin: 30px;    padding-bottom: 20px;    text-align: justify;    width: 140px;    color: red; }

How do we add a sample computer code in HTML?

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

174 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.    

How to add an inline layer in HTML?

Govinda Sai
Updated on 03-Mar-2020 06:18:41

398 Views

Use the tag to add an inline layer. The HTML tag is used to create a layer that occupies space in the containing text flow. Subsequent content is placed after the space occupied by the .This is in contrast to the tag, which creates a layer above the containing text flow, allowing subsequent content to be placed under the layer just created.The HTML tag supports the following attributes −AttributeValueDescriptionabovelayernameThe name of the inline layer that will be positioned directly above the current layer in the z-order.backgroundURLA filename or URL for an image upon which the inline ... Read More

How do we include an inline sub window in HTML?

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

506 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

How do we add a noscript section in HTML?

Yaswanth Varma
Updated on 15-Dec-2022 14:54:30

583 Views

The task we are going to perform in this article is about how do we add a noscript section in HTML. For browsers that do not support script tags or that have been configured by the user to deactivate script, HTML uses the tag to show the text. Both the and the tags contain this tag. Note − This element is only utilised by browsers that do not support scripting. Syntax Following is the syntax for nonscript Contents... Let’s dive into the following examples, to know more about adding a noscript section in HTML. Example ... Read More

How do we add a noframe section in HTML?

radhakrishna
Updated on 03-Mar-2020 06:01:14

263 Views

Use the tag to add a noframe section. The HTML tag is used to handle the browsers which do not support tag. This tag is used to display an alternate text message.Example           HTML noframes Tag                                                 Your browser does not support frames.                    

How to include content to be presented by browsers that do not support the tag in HTML?

Srinivas Gorla
Updated on 03-Mar-2020 06:00:35

112 Views

The HTML tag is used to handle browsers which do not support the tag. The tag makes it easy to supply alternative content that tells users what they are missing.Example           HTML noembed Tag                                  

Execute a script when the element gets user input in HTML?

mkotla
Updated on 23-Nov-2023 14:03:27

1K+ Views

Use the oninput event attribute to trigger when an element gets user input. You can try to run the following code to implement oninput attribute − Example           Write your name below:                            function display() {             var p = document.getElementById("myid").value;             document.getElementById("test").innerHTML = "Your answer is " + p;          }          

Execute a script when the seeking attribute is set to true indicating that seeking is active in HTML?

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

126 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!");          }          

Advertisements