初心者向けHTML入門の決定版:タグHTML

body要素・bodyタグとは

Facebook にシェア
このエントリーをはてなブックマークに追加
Tweet

文書の本体であることを示すbody要素

HTML文書の構造は、html要素の内部に head要素、body要素の2つが含まれる形となっています。
head要素内に記述された内容は、画面に表示されません。body要素内部に記述された内容が、ブラウザの画面上に表示されることになります。

<html>
    <head>
        <title>はじめてのHTML</title>
    </head>
    <body>
        <h1>HTMLタイトル</h1>
        <p>はじめまして!みなさま!</p>
    </body>
</html>

現在、文書の視覚表現においてはスタイルシートの使用が勧められています。
body要素の視覚表現に関する属性の使用は非推奨です。
css のプロパティを使うようにしましょう。

属性

background = uri
推奨しない。背景画像を指すURI。
text = color
推奨しない。テキストの前景色を設定する。
link = color
推奨しない。未訪問リンクを示すテキスト色を設定する。
vlink = color
推奨しない。 既に訪問したリンクを示すテキスト色を設定する。
alink = color
推奨しない。 選択中リンクを示すテキスト色を設定する。

HTML要素(タグ)一覧

a  abbr  acronym  address  applet  area  b  base  basefont  bdo  big  blockquote  body  br  button  caption  center  cite  code  col  colgroup  dd  del  dfn  dir  div  dl  dt  em  fieldset  font  form  frame  frameset  h1 - h6  head  hr  html  i  iframe  img  input  ins  isindex  kbd  label  legend  li  link  map  menu  meta  noframes  noscript  object  ol  optgroup  option  p  param  pre  q  s  samp  script  select  small  span  strike  strong  style  sub  sup  table  tbody  td  textarea  tfoot  th  thead  title  tr  tt  u  ul  var  <!-- --> 

ブロックレベル要素一覧

p  h1-h6  ul  ol  dir  menu  pre  dl  div  center  noscript  noframes  blockquote  form  isindex  hr  table  fieldset  address 

インライン(テキストレベル)要素一覧

フォントスタイルに関するもの
tt  i  b  big  small
フレーズ・句に関するもの
em  strong  dfn  code  samp  kbd  var  cite  abbr  acronym
特別なもの
a  img  object  br  script  map  q  sub  sup  span  bdo
フォームに関するもの
input  select  textarea  label  button 

  • sitemap
  • 運営者情報
  • 免責事項
designed by ホームページ制作のササエル
Copyright © tagHTML All Rights Reserved.