Understanding Google’s Scroll and Highlight Feature

Understanding Google’s Scroll and Highlight Feature

In Chrome version 80, Google released a new feature that makes use of the URL parameter to scroll and highlight a certain part of a web page. It's called scroll to text fragment, and it's currently only implemented in Google Chrome and Microsoft Edge. Safari and Firefox may implement it in the future.

Have you noticed that when you click on a Google search result, Chrome sometimes automatically scroll into a part of the web page and highlight it?

In Chrome version 80, Google released a new feature that makes use of the URL parameter to scroll and highlight a certain part of a web page. It’s called scroll to text fragment, and it’s currently only implemented in Google Chrome and Microsoft Edge. Safari and Firefox may implement it in the future.

In June, Google started implementing this new feature by modifying the URL returned by search engines with a new parameter. This parameter enables browsers to scroll and highlight specific content on a web page.

Browsers have always been able to scroll into anchor elements with name attributes or any DOM elements with ids. However, anchors and ids only allow scrolling into limited parts of the page. Not all parts of web documents are addressable by named anchors or element ids.

I got curious about how this feature works, and I’m sharing what I find in this post.

Tip: Share reusable components between projects using **[Bit**](https://bit.dev/) (Github).

Bit makes it simple to share, document, and organize independent components from any project.

Use it to maximize code reuse, collaborate on independent components, and build apps that scale.

Bit supports Node, TypeScript, React, Vue, Angular, and more.

chrome programming web-development front-end-development javascript

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Top 19 Front-End Web Development Tools to Consider in 2020

In this post, we are putting curated list of top tools with key features and download links "Top 19 Front End Web Development Tools to Consider in 2020"

Top 6 Productivity Tools for Front-end Developers

Today I wanted to share with you the tools I daily use to increase my productivity as a front-end developer. 6 tools to increase your productivity as a Front-end developer.

12 Must Have Chrome Extensions For Front-End Developers

Discover the most useful extensions to make your developer life more productive. ... 12 Chrome Extensions Every Developer Must Have ... It provides a floating panel that reports on the identity of the section that the mouse is over, ... 12. IE Tab. In need to do some manual IE testing and don't want to install all kind of different ...

Top 9 Open source JavaScript frameworks for front-end web development

About a decade ago, the JavaScript developer community began to witness fierce battles emerging among JavaScript frameworks. In this article, I will introduce some of the most well-known of these frameworks. And it's important to note that these are all open source JavaScript projects, meaning that you can freely utilize them under an open source license and even contribute to the source code and communities.

Front End Web Development Project Tutorial for Beginners

In today's front end web development project tutorial we will talk about rotating shapes, images and particles with plain vanilla JavaScript on HTML canvas. Today we will build a beginner friendly particle system project together from scratch and in the process we will learn how to replace particles with images using draw image canvas 2d api method and how to make these images rotate around using 4 built in canvas methods - save, translate, rotate and restore. Let's bring our HTML canvas projects to the next level by mastering these techniques, welcome to another episode of my vanilla JavaScript creative coding series.