- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 2416 Articles for HTML
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
80K+ Views
We can adjust the width and height of an iframe by using CSS to set the dimensions. This can be done by setting the width and height properties to a specific value or to a percentage of the parent container. Additionally, we can use JavaScript to dynamically adjust the dimensions based on the content within the iframe. The term iframe is short for Inline frame. Here are the possible approaches − Using JavaScript You can use JavaScript to adjust the width and height of an iframe to fit its content. This can be done by getting the element of the ... Read More
![Md. Sajid](https://www.tutorialspoint.com/assets/profiles/585990/profile/60_1163426-1673934715.jpg)
5K+ Views
In today's digital age, many of us are relying on technology more than ever to help us work and communicate efficiently. With so many different file formats to choose from, it can be hard to know which one you should use. Two of the most popular formats are Rich Text Format (RTF) and HyperText Markup Language (HTML). RTF is a file format that allows for basic text formatting, such as bold, italics, underlining, and font size/color. RTF files can be opened in any word processing program, such as Microsoft Word or Google Docs. HTML is a code used to create ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
12K+ Views
To add line breaks to an HTML textarea, we can use the HTML line break tag to insert a line break wherever we want. Alternatively, we can also use the CSS property "white-space: pre-wrap" to automatically add line breaks to the text. This is particularly useful when displaying pre-formatted text in a textarea. Therefore, let’s discuss the approach for adding the line breaks. Approach Create a textarea in HTML and assign an id to it. Create a button which when clicked will split the textarea’s text using newline. Now create the function which will break the text into newline. ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
9K+ Views
To add a “PRINT” button on your HTML webpage which, when clicked, prints the whole webpage. This is a fairly simple functionality to add in a webpage and can be added using some HTML elements and plain JavaScript. Therefore, let us discuss the approach for doing so. Approach Firstly, add a tag inside the HTML dom. Assign its type attribute to “button” and give it some value. Then assign an “onclick” handler to the input which will be handled using JavaScript. The function that handles the click event of input tag will look like this − const ... Read More
![Diksha Patro](https://www.tutorialspoint.com/assets/profiles/586222/profile/60_1257779-1673957458.jpeg)
11K+ Views
When designing a website, typography plays a crucial role in creating an aesthetically pleasing and easy-to-read layout. However, different browsers and operating systems may not support the same font files. To ensure that your website is displayed correctly across all devices, it is important to include multiple font files for the same font. In this article, we will go over two approaches for adding multiple font files for the same font using CSS. Approaches We will be discussing three approaches by which we can add multiple font files for the same font using CSS. They are as follows − ... Read More
![Diksha Patro](https://www.tutorialspoint.com/assets/profiles/586222/profile/60_1257779-1673957458.jpeg)
14K+ Views
Introduction In this article, we will show you how to add icons to your buttons in HTML. Icons are a great way to add visual appeal and enhance the usability of your buttons. They can be used to indicate the type of action a button will perform or make it easier for users to understand the function of a button. Approaches There are several ways to add icons to buttons in HTML, and in this article, we will cover two of the most popular methods − Using font libraries Using image files. Approach 1: Using Font Libraries One ... Read More
![Diksha Patro](https://www.tutorialspoint.com/assets/profiles/586222/profile/60_1257779-1673957458.jpeg)
3K+ Views
In this article, we will show you how to add a horizontal line to your webpage using HTML. A horizontal line, also known as a horizontal rule, is a way to separate content on a webpage and can be used for visual appeal or to indicate a change in content. There are multiple ways to add a horizontal line to your webpage in HTML, but the most common approach is by using the tag. The tag is a self-closing tag that creates a horizontal line on the webpage. This approach is simple and straightforward, and it requires ... Read More
![Diksha Patro](https://www.tutorialspoint.com/assets/profiles/586222/profile/60_1257779-1673957458.jpeg)
261 Views
Introduction In this article, we will show you how to add gradients to your project using CSS. Gradients are a great way to add visual interest to your website or application. They are a smooth transition between two or more colors and can be used to create a sense of depth or movement. They can also be used to create a subtle texture or pattern on your webpage. Approaches The following are the two approaches that we are going to follow in this article to add gradients to our project using CSS − Using the linear-gradient function Using ... Read More
![Diksha Patro](https://www.tutorialspoint.com/assets/profiles/586222/profile/60_1257779-1673957458.jpeg)
8K+ Views
Introduction In this article, we will show you how to add a Google map to your webpage without using an API key. Google Maps is a web mapping service developed by Google that provides a wide range of features, such as street maps, satellite imagery, street views, and more. An API key is a unique code that is required to access the Google Maps API, but there are alternative methods to add a Google map to your webpage without using an API key. Approaches The approaches that we will be using to add a Google map inside HTML page ... Read More
![Diksha Patro](https://www.tutorialspoint.com/assets/profiles/586222/profile/60_1257779-1673957458.jpeg)
6K+ Views
Introduction In this article, we will show you how to add a full-screen background video to your webpage using Tailwind CSS. Tailwind CSS is a utility-first CSS framework that makes it easy to create responsive and consistent designs. It provides a set of CSS classes that you can use to quickly add styles to your HTML elements. Adding a full-screen background video to your webpage can be a great way to enhance the user experience and add visual interest to your website. With Tailwind CSS, it is easy to create a full-screen background video that looks great on all devices ... Read More