Front End Technology Articles

Page 45 of 652

How create table without using tag?

Yaswanth Varma
Yaswanth Varma
Updated on 16-Mar-2026 2K+ Views

A website's data representation is an essential component. If you have or manage a lot of data but don't know how to properly display it, users will not be able to understand it and it won't be of any use. Tabular representation is frequently a crucial kind of data presentation, particularly when it comes to statistical information. Tables are typically constructed in web design using the tag, but creating responsive tables can be challenging with traditional table markup. This article explores how to create table-like structures without using the tag. This can be achieved using HTML ...

Read More

How to add a Range Slider using HTML?

Yaswanth Varma
Yaswanth Varma
Updated on 16-Mar-2026 689 Views

The HTML range slider is an interactive control that allows users to select a numeric value from a specified range by dragging a handle along a track. Range sliders are commonly used for settings like volume control, brightness adjustment, price filters, and other numeric input scenarios where approximate values are more important than precise entry. Range sliders are created using the element, which provides a native, accessible way to implement slider controls without requiring external libraries. Syntax Following is the basic syntax for creating a range slider in HTML − HTML ...

Read More

Container and Empty Tags in HTML

Yaswanth Varma
Yaswanth Varma
Updated on 16-Mar-2026 3K+ Views

HTML uses predefined tags to instruct the browser on how to display content. Tags are instructions enclosed in angle brackets (< >). Understanding the difference between container and empty tags is crucial for writing proper HTML code. In HTML, there are two main categories of tags − Container Tags − Require both opening and closing tags Empty Tags − Have only an opening tag with no closing tag Let's explore both types of tags and understand their proper usage in HTML documents. HTML Container Tags Container tags have three components − an opening tag, ...

Read More

How to find all selected options of HTML select tag?

Aman Gupta
Aman Gupta
Updated on 16-Mar-2026 543 Views

When working with HTML select dropdowns, you may need to find which options a user has selected. This is particularly useful for form validation, order processing, or dynamic content updates. In this article, we'll explore how to find all selected options using JavaScript and jQuery. Syntax Following is the basic syntax for finding selected options using jQuery − $("option:selected").text(); For vanilla JavaScript, use − var selectedOptions = selectElement.selectedOptions; Here: option:selected − A jQuery pseudo-class selector that targets all selected options in dropdown menus text() − A jQuery method that ...

Read More

How can you set the height of an outer div to always be equal to a particular inner div?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 2K+ Views

When working with multiple inner div elements inside an outer container, you may need the outer container's height to match the height of a specific inner div. This ensures consistent layout and proper alignment across all inner elements. This article demonstrates two effective approaches using modern CSS techniques. Syntax Following is the basic HTML structure for setting outer div height based on inner div − Content that controls height Content that adapts to height More content that adapts Using CSS Flexbox CSS ...

Read More

Unescape HTML entities in JavaScript?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 1K+ Views

To unescape HTML entities in JavaScript, we need to understand the difference between URL encoding (handled by unescape()) and HTML entity decoding. HTML entities like , and & require different approaches than URL-encoded strings like %20. The legacy unescape() function only handles URL percent-encoded strings, not actual HTML entities. For true HTML entity decoding, we use modern methods like the DOM's innerHTML property or DOMParser. Syntax Following is the syntax for the legacy unescape() function for URL decoding − unescape(encodedString) Following is the syntax for HTML entity decoding using DOM methods − ...

Read More

HTML DOM Input Text object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 2K+ Views

The HTML DOM Input Text object represents an element with type="text" in the Document Object Model. This object provides properties and methods to dynamically create, access, and manipulate text input fields using JavaScript. We can create an Input Text object using createElement() and access existing text inputs using getElementById() or other DOM selection methods. Syntax Following is the syntax for creating an Input Text object − var inputElement = document.createElement("INPUT"); inputElement.setAttribute("type", "text"); Following is the syntax for accessing an existing Input Text object − var inputElement = document.getElementById("textFieldId"); ...

Read More

How elements float in HTML?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 445 Views

The float property in CSS allows elements to be positioned to the left or right side of their container, causing other content to wrap around the floated element. This property is commonly used for creating layouts where text flows around images or for positioning elements side by side. Syntax Following is the syntax for the CSS float property − selector { float: left | right | none | inherit; } The float property accepts the following values − left − The element floats to the left of its container ...

Read More

How to count the number of notifications on an icon?

Aman Gupta
Aman Gupta
Updated on 16-Mar-2026 2K+ Views

A notification icon is a common UI feature in modern web applications that displays the count of pending notifications. This feature can be implemented using HTML, CSS, JavaScript, and Bootstrap to create an interactive notification system with a badge counter. Required CDN Links To build this notification counter, we need to include the following CDN links in our HTML document − Font Awesome CDN Bootstrap CDN HTML Structure The notification icon consists of a button with a bell icon and a badge counter. The notifications ...

Read More

Make container shrink-to-fit child elements as they wrap in HTML

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 1K+ Views

Making a container shrink-to-fit its child elements as they wrap is a common CSS layout challenge. This technique ensures that the container only takes up as much width as needed by its content, rather than stretching to fill the available space. We achieve this using CSS Flexbox properties combined with proper container sizing. How It Works The key to making a container shrink-to-fit is using display: inline-flex or display: flex with width: fit-content. The inline-flex display value makes the flex container behave like an inline element, automatically sizing to its content width. When child elements wrap using ...

Read More
Showing 441–450 of 6,519 articles
« Prev 1 43 44 45 46 47 652 Next »
Advertisements