Web Development Articles

Page 97 of 801

HTML DOM Input Email size Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 178 Views

The HTML DOM Input Email size property returns or sets the size attribute of an input email field. This property determines the visible width of the input field in characters. If not specified, the default value is 20. Syntax Following is the syntax for returning the size property − inputEmailObject.size Following is the syntax for setting the size property − inputEmailObject.size = number Parameters The size property accepts a numeric value representing the number of characters the input field should display. The value must be a positive integer. Common ...

Read More

HTML DOM Superscript Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 191 Views

The HTML DOM Superscript Object represents the element in an HTML document. The superscript element displays text as superscript, which appears half a character above the normal line and is often rendered in a smaller font size. This is commonly used for mathematical exponents, footnote references, and ordinal numbers. Syntax Following is the syntax to create a superscript object using JavaScript − document.createElement("SUP"); Properties The Superscript object inherits all properties from the generic HTMLElement object, including − innerHTML − Gets or sets the HTML content inside the superscript element. textContent ...

Read More

HTML DOM Table Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 845 Views

The HTML DOM Table Object represents the element in HTML. It provides properties and methods to dynamically create, modify, and manipulate table elements using JavaScript. This object allows developers to programmatically interact with tables without directly modifying HTML markup. Syntax To create a new table object using JavaScript − document.createElement("TABLE"); To access an existing table element − document.getElementById("tableId"); document.getElementsByTagName("table")[0]; Properties The DOM Table Object provides the following key properties − Property Description caption Returns or sets the element of ...

Read More

How to set background color in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 245K+ Views

Setting the background color in HTML allows you to customize the appearance of your web page and create visually appealing layouts. In modern HTML5, background colors are set using CSS, either through inline styles or external stylesheets. Syntax Following is the basic syntax to set background color using the CSS background-color property − Alternatively, you can use CSS in the section − body { background-color: colorname; } Note − The bgcolor attribute was deprecated in HTML5. Always use the CSS background-color property instead. Setting ...

Read More

How to center align text in table cells in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 131K+ Views

We use the CSS property text-align to center align text in table cells. The text-align property controls the horizontal alignment of content within and elements. By default, table header cells () are center-aligned, while table data cells () are left-aligned. We can override this default behavior using CSS to achieve the desired alignment. The property accepts values like center, left, right, and justify. Syntax Following is the syntax to center align text in elements − Table header... Following is the syntax to center align text in elements − ...

Read More

How to make page links in HTML Page?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 84K+ Views

A link is a connection from one web page to another web page. We can add page links to a web page using HTML links, which are hyperlinks. The tag defines a hyperlink and is used to link from one page to another. The href attribute is used with the tag, which indicates the link's destination. To create page links in an HTML page, we need to use the href attribute of the and tag. Make sure that the tag is placed within the … tags. The link text is visible. Clicking on ...

Read More

How to limit the number of characters allowed in form input text field?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 70K+ Views

In this article, we will learn how to limit the number of characters allowed in form input text field using HTML attributes. HTML provides built-in attributes to control the character limits in input fields. The maxlength attribute sets the maximum number of characters allowed, while the minlength attribute sets the minimum number of characters required for validation. Syntax Following is the syntax for the maxlength attribute − Following is the syntax for the minlength attribute − Both attributes can be used together to set a character range ...

Read More

How to remove underline from a link in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 53K+ Views

By default, HTML links are displayed with an underline to indicate they are clickable. However, you can remove this underline using the text-decoration CSS property. The most common approach is to use an inline style attribute directly on the link element. Syntax Following is the syntax to remove underline from a link using inline CSS − Link Text You can also use internal or external CSS to apply this style to multiple links − a { text-decoration: none; } Using Inline Style The inline style method applies the text-decoration: ...

Read More

How to merge table cells in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 79K+ Views

We use the colspan and rowspan attributes to merge cells in HTML tables. The rowspan attribute specifies the number of rows a cell should span vertically, whereas the colspan attribute specifies the number of columns a cell should span horizontally. These attributes should be placed inside the tag or tag to merge table cells and create more complex table layouts. Syntax Following is the syntax for the rowspan attribute to merge rows − cell data Following is the syntax for the colspan attribute to merge columns − cell data ...

Read More

How to use an animated image in HTML page?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 52K+ Views

Animated images in HTML are visual elements that display moving graphics on a web page. They are typically in GIF format (Graphics Interchange Format), which supports animation by storing multiple frames in a single file that play in sequence. We use the tag with the src attribute to add an animated image in HTML. The src attribute specifies the URL or file path of the animated image. You can also control the display size using the height and width attributes or CSS styling. Syntax Following is the basic syntax for adding an animated image − ...

Read More
Showing 961–970 of 8,010 articles
« Prev 1 95 96 97 98 99 801 Next »
Advertisements