Found 10483 Articles for Web Development

How to mark strikethrough text in HTML?

Sai Subramanyam
Updated on 29-Dec-2021 07:28:48

10K+ Views

To mark strikethrough text in HTML, use the … tag. It renders a strikethrough text. HTML deprecated this tag and it shouldn’t be used in HTML5. As an alternative, use the CSS text-decoration property.To use the CSS property, use the style attribute. The style attribute specifies an inline style for an element. The attribute can be used with the HTML tag. Just keep in mind, HTML5 does not support the tag, so the CSS style should be used.ExampleYou can try to run the following code to mark strikethrough text in HTML HTML Strikethrough text ... Read More

How to mark deleted text in HTML?

Lokesh Badavath
Updated on 11-Nov-2022 09:10:46

2K+ Views

We use tag, to delete a text in HTML. This tag mark strike on the text which is to be delete from the document. We can also use the style attribute, to strike a text in HTML. The style attribute specifies an inline style for an element. This attribute is used inside the HTML tag, with the CSS property text-decoration property. Syntax Following is the syntax to delete a text in HTML. The content to be deleted Example Following is the example program to delete a text in HTML. DOCTYPE html> ... Read More

How to underline a text in HTML?

Lokesh Badavath
Updated on 02-Sep-2023 10:06:31

77K+ Views

Underlined text is used to help draw attention to the text. We use the tag, to underline a text in HTML. It represents a text in a different style from another text in the content of the web page. We can also use the style attribute, to underline a text in HTML. The style attribute specifies an inline style for an element. This attribute is used inside the HTML tag, with the CSS property text-decoration property. Syntax Following is the syntax to underline a text in HTML. The content to be underlined Example Following is the ... Read More

How to create table rows & columns in HTML?

Lokesh Badavath
Updated on 18-Nov-2022 10:59:27

22K+ Views

HTML tables allow us to arrange data into rows and columns on the web page. We use the tag, to create table in HTML. A table consist of rows and columns. Table heading, row and column and table data can be set using one or more , , and elements. A table row is defined by the tag. For table rows and columns, we use , tags respectively inside the … tag. Example Following is the example program to create table rows and column. DOCTYPE html> ... Read More

How to use small font in HTML?

karthikeya Boyini
Updated on 22-Dec-2021 09:43:02

5K+ Views

To set the small font in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML tag, with the CSS property font-size. HTML5 do not support the tag, so the CSS style is used to add font size.Just keep in mind, the usage of style attribute overrides any style set globally. It will override any style set in the HTML tag or external style sheet.ExampleYou can try the following code to add font smaller than the default font in an HTML page     ... Read More

How do I hide an element when printing a web page?

Alshifa Hasnain
Updated on 13-Mar-2025 12:04:52

6K+ Views

In this article, we will learn to hide an element when printing a web page in JavaScript and HTML. When printing a web page, you can suppress elements such as navigation menus, advertisements, and interactive elements that you do not require on paper and print only the required information. Different Approaches The Following are the two different approaches to hiding an element when printing a web page − Using CSS Media Query Using JavaScript to Hide Elements Before Printing Using CSS Media Query The most common and efficient method to ... Read More

How to create table header in HTML?

Lokesh Badavath
Updated on 18-Nov-2022 10:55:33

9K+ Views

To create table header in HTML, use the … tag. A table header tag is surrounded by the table row …. The tag is surrounded by the tag. A table consist of a rows and columns, which can be set using one or more , , and elements. Use the style attribute to add CSS properties for adding a border to the table. A table row is defined by the tag. To create table header, use the tag. Just keep in mind that you can only have a single heading in a table. Syntax ... Read More

How can I pop-up a print dialog box using JavaScript?

Amit Sharma
Updated on 17-Jun-2020 06:09:24

4K+ Views

To pop-up a print dialog box using JavaScript, use the print() method. With the dialog box, you can easily set the printing options like which printer to select for printing.This is the dialog box −ExampleYou can try to run the following code to learn how to print a page −Live Demo           Click to Print                function display() {             window.print();          }          

How to design a custom alert box using JavaScript?

Prince Varshney
Updated on 06-Dec-2022 09:23:10

12K+ Views

In this tutorial, we are going to create one custom alert box using JavaScript. The alert box signifies a box that appears with some message on it whenever you click a button and if we add some styling to the box and mould it according to our requirements then it will be a custom alert box. Approach to design custom alert box using JavaScript To create a custom alert box, we will use a jQuery library which is used to simplify the HTML DOM manipulation and it also provides us with better use of event handling and CSS animation with ... Read More

How to use small formatting in HTML?

Lokesh Badavath
Updated on 11-Nov-2022 09:06:33

323 Views

The tag in HTML makes text font size smaller (one size smaller to the original font size) in the HTML document. The HTML tag is found inside the tag. The tag makes the text one size smaller. Syntax Following is the syntax for the tag. The text… Example Following is the example program for the tag. DOCTYPE html> Tutorials point Example We can use tag inside the HTML elements. Following is the example program for the tag inside the tag. DOCTYPE html> ... Read More

Advertisements