Web Development Articles

Page 83 of 801

How to add a layer in HTML?

Bhanu Priya
Bhanu Priya
Updated on 10-Oct-2023 3K+ Views

We can add a layer to an HTML document using the tag in HTML. Once we have created a layer using this tag, then we can manipulate it using JavaScript. This tag is used to position and animate (through scripting) elements in a page. A layer can be thought of as a separate document that resides on top of the main one, all-existing within one window.Following is the usage of tag in HTML - Attributes of the tag Above − The above attribute in layer tag specifies the name of above layer when compared ...

Read More

Add a label for a form control in HTML?

Bhanu Priya
Bhanu Priya
Updated on 10-Oct-2023 619 Views

In HTML the tag is used to define labels for serval elements like , , , , . Syntax Following is the usage of tag in HTML − form content... The tag uses for and form attributes, now let us see the values and description of for and form attributes. for − It specifies the id of form element the label is associated with. Following is the syntax of ...

Read More

Add a horizontal rule in HTML

Bhanu Priya
Bhanu Priya
Updated on 10-Oct-2023 841 Views

The tag in HTML is a horizontal rule, defines a thematic break in an HTML page. It is often used to display a horizontal rule to separate the content or to change the display of content in an HTML page. It consists of only opening tag in HTML. Syntax The usage of tag in HTML is shown below − ……… The HTML tag supports following additional attributes − Attribute Value Description align left center right Specifies the alignment of the horizontal rule. noshade Noshade Removes the ...

Read More

Design a Vertical and Horizontal menu using Pure CSS

Yaswanth Varma
Yaswanth Varma
Updated on 09-Oct-2023 544 Views

The menu is a crucial component of any website. It helps visitors find your quality material and directs them to the key portions of your website. Of course, CSS is the best language for creating stunning navigation menus. It is incredibly adaptable and can be used for any kind of website. It can be shown either horizontally or vertically before the primary content of the webpage or header. The task we are going to perform in this article is to design a vertical and horizontal menu using Pure CSS. That can be done by using the and tags. ...

Read More

Create self-contained content in HTML5

Bhanu Priya
Bhanu Priya
Updated on 06-Oct-2023 846 Views

The element in HTML5 is used to display self-contained content (images, videos, etc). This can be attached to the main program, and can be used at any place within the document without impacting the flow of document. Additionally, if we remove the tag, it won’t affect the structure of the document. Syntax The usage of tag in HTML is shown below − Image content... The parameters used in the caption are img, src and figcaption. The tag is used to specify the image source URL when we are including an ...

Read More

How to add a container for an external (non-HTML) application in HTML5

Bhanu Priya
Bhanu Priya
Updated on 06-Oct-2023 417 Views

To add a container for an external application in HTML5 we use tag. It defines or embed a container for an external resource like, web pages, media player, pictures or a plug-in application. Following is the usage of embed tag in HTML − It doesn’t have closing tag. The browsers that support embed tag are google chrome, Internet explorer, Firefox, Apple Safari, Opera. It supports, global and event attributes in HTML. Most of the browsers display the element with default CSS settings like embed:focus { outline: none; } Attributes Now, ...

Read More

How do we add a definition term in HTML?

Bhanu Priya
Bhanu Priya
Updated on 06-Oct-2023 572 Views

The definition term is represented as tag in HTML, it describes the name or term in a description list. The define term is conjunction with and tags. tag is used to describe each name or term tag defines a description list. define tag supports both global and event attributes. The tag is supported by almost all browsers. Syntax Following is the syntax of define term − code Example Following example of adding a definition term in HTML. Here we are using all the three ...

Read More

How to create conditional comments in HTML?

Bhanu Priya
Bhanu Priya
Updated on 06-Oct-2023 2K+ Views

Conditional comments are nothing but conditional statements which are used to hide or provide HTML the source code from browser. First let us discuss about HTML comments then we will know more about conditional comments in HTML − HTML comments is not an executable statement; they are used to describe the statements. The comments in HTML has start and end tag, . These comments can be placed anywhere in the HTML page, but its better to place after DOCTYPE. HTML cannot hold nested comments, that means it cannot support comment within another comment. HTML comments are used to ...

Read More

How to add 2 hours to a JavaScript Date object?

Saurabh Jaiswal
Saurabh Jaiswal
Updated on 05-Oct-2023 29K+ Views

In this tutorial, we will learn how to add 2 Hours to a JavaScript Date object. Here we will discuss two methods which are following. Using the getTime() Method Using the setHours() Method Using the getTime( ) Method JavaScript date getTime() method returns the numeric value corresponding to the time for the specified date according to universal time. The value returned by the getTime() method is the number of milliseconds since 1 January 1970 at 00:00:00. Syntax Following the syntax for the getTime() method − Date.getTime() Approach To add 2 hours to the Date Object first, we ...

Read More

Top must-know Features of JavaScript

Rushi Javiya
Rushi Javiya
Updated on 04-Oct-2023 30K+ Views

In this tutorial, we will understand the special features of Javascript. Javascript is a popular programming language. Javascript features are flexible. Many open-source libraries are available. GitHub contains a large volume of Javascript code by developers across the world. Javascript works well in the front end and back end. Javascript has a simple syntax. Without any settings, anyone can execute Javascript programs and make them user-friendly. One individual having basic knowledge of HTML, CSS and coding can work with Javascript. Features of Javascript Scripting Javascript executes the client-side script in the browser. Interpreter The browser interprets JavaScript code. Event Handling ...

Read More
Showing 821–830 of 8,006 articles
« Prev 1 81 82 83 84 85 801 Next »
Advertisements