LoginSignup
10
10

More than 5 years have passed since last update.

dataURIでHTMLを手っ取り早く確認する

Posted at

教えてもらったのでメモ。

ブラウザのアドレスバーに

data:text/html,<h1>hello html</h1>

てな感じで打つとhtmlが表示される。

data URI schemeになってれば基本的になんでも表示できるのでbase64エンコードした画像とかも

data:image/png;base64, base64エンコード文字列

をアドレスバーに貼り付ければ表示できる

10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10