AmitDiwan has Published 11365 Articles

HTML for Attribute

AmitDiwan

AmitDiwan

Updated on 19-Sep-2019 12:04:57

109 Views

The HTML for attribute bounds the element to the first labelable element which has an id same as the value of for attribute.SyntaxFollowing is the syntax −1. Returning value of for attribute −labelObject.htmlForExampleLet us see an example of for attribute − Live Demo Label htmlFor    form { ... Read More

HTML File Paths

AmitDiwan

AmitDiwan

Updated on 19-Sep-2019 11:59:13

230 Views

File path in a website is the location of a file in that website. This path might be relative (in reference to current path) or absolute (full URL of file).SyntaxFollowing is the syntax:1) Relative pathsrc="ImgFolder/picture.jpg"Orsrc="../ImgFolder/picture.jpg"Orsrc="/ImgFolder/picture.jpg"2) Absolute pathsrc="http://www.tutorialspoint.com/html5/foo.mp4"Let us see an example of HTML DOM Video src property−Example Live Demo ... Read More

HTML Entities

AmitDiwan

AmitDiwan

Updated on 19-Sep-2019 11:45:39

144 Views

In HTML, some characters are reserved for syntax declaration. Using these characters in text might cause unwanted errors. For example, you cannot use the greater than and less than signs or angle brackets within your HTML text because the browser will treat them differently and will try to draw a ... Read More

HTML max Attribute

AmitDiwan

AmitDiwan

Updated on 17-Sep-2019 09:15:03

83 Views

The max attribute of the element is used to set the upper bound for . However, the element is used to measure data with a give range like water impurity level and it is set using the min and max attribute.SyntaxFollowing is the syntax −The num above is ... Read More

HTML Design Form

AmitDiwan

AmitDiwan

Updated on 17-Sep-2019 09:07:50

5K+ Views

HTML Forms are required, when you want to collect some data from the site visitor. For example, during user registration you would like to collect information such as name, email address, credit card, etc.A form will take input from the site visitor and then will post it to a back-end ... Read More

HTML DOM Anchor Object

AmitDiwan

AmitDiwan

Updated on 17-Sep-2019 09:01:23

119 Views

The element is used in HTML to create hyperlinks along with href attribute. The anchor object represents this element.ExampleIn the below example, we will learn how to access an anchor object − Live Demo Demo Heading Google Display the link Link gets displayed here    function ... Read More

HTML DOM Anchor hostname Property

AmitDiwan

AmitDiwan

Updated on 17-Sep-2019 08:58:40

67 Views

The HTML DOM Anchor hostname property returns only the hostname of the URL. It returns the domain name.SyntaxFollowing is the syntax to set the hostname property −anchorObj.hostname = hostnameAbove, the hostname is the hostname of the URL.SyntaxFollowing is the syntax to return the hostname property −anchorObj.hostnameExampleLet us now see an ... Read More

HTML href Attribute

AmitDiwan

AmitDiwan

Updated on 17-Sep-2019 08:14:27

260 Views

The href attribute is used to set the link i.e. the URL of the page.SyntaxFollowing is the syntax −Above, URL is the url you need to mention, which can be a relative link, absolute link, script, protocol, etc.ExampleLet us now see an example to implement the href attribute of ... Read More

HTML DOM Style paddingTop Property

AmitDiwan

AmitDiwan

Updated on 17-Sep-2019 08:04:44

45 Views

The paddingTop property of DOM is used to set the top padding of an element in HTML. Remember, inserts the space within the border of an element. It is also used to return the top padding. The default value is 0.SyntaxFollowing is the syntax −Syntax to return the top paddingobject.style.paddingTopSyntax ... Read More

HTML