インライン要素
a要素 (anchor element)
<a>
要素は、HTML文書内でハイパーリンク(ハイパーテキストリンク)を作成するための要素です。ハイパーリンクは他のWebページ、ファイル、位置、またはリソースにジャンプするための手段として使用されます。
<!--文字リンク--> <a href="https://example.com">Visit Example.com</a> <!--画像リンク--> <a href="https://example.com"> <img src="example.jpg" alt="Example Image"> </a> <!--相対的なリンク--> <a href="/about">About Us</a> <!--絶対アドレスなリンク--> <a href="https://example.com" title="Visit Example.com">Example.com</a> <!--絶対アドレスを別ウィンドウで開く--> <a href="https://example.com" target="_blank">Open in New Window</a> <!--メールアドレスのリンク--> <a href="mailto:info@example.com">Contact Us</a>