A href JavaScript | Using JavaScript inside the A Link Tag

A href have JavaScript is a way of running JavaScript instead of following a link. And making a link does absolutely nothing when clicked (unless JS events are bound to it). javascript: tells the browser going to write JavaScript code Or Or onclick JS A href Attribute with JavaScript example HTML example code: Use javascript: Read More…


Anchor tag onclick call JavaScript function | Example Code

First, you have to block href call URL if don’t want to open the tab/window or other operations. You can call a function in 2 ways using the href or onclick attribute in the HTML tag. Function inside href JavaScript link href=#” onclick Anchor tag onclick call JavaScript function Examples HTML example code: Or Output: Read More…


HTML address tag | Use of address tag in HTML (contact information)

HTML address tag in HTML used to defines the contact information for the author/owner of a document/company or an article. In the address tag, you can show the email address link, Others URL, office address, phone number, social media handle on the HTML web page. Note: The text inside the <address> tag will display in Read More…


<br> , <br/>, or <br /> in HTML Horizontal line | difference between <br> and <br/> tag

The HTML <br> tag inserts a single line break. A <br> tag is an empty tag which means that it has no end tag like other HTML tags(<p> tag, <div> tag, etc). HTML <br> Tag :- It inserts a single line break . It is an empty tag without any end tag. Here are few question on br tag can confused you Read More…


HTML button tag | link, onClick, style, color, size, Code example

HTML button is very important for any website, without it users can’t use functionalists of the website. With HTML Button Tag (Element) you can create a button. Another way is using the input tag to create a button. Syntax: <button name=”name”> HTML button tag Example:- Creating button in HTML very easy, just use <button> tag. Read More…


HTML table tag | style, attributes, colspan, border, width, padding examples

HTML Table tag is used for present content in tabular format. With that, you can easily quickly and easily lookup values. A table structured set of data made up of rows and columns. An HTML table is defined like that- <table> with <tr> and <td> tags. Where <tr> tag is represent row and <td> tag Read More…


HTML a tag | html anchor tag | name, link, href, target, onClick

HTML a tag OR HTML anchor tag is used to create a hyperlink. Which used to link one page to another page or another location within the same webpage. The <a> element is used to create a link, and its most important attribute is the href attribute, which indicates the link’s destination (target). Anchor Tag Read More…


HTML div tag |Class, id | Align, center, top, right | Width, border

HTML div tag also knows as the Divison tag. HTML <div> tag is very useful and used for multiple purpose. Div gives a more modular structure to the webpage and more organized. <div> tag used in HTML mostly for a division like navigation bar, text, images, header, footer, etc. Some definitions will define <div> as Read More…