XHTMLとHTMLの違い


翻訳:Linyupark
You can prepare yourself for XHTML by starting to write strite HTML.あなたは厳格なHTMLコードを書くことによってあなたのXHMLの旅の準備を始めることができます。
--------------------------------------------------
How To Get Ready For XHTMLはどのようにXHTMLの準備をしますか?XHTML is the next generation of HTML、but it will of course take some before browsers and other software products are ready for.XHTMLはHTMLの次世代言語ですが、当然ながら新しいブラウザと他の関連ソフト製品が現れる前に、一時的に普及することができます。
In the meantime there re re re some importent things you can do prepare yourself for it.As You will learn from this torial,XHTML is not very different from HTML 4.01,so bring your code up 4.01 standes good.ort.ort.com.good.ort。その間に準備します。このチュートリアルから学ぶことができるように、XHTMLはHTML 4.01と大差がないので、あなたのコードをHTML 4.01の標準に適合するように書き換えるのはとても良いスタートです。私達の完全なHTML 4.01参考はこの問題を解決するのに役立ちます。
In addition,You shuld start NOW to write your HTML code in lowercase letters,and NEVER make the bad habit of skyping end tags like the。また、今からあなたのHTMLコードを小文字で書き始めます。そして、以前のようにタグを飛び越えないようにしてください。
Happy coding楽しいコード
--------------------------------------------------
The Most Important Differences:非常に重要な違い:XHTML elemens must be properly ness tedXHTML要素は合理的にネストされていなければならない。XHTML documents mbe well-formedXHTML文書はフォーマットが正しくなければならない。
--------------------------------------------------
Elements Must Be Properly Nested要素は合理的にIn HTML some elemens can be improperly neted within each other like thisを入れ子しなければならない。HTMLにはいくつかの要素が正しい相互入れ子を使用しなくてもいい。
<b><i>This text is bold and italic<b>In XHTML all elexents must be properly ness ted within each other like this:XHTMLのすべての要素に合理的に嵌め合う必要があるというように:
<b><i>This text is bold and italic<i>Note:A common mistake in ness ted lists、is to forget the inside list must be within a like ement、like this:リストの入れ子の時によくミスをします。
<ul> 
  • Coffee
  •   <リ>チーム   
           
    • Black tea
    •      
    • Green tea</li>   
     
  • Milk
  • This is corect:これが正しいです。
    <ul> 
  • Coffee
  •   <リ>チーム   
           
    • Black tea
    •      
    • Green tea</li>   
       
  • Milk
  • Notice that we have inserted acode example.この正確なコードの例では、
      の後に
    • ラベルを付けたことに注意します。
      --------------------------------------------------
      Dockments Must Be Well-formed文書フォーマットに合格しなければならないAll XHTML elemens must be neted within the<>root element.All other element can have sub.Sub element ement in pairs and corectelement theでマークされています。にあります。他のすべてのラベルは自分のサブラベルを持つことができます。親ラベルの内にあるサブラベルも対にして正しく入れ子して使用しなければなりません。ウェブページの基本構造は以下の通りです。
      <>
      --------------------------------------------------
      Tag Names Must Be In Lower Caseタグ名は、小文字This is because XHTML documents are XML appliations.XML is case-sensitive.Tags like
      ar interpreted as different tagsでなければならない。
      This is wrong:これは間違いです。
      <BODY><P>This_a paragraph

      This is corect:これは正しいです。
      <body><p>This_a paragraph


      --------------------------------------------------
      All XHTML Elements Must Be CloosedのすべてのXHTML要素はNon-empty elements must have endをオフにしなければなりません。非空の要素は必ずクローズラベルが必要です。
      This is wrong:これは間違いです。
      <p>This is_a paragraph<p>This_is_another paragraphh This is corect:正しいです。
      <p>This is a paragraph

      This is Another paragraph


      --------------------------------------------------
      Empty Elements Must Also Be Cloosed空の要素もEmpty elements must eigher have endを閉じる必要があります。空の要素も一つのエンドラベルまたはスタートラベルが必要です。
      This is wrong:これは間違いです。
      This is a break
      Here cores a horizontal rule:
      Here''s an image
      src=「happy.gif」alt=「Happy face」This is corect:これは正しいです。
      This is a break

      Here cores a horizontal rule:
      Here''s an mageIMPORTANT ComptibilityNote:互換性に注意するポイント:To make your XHTML comptible with todays's  />, and this:. あなたのXHTMLが現在のブラウザと互換できるようにするためには、記号の前に特殊なスペースを入れなければなりません。  />とこんな感じです  />