The rel attribute of the element specifies the relationship between the current document and the linked document. This attribute was introduced in HTML5 for the element and helps define the semantic relationship between clickable regions in image maps and their target destinations. Syntax Following is the syntax for the rel attribute in the element − The value can be one or more space-separated keywords that define the relationship type. Rel Attribute Values The rel attribute accepts the following values that define different types of relationships − ... Read More
The target attribute of the element specifies where to display the response received after submitting the form. It controls whether the form response opens in the same window, a new tab, a specific frame, or the parent window. Syntax Following is the syntax for the target attribute − Target Attribute Values The target attribute accepts the following predefined values − _blank − Opens the form response in a new window or tab. _self − Opens the form response in the same frame (default behavior). _parent − Opens the form ... Read More
Radio buttons in HTML forms allow users to select only one option from a group of choices. They are created using the tag with type="radio" and are ideal for mutually exclusive selections like gender, age group, or preferences. Syntax Following is the basic syntax for creating radio buttons in HTML − Label Text For proper accessibility and functionality, use labels with radio buttons − Label Text Radio Button Attributes The following table shows the key attributes used with radio buttons − Attribute Description ... Read More
The alt attribute provides alternative text for images when they cannot be displayed due to loading issues, broken links, or slow connections. This attribute is essential for accessibility, helping screen readers describe images to visually impaired users, and improves SEO by providing context to search engines. Syntax Following is the syntax for the alt attribute − The alt attribute accepts a text string that describes the image content or function. Keep the description concise but meaningful. Basic Alt Attribute Usage Example Following example shows how to use the alt attribute ... Read More
The SVG (Scalable Vector Graphics) and HTML5 Canvas are both technologies for creating graphics on web pages, but they work in fundamentally different ways. SVG is a vector-based markup language that uses XML to define graphics, while Canvas is a bitmap-based drawing surface that uses JavaScript for creating graphics programmatically. What is SVG? SVG stands for Scalable Vector Graphics and is an XML-based markup language for describing 2D graphics. SVG graphics are composed of shapes, paths, text, and other elements defined through XML tags. The browser renders these elements as vector graphics, making them infinitely scalable without quality ... Read More
In HTML5, we can create image buttons that combine visual images with button functionality. An image button allows users to click on an image to submit forms or trigger JavaScript actions, providing a more visually appealing alternative to standard text buttons. What is an Image Button An image button is a clickable interface element that uses an image instead of text as the button's visual representation. When clicked, it can submit forms, trigger JavaScript functions, or navigate to different pages. There are two main approaches to create image buttons in HTML5 − Using − Creates ... Read More
The align attribute was used in older HTML versions to set the alignment of elements according to their surrounding content. However, this attribute is deprecated in HTML5, and CSS should be used instead for modern web development. Note − The align attribute is deprecated in HTML5. Use CSS text-align, margin, or flexbox properties for alignment instead. Legacy Align Attribute Syntax The deprecated align attribute had the following syntax − Content Where value could be: left − Aligns content to the left right − Aligns content to the right center − Centers ... Read More
Converting an HTML5 application into a standalone Android app allows you to distribute your web-based content through the Google Play Store. This process involves creating a WebView-based Android application that loads and displays your HTML5 content locally. A WebView acts as a browser component within your Android app, providing the ability to display web content without requiring an internet connection when files are stored locally. Prerequisites Before starting the conversion process, ensure you have the following − Android Studio − The official IDE for Android development HTML5 files − Your complete web application including HTML, ... Read More
The target attribute of the element specifies where to open the linked document when a clickable area within an image map is activated. It determines whether the link opens in the current window, a new window, or a specific frame. Syntax Following is the syntax for the target attribute − Target Attribute Values The target attribute accepts the following values − _blank − Opens the linked document in a new window or tab. _self − Opens the linked document in the same frame or window (default ... Read More
We use the tag with the type="password" attribute to create password input fields in HTML forms. This input type automatically masks the characters with dots or asterisks as the user types, providing basic visual security for sensitive information. Syntax Following is the basic syntax for creating a password input field − The password input can also include additional attributes − Basic Password Input Example Following example demonstrates a simple login form with username and password fields − ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Economics & Finance