Found 10483 Articles for Web Development

How can I stop a video with JavaScript in Youtube?

Shubham Vora
Updated on 02-Aug-2022 09:20:06

10K+ Views

In this tutorial, we will learn to stop a video with JavaScript on YouTube. Using the ‘iframe’ HTML element, we can easily embed the YouTube videos on our application. It is a video player in HTML 5 and has many attributes that users can use according to their needs. In some cases, it happens that you want to create a custom pause or stop button for the embedded YouTube video. Customized buttons are always pretty rather than default ones, making UI pretty. So, we will learn two different methods to create the custom stop button for the YouTube videos. However, ... Read More

Why does void in JavaScript require an argument?

mkotla
Updated on 16-Jun-2020 13:16:19

186 Views

The void operator is used to evaluate the given expression. After that, it returns undefined. It obtains the undefined primitive value, using void(0) i.e. 0 as an argument.The void(0) can be used with hyperlinks to obtain the undefined primitive value, ExampleLive Demo           Understanding JavaScript void(0)               Click me not once, but twice.     We used JavaScript:void(0) above to prevent the page from reloading when the button is clicked the first time.The code will only work when the button will be clicked twice. If it is clicked once, ... Read More

Why does the JavaScript void statement evaluate an expression?

Giri Raju
Updated on 10-Jan-2020 10:25:15

111 Views

The JavaScript void returns an expression to remove the side effect and return the undefined primitive value. This side effect may occur while inserting expression in a web page.Let’s see an example of the void. The void(0) can be used with hyperlinks to obtain the undefined primitive value, ExampleLive Demo                    Understanding JavaScript void(0)                 Click me not once, but twice.     We used JavaScript:void(0) above to prevent the page from reloading when the button is clicked the first time.The code will ... Read More

How to create HTML link that doesnt follow the link?

Sreemaha
Updated on 16-Jun-2020 13:15:46

417 Views

Use “nofollow” to create HTML link that doesn’t follow the link. In HTML, while adding an external link, you can set the attribute “rel” as “nofollow” or “dofollow” −The “nofollow” value tells the search engine − “Don't follow links on this page" or "Don't follow this specific link."Another WebsiteWhile using “nofollow”, the search engine won’t transfer anchor text across these link.

How to create a bookmark link in HTML?

Lokesh Badavath
Updated on 18-Nov-2022 09:50:45

15K+ Views

A bookmark is helpful when you want to remember the web page for future reference. You can access that bookmark at any time to view the web page again. We use HTML links to create bookmarks, so that we can jump to specific parts of a web page. Bookmarks can be useful if a web page is long. When we click on the link, the page will scroll down or up to the location with the bookmark specified on the web page. Syntax First, we should use the id attribute to create a bookmark text… Then, add a link ... Read More

How to use an image as a link in HTML?

Lokesh Badavath
Updated on 29-Aug-2023 07:02:36

347K+ Views

We can add image as a link and other HTML elements as a link. A link is a connection from one Web page to another web page. We can add page links to a web page. HTML links are hyperlinks. The tag defines a hyperlink and used to link from one page to another. The href attribute is used with the tag, which indicates the link's destination. To make page links in an HTML page, use the and tags, with href attribute used to define the links. We should use the … tags inside … tags. Syntax ... Read More

How to use an image in a webpage?

Srinivas Gorla
Updated on 15-Jun-2020 08:24:47

1K+ Views

To use an image on a webpage, use the tag. The tag allows you to add image source, alt, width, height, etc. The alt is the alternate text attribute, which is text that is visible when the image fails to load.The following are the attributes −AttributeDescriptionAltThe alternate text for the imageHeightThe height of the imageIsmapThe image as a server-side image-mapLongdescThe URL to a detailed description of an imageSrcThe URL of an imageUsemapThe image as a client-side image-mapWidthThe width of the imageJust keep in mind the tag has no end tag.ExampleYou can try to run the following code to ... Read More

How to change the target of a link in HTML?

Lokesh Badavath
Updated on 18-Nov-2022 09:27:11

9K+ Views

We use the target attribute of the … tag, to change the target value of the link. The target attribute can be used to open any link in a new tab, current tab and so on. _blank − link will open in a new tab. _self − link will open in the current tab. _parent − link will open in a parent frame. _top − link will open in the top frame. Syntax Following is the syntax to change the target of a link in HTML. Link text… Example Following is the example program to change the ... Read More

How to remove underline from a link in HTML?

Lokesh Badavath
Updated on 02-Sep-2023 12:27:12

53K+ Views

We use inline style attribute with the CSS property text-decoration to remove underline from a specified link in HTML. Syntax Following is the syntax to remove underline from a link in HTML. HTML tutorial Example Following is the example program to remove underline from a link in HTML. DOCTYPE html> HTML-HyperText Markup Language HTML tutorial Example DOCTYPE html> instagram login instagram login Example Following is another example program to remove underline from a link in HTML. DOCTYPE html> HTML Text Decoration About Our Team comprises of programmers, writers, and analysts.

How to Change the Color of Links in HTML?

Lokesh Badavath
Updated on 02-Dec-2024 15:27:53

41K+ Views

A link is a connection from one Web page to another web page. We can add page links to a web page. HTML links are hyperlinks. The tag defines a hyperlink and used to link from one page to another. The href attribute is used with the anchor tag, which indicates the link's destination. To make page links in an HTML page, use the and tags, with href attribute used to define the links. We should use the … tags inside … tags. The link text is visible. Clicking on the link text, will navigate to the ... Read More

Advertisements