このページには最新のブラウザ(SharedArrayBuffer対応)が必要です。Chrome、Edge、Firefox、Safariを最新バージョンに更新してください。
リンク
- リンク をクリックすると別のページへ移動します。
<a>タグ(aは アンカー を意味します)を使用します。- ウェブアドレスは
hrefに入れます:<a href="...">。
English
<a href="https://example.com">Visit Example</a>
href は属性
href="..."は 属性 です — 开きタグ内の追加情報です。<a>と</a>の 間 のテキストが、読者が見てクリックする部分です。https://から始まる完全なアドレスを使用します。
English
<p>Need facts? <a href="https://wikipedia.org">Look it up</a> now.</p>
よくあるミス
- リンクには
hrefが必要です。 target="_blank"を使うと、リンクを新しいタブで開けます。
あなたも試してみよう
- リンクは単独で存在することも、文の 中 に置くこともできます。
- 下にそれぞれ1つずつ作ってみましょう。
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Add a link to https://example.com with the words Visit Example.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Turn the words look it up into a link to https://wikipedia.org, without breaking the sentence.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Make the link to https://example.com open in a new tab by adding target="_blank" to the <a> tag.