Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I insert a lightning bolt symbol for Google's AMP page format?

If you visit the Accelerated Mobile Pages HTML specification, you will see that the <html> tag has a lightning bolt before the closing bracket:

<html ⚡>

Is there a keyboard shortcut I can use or configure to insert this?

like image 647
Connor Gurney Avatar asked Jun 27 '17 19:06

Connor Gurney


People also ask

What is the lightning icon in Google?

What is that little lightning bolt appearing in some of your mobile Google searches including social media? It signifies that the website is part of Google's Accelerated Mobile Pages (AMP) Project.

What does lightning bolt mean next to Google?

The Meaning behind the Lightning Bolt Icon This is done so the content can be accessed, loaded, and delivered very quickly for mobile users. The lightning bolt is meant to indicate speed of course.


3 Answers

While the docs said you could just use <html amp>, I'm assuming you asked this question cause you'd rather use the symbol. In that case, the easiest route would be to highlight and copy the symbol and then paste it into your code. The other option I know of is to use an Alt Code to type the symbol into your code. The alt code for the lightning symbol is Alt + 26A1 Hold alt and type the code into the number pad on your keyboard and it should work.

like image 196
Shane1470 Avatar answered Nov 15 '22 02:11

Shane1470


It seems there is/was no easy way to type alt codes on Mac (if i hold option and type 26A1 I get this: ™ˆ̄¡.

It seems MacOS has a nice emoji shortcut (Ctrl + Cmd + Space) in which you can find and select the lightning bolt. https://support.apple.com/en-gw/ht201586

Works for me in a text editor.

like image 25
Phil Gibbins Avatar answered Nov 15 '22 04:11

Phil Gibbins


In newer versions of Windows 10, press win-. (that is, the windows key and the period key) to open the emoji picker. Then, start typing lightning bolt and choose the ⚡ by pressing enter. (Technically, the symbol is called high voltage so if you type high v and press enter the ⚡ emoji should appear)

like image 36
Elijah Mock Avatar answered Nov 15 '22 02:11

Elijah Mock