Found 2202 Articles for HTML

How do we use checkbox buttons in HTML forms?

Lokesh Badavath
Updated on 19-Oct-2022 06:50:08

2K+ Views

Using HTML forms, we can easily take user input. The tag is used to get user input, by adding the form elements. Different types of form elements include text input, radio button input, submit button, text field area etc. To use radio buttons in HTML forms to get user input. Checkboxes are used when more than one option is required to be selected. They are also created using HTML tag and the type attribute is set to radio. S.No. Attribute & Description 1 type Indicates the type of input control and for checkbox input ... Read More

How do we use radio buttons in HTML forms?

Lokesh Badavath
Updated on 19-Oct-2022 06:45:18

6K+ Views

Using HTML forms, we can easily take user input. The tag is used to get user input by adding the form elements. Different types of form elements include text input, radio button input, submit button, text field area etc. In this article, let us learn how to use radio buttons in HTML forms to get user input. Radio buttons are used when out of many options, just one option is required to be selected. They are also created using HTML tag and the type attribute is set to radio. S. No. Attribute & Description ... Read More

How to use an animated image in HTML page?

Lokesh Badavath
Updated on 02-Sep-2023 13:17:00

52K+ Views

Animated images in HTML are an image on a web page that moves. It is in GIF format i.e. Graphics Interchange Format file. We need to use the tag with the src attribute to add an animated image in HTML. The src attribute adds the URL of the image (file destination). Also, we can set the height and width of the image using the height and width attribute. Syntax Example 1 Following is an example to show how to use an animated image in HTML page − DOCTYPE html> ... Read More

How do we do variable formatting using the tag in HTML?

Lokesh Badavath
Updated on 19-Oct-2022 07:04:12

1K+ Views

We use tag to define a variable in programming or in a mathematical expression. It is also used to format text in a document. The content inside this tag is typically displayed in italic font. Syntax Variable… Example 1 Following is an example to perform variable formatting using the tag in HTML − DOCTYPE html> a = float(input('Enter a value: ')) ... Read More

How do we do computer output formatting using the tag in HTML?

Lokesh Badavath
Updated on 19-Oct-2022 06:39:51

241 Views

We use tag to do computer output format. It is a phrase tag. It is used to define and identify the sample output of a computer program. It will display the text inside the element in monotype font. Syntax The text… Example 1 Following is a simple example to explain the usage of tag in HTML − Pluralsight is the technology workforce development company that helps teams know more ... Read More

How to use the tag for keyboard input formatting in HTML?

Lokesh Badavath
Updated on 19-Oct-2022 06:39:05

645 Views

We use tag to define keyboard input. It is a phrase tag that is used to identify text that represents user keyboard input. The content inside is displayed in the default monospace font by most browsers. We can override the font using style sheet. Syntax Keyboard text… Example 1 Following is the example using the tag in HTML − DOCTYPE html> Open ... Read More

How to use the tag to define the base URL for an HTML page?

Lokesh Badavath
Updated on 19-Oct-2022 06:37:10

2K+ Views

In this article, we will learn how to use the tag to define the base URL for an HTML page. In HTML, different elements have attributes that contain link to the other resources. The values of these attributes are URL’s, these can be absolute or relative URL’s. The HTML element specifies the base URL to use for all relative URLs in a document. There can only be one single element in a document, and it must be placed inside the tag. The following are the attributes of the HTML tag − The tag must ... Read More

How to create a valid HTML document with no and element?

Amit Sharma
Updated on 15-Jun-2020 11:45:48

387 Views

With HTML, the essentials are doctype declaration, and . But, you will be amazed to know that a valid HTML document can work without the and element. The doctype declaration will come always since it tells and instructs the browser about what the page is about.Let’s see an example; here we won’t use the html> and element. Still, the HTML Document is valid and will work correctly like any other valid HTML Document − Title of the page This is heading 1 This is heading 2 This is a paragraph.

What are the different tags to define special meta information in HTML page?

Lokesh Badavath
Updated on 19-Oct-2022 07:09:39

533 Views

Metadata means information about data. The tag in HTML provides complete information about HTML Document. Adding the meta tag while making the webpage or website is a good practice because search engines use this meta tag to understand the information about the website. It is also helpful while searching for a specific website, then the result page will display in search results. These tags are basically used to add author name, value pairs to describe properties of HTML documents, such as expiry date, author name etc. i.e.., it is used to specify a character set, page description and viewport ... Read More

How to create a flexbox Layout in HTML?

Lokesh Badavath
Updated on 19-Oct-2022 06:17:51

898 Views

To create a flexbox layout in HTML, we use CSS Float. We have multiple layouts to show content on a web page. CSS Float is one of the ways to multi-column layouts. Flexbox layout introduced in CSS3. This layout helps in adjusting the screen size and to get displayed correctly on multiple display devices and makes the web page responsive. With the collapse of a margin of content, the flexbox does not collapse. It adjusts according to screen size. Here’s the flexbox layout, which you can easily create. On resizing the page, the following is visible. The page adjusts according ... Read More

Advertisements