Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

HTML入門 ~html要素~

Last updated at Posted at 2023-08-29

html要素

html要素はHTML文書で最も上位の要素。
他の要素はすべて、この要素の子孫になる。

content model

head要素
body要素

属性

lang属性(必須)
xmlns属性

lang属性

自然言語を指定することで、言語によって適切なフォントを選択したり、引用符、スクリーンリーダーの音声合成エンジンが選択されたり、翻訳元の言語が設定されたりする。

属性値には、言語タグを指定する。(日本なら。jaやja-JP)

<!DOCTYPE html>

<html lang="ja">
    <head>...</head>
    <body>...</body>
</html>

所感

lang属性がスクリーンリーダーとか翻訳言語を決めてたんだな。
アクセシビリティ的にもちゃんと指定しないとな。

0
0
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

Qiita Advent Calendar is held!

Qiita Advent Calendar is an article posting event where you post articles by filling a calendar 🎅

Some calendars come with gifts and some gifts are drawn from all calendars 👀

Please tie the article to your calendar and let's enjoy Christmas together!

0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?