Web Development Articles

Page 106 of 801

Phonegap + Windows Phone 8 : HTML5 viewport meta & scaling issue

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 172 Views

When developing PhoneGap applications for Windows Phone 8, you may encounter HTML5 viewport scaling issues where the content appears zoomed in or out, or doesn't fit properly on the device screen. This typically occurs when the viewport meta tag isn't properly configured or when Windows Phone's default zoom behavior conflicts with your app's layout. Common Causes The viewport scaling issue in PhoneGap Windows Phone 8 apps usually stems from − Missing or incorrect viewport meta tag configuration Windows Phone's default zoom behavior overriding your CSS Improper CSS styling that doesn't account for device-specific rendering ...

Read More

HTML cite Attribute

George John
George John
Updated on 16-Mar-2026 239 Views

The cite attribute in HTML provides a URL reference that explains why specific content was deleted or inserted. It is commonly used with the and elements to document the reason for changes made to the content. Syntax Following is the syntax for the cite attribute with the element − deleted content Following is the syntax for the cite attribute with the element − inserted content Here, url is the link that points to a document or resource explaining why the text was deleted or inserted. ...

Read More

HTML DOM Anchor password Property

Ankith Reddy
Ankith Reddy
Updated on 16-Mar-2026 168 Views

The HTML DOM Anchor password property sets or returns the password portion of an anchor element's href attribute value. This property is part of the URL structure that includes user credentials in the format https://username:password@hostname.com. Syntax To set the password property − anchorObject.password = "newPassword" To return the password property − anchorObject.password Return Value The password property returns a string representing the password part of the URL. If no password is specified in the href attribute, it returns an empty string. Example − Getting Anchor Password Following ...

Read More

HTML data Attribute

George John
George John
Updated on 16-Mar-2026 165 Views

The data attribute of the element specifies the URL of the resource to be embedded in the web page. This resource can be various file types including audio, video, PDF documents, Flash files, images, or other multimedia content. Syntax Following is the syntax for the data attribute − Here, url is the absolute or relative URL of the resource to be embedded by the object element. Parameters The data attribute accepts a single parameter − url − A string that specifies the URL of the resource. This can ...

Read More

HTML DOM Anchor port Property

Ankith Reddy
Ankith Reddy
Updated on 16-Mar-2026 182 Views

The HTML DOM Anchor port property is used to set or return the port number of a URL in the href attribute of an anchor element. This property represents the port number portion of the URL, which appears after the hostname and is separated by a colon. Syntax Following is the syntax to set the port property − anchorObj.port = portNumber Following is the syntax to return the port property − anchorObj.port Here, portNumber is a string representing the port number of the URL. If no port is specified in ...

Read More

HTML cancelable Event Property

Arjun Thakur
Arjun Thakur
Updated on 16-Mar-2026 179 Views

The cancelable event property in HTML determines whether an event can be canceled using the preventDefault() method. It returns true if the event is cancelable and false if it cannot be canceled. This property is particularly useful when you need to check if an event's default behavior can be prevented before attempting to call preventDefault(). Syntax Following is the syntax for the cancelable event property − event.cancelable Return Value The cancelable property returns a boolean value − true − The event is cancelable and its default action can be prevented. ...

Read More

HTML DOM activeElement Property

Ankith Reddy
Ankith Reddy
Updated on 16-Mar-2026 246 Views

The HTML DOM activeElement property is a read-only property that returns the currently focused element in the document. This property is useful for tracking user interaction and determining which element has keyboard focus at any given time. When no specific element has focus, the activeElement property typically returns the element or the element, depending on the browser. Syntax Following is the syntax for the activeElement property − document.activeElement Return Value The activeElement property returns an Element object representing the currently focused element in the document. If no element has focus, ...

Read More

HTML DOM paddingLeft Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 169 Views

The HTML DOM paddingLeft property is used to get or set the left padding of an HTML element. This property allows you to dynamically modify the spacing inside an element from the left side using JavaScript. Syntax Following is the syntax for getting the paddingLeft property − object.style.paddingLeft Following is the syntax for setting the paddingLeft property − object.style.paddingLeft = "value" Return Value The paddingLeft property returns a string representing the left padding value of the element, including the unit (e.g., "20px", "2em", "5%"). Property Values The ...

Read More

HTML DOM Input Button name Property

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 191 Views

The HTML DOM name property is used to get or set the value of the name attribute of an input button element. This property is essential for form data submission, as the name attribute identifies the button when the form is submitted to the server. Syntax Following is the syntax for returning the name value − object.name Following is the syntax for setting the name value − object.name = "text" Here, text represents the new name value to be assigned to the input button. Return Value The name ...

Read More

HTML DOM Input Button disabled Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 238 Views

The HTML DOM Input Button disabled property returns and modifies the value of the disabled attribute of an input button element. When set to true, the button becomes non-interactive and appears grayed out. When set to false, the button is enabled and can be clicked. Syntax Following is the syntax for returning the disabled property − object.disabled Following is the syntax for setting the disabled property − object.disabled = true|false Property Values The disabled property accepts the following boolean values − true − Disables the button, making ...

Read More
Showing 1051–1060 of 8,010 articles
« Prev 1 104 105 106 107 108 801 Next »
Advertisements