Front End Scripts Articles

Page 2 of 47

How to block a website in your web browsers (Chrome and Internet Explorer)

Johar Ali
Johar Ali
Updated on 15-Mar-2026 418 Views

To block a website on web browsers like Google Chrome, Firefox, and Internet Explorer in a Windows system, you can modify the system's hosts file. This method works by redirecting website requests to your local machine. How It Works The hosts file acts as a local DNS lookup table. When you add an entry like 127.0.0.1 website.com, your system redirects that website to your local machine (127.0.0.1), effectively blocking access. Step-by-Step Instructions Step 1: Open Notepad as an administrator by right-clicking on Notepad and selecting Run as Administrator. Step 2: In Notepad, click File → ...

Read More

How to set the right margin of an element with JavaScript?

Jai Janardhan
Jai Janardhan
Updated on 15-Mar-2026 672 Views

Use the marginRight property in JavaScript to set the right margin of an element. This property accepts values in pixels, percentages, or other CSS units. Syntax element.style.marginRight = "value"; Example #myID { border: 2px solid #000000; background-color: #f0f0f0; padding: 10px; } ...

Read More

How to refresh a page in Firefox?

Amit Sharma
Amit Sharma
Updated on 15-Mar-2026 619 Views

To refresh a page in a web browser like Firefox means reloading the page. It's quite easy to refresh a page using several different methods. Method 1: Using the Refresh Button Open the web page which you want to refresh. The refresh button is located on the top right corner of the Firefox web browser - it's the circular arrow icon. https://example.com ...

Read More

How to change Firefox Browser theme?

Johar Ali
Johar Ali
Updated on 15-Mar-2026 443 Views

Firefox web browser is widely used and loved by many users around the world. You can easily change the Firefox Browser theme to customize its appearance and make it look more awesome. Let's see how to reach the Firefox theme section and change the theme: Step 1: Open Firefox Menu Go to the Firefox browser menu by clicking the three horizontal lines (hamburger menu) in the top-right corner. From the dropdown menu, click on "Add-ons and themes": ...

Read More

How to Delete Bookmarks in your Browser (Firefox, Chrome)

Rahul Sharma
Rahul Sharma
Updated on 15-Mar-2026 337 Views

Bookmarks in web browsers allow you to save and quickly access your favorite websites. You can create a bookmark by visiting a page and pressing Ctrl+D, or by clicking the star icon in the address bar. However, over time you may want to delete bookmarks that are no longer needed. This tutorial will show you how to delete bookmarks in both Firefox and Chrome browsers using different methods. Method 1: Delete from Address Bar The quickest way to delete a bookmark is directly from the address bar when visiting the bookmarked page: In Firefox ...

Read More

How to Validate your Website Code?

Rahul Sharma
Rahul Sharma
Updated on 15-Mar-2026 355 Views

Website development involves writing code in HTML, CSS, JavaScript and your chosen platform. Your website may look correct and responsive, but it could have internal validation issues that affect SEO, accessibility, and browser compatibility. The W3C (World Wide Web Consortium) provides several free tools to validate your website code and ensure it meets web standards. HTML5 Validation Validator.nu is the recommended validator for modern HTML5 documents. It also validates ARIA, SVG 1.1, and MathML 2.0. This tool checks your complete document and identifies where the markup doesn't follow the specified doctype. ...

Read More

What is the difference between an acronym and abbr tags?

mkotla
mkotla
Updated on 15-Mar-2026 818 Views

In HTML, both acronym and abbreviation tags are used to mark shortened forms of words or phrases, but they have key differences in support and usage. An acronym is a word formed by taking the first letters of each word in a phrase (like "NASA" from "National Aeronautics and Space Administration"). An abbreviation is any shortened form of a word or phrase (like "Mr." for "Mister"). The Acronym Tag (Deprecated) The tag was used in older HTML versions to mark acronyms specifically. However, it is deprecated in HTML5 and should not be used in modern web ...

Read More

What are the essential tags for an HTML Document?

Shakira Thasleem
Shakira Thasleem
Updated on 15-Mar-2026 2K+ Views

HTML (HyperText Markup Language) is the standard markup language for creating web pages and web applications. Understanding the essential HTML tags is crucial for building properly structured documents that browsers can interpret correctly. An HTML tag consists of three components: an opening tag that marks the start, content that displays in the browser, and a closing tag marked with a forward slash like . All HTML tags should be written in lowercase for best practices. Note: Some HTML tags are self-closing and don't require a closing tag, such as and . Every HTML document requires four ...

Read More

How to use the tag to define a relationship to an external resource?

Johar Ali
Johar Ali
Updated on 15-Mar-2026 316 Views

The tag is used in HTML to define a relationship to an external resource. It is most commonly used to link external style sheets to HTML documents. The tag is placed inside the section and is a self-closing tag, meaning it does not require a closing tag. Syntax Key Attributes The tag uses several important attributes: rel - Specifies the relationship between the current document and the linked resource href - Specifies the URL of the external resource type - Specifies the media type of the linked resource ...

Read More

How to call a JavaScript function on a click event?

Saurabh Jaiswal
Saurabh Jaiswal
Updated on 15-Mar-2026 25K+ Views

To call a function on click event in JavaScript, you can use either the addEventListener method or the onclick event attribute. The addEventListener method is a general way to attach an event handler to a DOM element, and it allows you to specify the event and the callback function to be called when the event occurs. The onclick attribute is a specific event attribute that allows you to specify a JavaScript function to be called when the element is clicked. Both methods allow you to specify a function to be called when the element is clicked, but the addEventListener ...

Read More
Showing 11–20 of 465 articles
« Prev 1 2 3 4 5 47 Next »
Advertisements