
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 2202 Articles for HTML

4K+ Views
In this article, we need to display the HTML content of the page in an iframe; A browser window divided as a separate page. We can achieve this task using the tag and it’s srcdoc attribute. HTML tag The tag in HTML specifies an inline frame. This inline frame is used to embed another document within the current HTML document. This tag is supported by every browser such as Google Chrome, Microsoft edge/ internet explorer, Firefox, safari, and opera, etc. The “srcdoc” attribute of the tag is used to specify the HTML content of the page ... Read More

169 Views
In this article, we are going to execute a script when the user pastes content into an element in HTML. When a user pastes content into an element, the onpaste event is triggered. Although all HTML elements accept the onpaste event, you cannot actually paste information into a element, unless the element has set contenteditable to "true." Most components with type="text" employ the onpaste event.Let’s dive into the following examples to get better understanding on executing a script when the user pastes some content in an element in HTML. Example 1 In the following examples we are using ... Read More

742 Views
In this article, we are going to learn about how to set the URL of the media fiel in HTML. Here, we'll look at how to use HTML to establish a media file's URL. We utilise the tag to specify a media file's URL. Multimedia files, including audio, video, and image files, are attached using this tag. The element is contained in the , , and elements. Syntax Following is the syntax for element ……. Let’s dive into the following examples to understand more about how to set the URL of the media file in HTML. ... Read More

237 Views
The task we need to perform in this article is executing a script when a user navigates to a page in HTML. We can do the above task (executing a script when a user navigates to a page in HTML) by using "onpageshow Event". Before we jump into the examples let’s look into the definition and usage of onpageshow event in HTML. HTML onpageshow event The onpageshow event in HTML occurs when a user navigates to a webpage. This event occurs every time the page is loaded. Syntax Following is the syntax of onpageshow event in HTML − ... Read More

2K+ Views
To add a spellchecker, use the spellcheck attribute in HTML. The attribute checks spelling and grammer for text in input elements, elements and editable elements. Adding spellcheck Write spellcheck="true" inside the text type tag. Note − It works for input elements, but not password.ExampleYou can try to run the following code to add spell checker in HTML − Subject: Add an incorrect spelling for a word above and see what happens. This is an editable conttent, with a spelling mistake. Click to edit.

506 Views
The task we are going to perform in this article is set the number of columns to span in HTML. When utilizing the element, this is accomplished by using the colspan attribute. As a result, a single table cell can now span multiple columns or cells in width. Let’s jump into the article to know more about colspan attribute. Colspan Attribute The number of columns that a cell should span in HTML is specified by the colspan attribute. It enables a single table cell to stretch across many columns or cells. It offers the same features as a ... Read More

6K+ Views
In this article, we are going to discuss how to set the size of the icons in HTML. An icon is a symbol that represents a specific action on a webpage. The Icon Fonts contain symbols and glyphs. There are several icon libraries(fonts) that provide icons and can be used on HTML webpages. The prominent icon fonts frequently used by the web developers are Font Awesome, Bootstrap Glyphicons, and Google’s material icons. Font Awesome − This library is completely free, for both commercial and personal use. This Font provides us with 519 free scalable vector icons. These can be ... Read More

287 Views
Use the width attribute in HTML to set the width of an element. You can use the attribute with the following elements − , , , , , etc.ExampleYou can try to run the following code to implement width attribute in HTML − Live Demo Your browser does not support the video element. Output

375 Views
In this article we are going to perform how do we add the width in characters for input in HTML. The size attribute is used to specify the visible width of an element in terms of characters. The input fields accepts text, search, tel, URL, email, and password. Its display size may be impacted by this, albeit rather indirectly. The length of prospective entries is not truly constrained by the size parameter, though − Syntax Following is the syntax for ... Let’s look into the following examples, to learn more about adding the width ... Read More