Found 2417 Articles for HTML

HTML cite Attribute

Arjun Thakur
Updated on 11-Jun-2020 10:48:31

121 Views

The cite attribute of the element is used to set the source URL of a quote. The source won’t get displayed on the web page, but it is beneficial for the screen readers.Let us now see an example to implement the cite attribute of the element −Example Live Demo What we want? PETA states,    We are the largest animal rights organization in the     world, with more than 6.5 million members and supporters worldwide. We need your continued     support in order to stop cruelty to animals wherever it occurs. OutputIn the above example, ... Read More

HTML max Attribute

Ankith Reddy
Updated on 29-Jun-2020 08:35:45

72 Views

Tha max attribute of the tag in HTML is used to set the maximum value in a progress bar.Following is the syntax −Above, num represents the number in floating-point. It displays how much effort the task necessitates.Let us now see an example to implement the max attribute of the element −Example Live Demo    Windows Build 10.58.89.1       Downloading and Installing:       OutputIn the above example, we have displayed the progress of a task going on using the − We have set the maximum value in the progress bar using the max attribute −max="100"

HTML for Attribute

Chandu yadav
Updated on 30-Jul-2019 22:30:26

104 Views

The for attribute of the element sets the relationship between the result of the calculation and the elements used in the calculation.Following is the syntax:Above, id is the element id, which sets a separate list of one or more elements with a space. These elements specify the relationship between the result of the calculation and the elements used in the calculation.Let us now see an example to implement the for attribute of the element:Example Live Demo Result 0    100++    = OutputNow, increase the slider and the result would get displayed:

HTML

Arjun Thakur
Updated on 11-Jun-2020 11:10:05

153 Views

The selected attribute in the element pre-selects an option when the page loads. The same option would be visible.Following is the syntax −Let us now see an example to implement the selected attribute of the element −Example Live Demo Educational Qualification Postgraduation    MCA    M.COM    M.TECH    M.Sc OutputIn the above example, we have a to set a drop-down list: MCA M.COM M.TECH M.Sc In that, different options are set with element −MCA M.COM M.TECH M.ScWe have set the default visible option when the page loads using the selected attribute ... Read More

HTML
    reversed Attribute

Ankith Reddy
Updated on 11-Jun-2020 11:08:46

3K+ Views

The reversed attribute of the element in HTML is used to set reversed ordering of list items in an ordered list. It displays the numbering in descending order and introduced in HTML5.Following is the syntax −Let us now see an example to implement the reversed attribute of the element −Example Live Demo Rank in Descending order    Tom    Jack    Will    Harry    Tim    Steve    David    Kane    William    John OutputIn the above example, we have set an unordered list with the following list items under −Tom ... Read More

HTML data Attribute
George John
Updated on 30-Jul-2019 22:30:26

67 Views

Tha data attribute of the element sets the URL of the resource, which can be audio, video, pdf, flash, etc. used by the object.Following is the syntax:The url is the URL of the resource used by the object.Let us now see an example to implement the data attribute of the element:Example Live Demo CSS Demonstrating Application     OutputIn the above example, we have set the URL of the resource, which is a .swf file i.e. a flash file:The external link we have used in the element is:https://www.tutorialspoint.com/flex/samples/CSSApplication.swfRead More

HTML value Attribute

Ankith Reddy
Updated on 29-Jun-2020 08:28:31

93 Views

The value attribute of the element specifies the current value of the gauge. This is a required attribute.Following is the syntax −Above, num represents the current value as a floating-point number.Let us now see an example to implement the value attribute of the element −Example Live Demo    Result    Girls pass %    Boys pass % OutputIn the above example, we have set the pass percentage of girls as well as boys using the element. The current value is set using the value attribute −Boys pass %

HTML content Attribute

George John
Updated on 30-Jul-2019 22:30:26

289 Views

The content attribute of the element is used to set the meta information in an HTML document. This can be the information for the description or the keywords, for name attribute.Following is the syntax:Above, the text is the meta information.Let us now see an example to implement the content attribute of the element:Example Live Demo Tutorials Programming tutorials for free:    Java    C++    C    C# OutputIn the above example, under the element, we have set the description: The description i.e. the meta information is set ... Read More

HTML charset Attribute

Chandu yadav
Updated on 30-Jul-2019 22:30:26

568 Views

The charset attribute of the element is used to specify the character encoding for the HTML document. You can use the charset attribute on as well as element.Different charsets include ASCII, ANSI, ISO-8859-1, UTF-8, etc. ISO-8859-1 supports 256 different character codes. ASCII defined 128 different alphanumeric characters. The charset attribute in HTML is used with the to specify the character encoding.Let us now see an example to implement the charset attribute of the element:Example Live Demo    Demo Heading    This is demo text.    We are learning about the charset ... Read More

HTML href Attribute

Ankith Reddy
Updated on 29-Jun-2020 08:18:07

203 Views

The href attribute of the element is used to set the url of the external resource.Following is the syntax −Above, the url is the url of the linked document. Let us now see an example to implement the href attribute of the element −Example    Demo Heading    This is demo text. We have an external document above “new.css”, which is linked using href. This document is a CSS style file −h1{    color − blue; } p{    background-color − red; }OutputThis will produce the following output. We styled the heading and text in the above “new.css” −

Advertisements