<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="css/main.css"> <title>画像の上に文字を重ねる方法</title> </head> <body> <div class="box"> <img src="./image/bg.jpeg" alt=""> <p>文字が入ります。</p> </div> </body> </html> /* ◎リセットCSS */ /* html5doctor.com Reset Stylesheet v1.6.1 Last Updated: 2010-09-17 Aut
![【簡単】画像の上に、文字を重ねる方法【HTMLとCSS】 - Webis Tech LABO.](https://cdn-ak-scissors.b.st-hatena.com/image/square/fced2cdce10721a516dea6552dcfcdcaaa417500/height=288;version=1;width=512/https%3A%2F%2Flabo.webis.co.jp%2Fwp-content%2Fuploads%2F2022%2F01%2Fandroid-touch-icon.png)