Articles on Trending Technologies

Technical articles with clear explanations and examples

Which is the best tutorial site to learn HTML?

Nikitha N
Nikitha N
Updated on 16-Mar-2026 221 Views

HTML stands for Hyper Text Markup Language, which is the most widely used language on the web to develop web pages. HTML was created by Tim Berners-Lee in late 1991, and "HTML 2.0" was the first standard HTML specification published in 1995. HTML 4.01 was a major version published in late 1999. The current version is HTML5, which is an extension of HTML 4.01 and was officially published in 2012. What Does HTML Look Like? HTML uses a system of tags to structure content on a web page. Here is a basic example of an HTML page − ...

Read More

Static HTML elements are written directly in SAPUI5

Johar Ali
Johar Ali
Updated on 16-Mar-2026 569 Views

SAPUI5 allows developers to use their own static HTML elements alongside UI5 controls. It is not a closed framework − you can use the sap.ui.core.HTML control to write plain HTML within any area rendered by UI5, making it easy to mix static HTML and UI5 controls in the same view. HTML created by UI5 controls is generated dynamically at runtime. This is how most JavaScript UI libraries work when providing higher-level UI elements that would be complex to write in static HTML alone. However, SAPUI5 gives you the flexibility to embed your own static HTML whenever needed. ...

Read More

Page build in HTML and wanted to load into JS view in SAPUI5 application.

Ali
Ali
Updated on 16-Mar-2026 619 Views

In SAPUI5, you may need to load an HTML page into a JavaScript view. This is useful when you have pre-built HTML content that needs to be displayed within a SAPUI5 application. There are multiple ways to achieve this, including using sap.ui.core.HTML with an iframe, loading HTML content via an AJAX call, or directly embedding HTML content. Syntax Using sap.ui.core.HTML with iframe new sap.ui.core.HTML({ preferDOM: true, content: "" }); The sap.ui.core.HTML control allows you to embed raw HTML content into a SAPUI5 view. Setting preferDOM: true tells the ...

Read More

How can I use multiple submit buttons in an HTML form?

Bhanu Priya
Bhanu Priya
Updated on 16-Mar-2026 13K+ Views

Generally, HTML forms use a single submit button to save or send data. However, in some cases we need multiple submit buttons such as "Save", "Update", or "Delete" within the same form. Each button may perform a different action or send data to a different URL. To handle multiple submit buttons, we can use the formaction attribute, assign the same name with different value attributes, or give each button a different name. The server-side code then determines which button was clicked and processes accordingly. Syntax Using formaction Attribute Default Action ...

Read More

How to validate a form using jQuery?

Arnab Chakraborty
Arnab Chakraborty
Updated on 16-Mar-2026 32K+ Views

To validate a form using jQuery, we can use the jQuery Validation Plugin. This plugin provides a simple way to define validation rules, custom error messages, and submit handlers for HTML forms without writing complex validation logic from scratch. The plugin works by attaching the .validate() method to a form element and defining rules for each input field by its name attribute. Syntax The basic syntax for jQuery form validation is − $(document).ready(function() { $("#formId").validate({ rules: { ...

Read More

How to horizontally center a <div> in another?

Arnab Chakraborty
Arnab Chakraborty
Updated on 16-Mar-2026 362 Views

To horizontally center a div inside another div, we need to apply CSS centering techniques on the inner element. The most common methods include using margin: 0 auto, flexbox, and position with transform. The key principle is that the inner div must have a defined width smaller than its parent, so the browser can calculate equal space on both sides to center it. Outer DIV (full width) Inner DIV (centered) auto margin auto margin ...

Read More

How to place two divs next to each other in HTML?

Bhanu Priya
Bhanu Priya
Updated on 16-Mar-2026 50K+ Views

A DIV tag is a division element in HTML used to group and separate content on web pages. It helps organize text, images, navigation bars, and other elements into distinct sections. A tag consists of an opening and closing tag. Both are required. DIV elements can be styled with CSS or manipulated with JavaScript using the class or id attributes. Placing Two Divs Next to Each Other By default, elements are block-level and stack vertically. To place them side by side, we can use CSS properties like float, display: inline-block, or display: flex. ...

Read More

What is the difference between height and line-height?

Alex Onsman
Alex Onsman
Updated on 16-Mar-2026 3K+ Views

The height property defines the vertical measurement of an element's content area, while line-height controls the spacing between lines of text within that element. The height property sets the overall vertical size of a container, such as a div or paragraph. When content exceeds this height, it may overflow or be clipped depending on the overflow settings. The line-height property specifies the minimum height of line boxes within the element. It determines the vertical space between lines of text, affecting readability and visual spacing. Line-height can be specified in pixels, percentages, or as a unitless number (multiplier of ...

Read More

How to sort a set in JavaScript?

Abhishek
Abhishek
Updated on 15-Mar-2026 558 Views

A Set is a JavaScript data structure that stores unique values in insertion order. Unlike arrays, Sets cannot be sorted directly because they don't have a sort() method. To sort a Set, we must convert it to an array, sort the array, and create a new Set from the sorted results. In this article, we'll learn different approaches to sort Sets in JavaScript using array conversion and the sort() method. Why Sets Cannot Be Sorted Directly Sets maintain insertion order and focus on uniqueness rather than sorting. They lack array methods like sort(), so we need an ...

Read More

How to sort an array of object by two fields in JavaScript?

Abhishek
Abhishek
Updated on 15-Mar-2026 478 Views

An array of objects is an array that contains all the elements in the form of JavaScript objects. Here, we are said to use an array of objects with two fields that means, have to use objects with two elements as elements of the array. In this article, we are going to learn about the method of sorting the array of objects by two fields in JavaScript. We can simply use the sort() method of JavaScript to sort the elements of an array and give it a cmp or the comparator function to define the order in which we ...

Read More
Showing 1–10 of 61,300 articles
« Prev 1 2 3 4 5 6130 Next »
Advertisements