Found 8895 Articles for Front End Technology

How to Ensure the Readability of HTML?

Jaisshree
Updated on 10-Aug-2023 11:33:57

127 Views

HTML is a fundamental language utilized in web development for creating web pages. The readability of HTML is of great importance, not only for developers but also for users who aim to navigate and understand a web page easily. Proper Indentation How code is structured and presented is known as indentation. Appropriate indentation is crucial for enhancing the readability and comprehensibility of the code.To ensure code readability and comprehension experts advise using a consistent indentation scheme whether it be tabs or spaces. Example Title ... Read More

How to Enable an Autocomplete in jQuery UI ?

Jaisshree
Updated on 10-Aug-2023 11:31:31

282 Views

Jquery is a fast and simple Javascript library which is used to make client−side HTML. It simplifies some of the Javascript functions like, DOM Manipulation, traversal, Event Handling and AJAX calls. This also has Cross−Browser compatibility. What is Autocomplete? Autocomplete is a very essential feature of User Experience, As name suggests this autocompletes text in forms such as Name, Email, Address or the tags/suggestions which has been specified according to the context of the website. jQuery UI allows us to enable the autocomplete with an autocomplete widget. Approach 1: Using autocomplete() Function autocomplete() function is a jQuery ... Read More

How to use Record type in typescript?

Mohit Panchasara
Updated on 21-Aug-2023 14:52:31

326 Views

In TypeScript, the Record type is a powerful tool that allows you to define an object type with specific keys and corresponding value types. This tutorial will guide you through the fundamentals of using the Record type, providing syntax explanations and practical examples along the way. Whether you're a beginner or already familiar with TypeScript, this tutorial will help you understand how to leverage the Record type effectively in your projects. Syntax The syntax to create a Record type in TypeScript is straightforward. The type definition starts with the keyword Record, followed by angle brackets () containing the key and ... Read More

How to Get Window History in TypeScript?

Mohit Panchasara
Updated on 21-Aug-2023 14:51:00

478 Views

The user’s history of visited web pages is represented via the window.history object. A history of the pages that have been loaded is stored in an array called the history object. The history object only provides a finite amount of information. The history object only has a few properties and methods since it is impossible to know where the current URL is located within the history object. The previous URL in the history list is loaded using the history.back() method. The second method of history is the forward() method, which loads the following URL in the history list. It is ... Read More

How to Emphasize Text in a Document using HTML5?

Jaisshree
Updated on 09-Aug-2023 18:02:37

113 Views

Text may be emphasized in documents using a variety of HTML5 features and may aid in highlighting crucial information and make it simpler for readers to recognize vital elements right away. A frequently followed technique to emphasize a text is to make the text bold. Different tags are used in HTML like − , , etc to emphasize text, superscript text, add chemical formulations, and mathematical formulas. Syntax bold italic underline Example In this example, we will examine the different types of techniques to emphasize a text in an HTML5 document, such as &minus b> tag ... Read More

How to Fix Absolute Imports in TypeScript?

Mohit Panchasara
Updated on 21-Aug-2023 14:49:02

933 Views

Introduction When working on TypeScript projects, organizing and managing module dependencies is essential for maintaining a clean and scalable codebase. Absolute imports offer a convenient way to reference modules using a fixed path relative to the project's root directory. However, configuring and fixing absolute imports can sometimes be challenging, especially for beginners. In this tutorial, we will explore various scenarios where absolute imports may encounter issues and discuss practical solutions to resolve them. By the end, you'll understand how to fix absolute import problems in TypeScript effectively. Scenario 1: Missing TypeScript Configuration Before utilizing absolute imports, we must ensure that ... Read More

How to extend an interface to create a combination of interfaces?

Mohit Panchasara
Updated on 21-Aug-2023 14:47:19

198 Views

In TypeScript, interfaces provide a powerful way to define the shape of objects and enforce type constraints. They allow us to specify the required properties and methods that an object must have. One interesting feature of interfaces is the ability to extend them, allowing us to create a combination of interfaces. In this tutorial, we will explore how to extend interfaces to create new ones that inherit properties and methods from existing interfaces. Syntax interface NewInterface extends ExistingInterface { // Additional properties and methods } interface NewInterface extends Interface1, Interface2, ... { // ... Read More

How to create Form Element Themed Range slider using jQuery Mobile?

Jaisshree
Updated on 09-Aug-2023 17:59:41

119 Views

Developing a Form element Themed Range slider with jQuery Mobile is a straightforward yet effective approach to uplift user experience on webpages. This attribute empowers users to pick a value within an assigned range through the smooth movement of a handle along a customized track. By adding themed range sliders, website designers can provide instinctive input choices that augment the convenience and aesthetics of their forms. Method 1: Using Default jQuery Mobile Range Slider The simplest method is to use the default jQuery Mobile range slider. It provides a basic, pre−styled range slider that can be customized to match your ... Read More

How to draw Regular Polygon in TypeScript?

Mohit Panchasara
Updated on 21-Aug-2023 14:42:01

277 Views

Regular polygons, such as squares, triangles, and hexagons, are fundamental shapes used in various applications and graphics. Drawing regular polygons programmatically can be useful in TypeScript, allowing you to create geometric shapes dynamically. In this tutorial, we will explore how to draw regular polygons in TypeScript by leveraging basic mathematical principles and the HTML5 canvas element. Syntax function drawRegularPolygon(ctx: CanvasRenderingContext2D, n: number, x: number, y: number, r: number): void { const angle = (Math.PI * 2) / n; ctx.beginPath(); ctx.moveTo(x + r, y); for (let i = 1; i

Object - Oriented Terms Supported by TypeScript

Mohit Panchasara
Updated on 21-Aug-2023 14:37:42

559 Views

Object-oriented programming (OOP) is a popular programming paradigm that has been widely adopted in the software development industry. OOP is based on the concept of objects, which are instances of classes that encapsulate data and behaviour. TypeScript, a statically typed superset of JavaScript, is designed to support the development of large-scale applications and is also an object-oriented programming language. In this article, we will explore the object-oriented terms supported by TypeScript. Below we discuss various object-oriented terms supported by TypeScript. Class In TypeScript, a class is a blueprint for creating objects that define a set of properties and methods that ... Read More

Advertisements