SlideShare uma empresa Scribd logo
1 de 4
Baixar para ler offline
XHTML Tags Reference - exploring XML
XHTML Tags Reference
XHTML is a reformulation of HTML 4 as an XML 1.0 application. The stricter nature of
XML requires you to follow more rules than before when creating documents:

The most important rules for creating valid XHTML
         Include the correct DOCTYPE declaration at the beginning of the file.
         Add the attribute xmlns="http://www.w3.org/1999/xhtml" to the <html> tag.
         Close all tags: Omitting </p> is not valid anymore.
         Change all tags to lowercase: <P> becomes <p>.
         Correctly specify empty elements: <hr> becomes <hr />.
         Quote all attribute values: <p align="right">.
         Always add attribute values: <hr noshade="noshade">.
         Always use &amp; for & in attributes: <a href="?a=1&amp;b=2">.

   Document                                         Namespace
     Type                                           Description
                   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional       Transitional//EN">
                   The more forgiving, more backwards-compatible version of XHTML
                   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
Strict
                   The more rigorous, more XML-style version of XHTML
                   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN">
Frameset
                   DTD for frames


Most commonly used tags in XHTML
                                          XHTML tags
Basic tags
                           <html> Creates an XHTML document
                                      Defines the title and other information that is not part of
                           <head>
                                      the Web page itself
                           <body> Defines the Web page itself
Header tags
                                      Defines the page title, usually displayed in the browser's
                            <title>
                                      title bar
               <base href="URI" /> Defines the base URL for this page
Body attributes
         <body background="URI"> Sets the page background image.
Sets the page background color, either by name ("black"),
             <body bgcolor="rgb">
                                      or hex value ("#RRGGBB").
                 <body text="rgb"> Sets the page text color.
                 <body link="rgb"> Sets the color for hyperlinks.
                <body vlink="rgb"> Sets the color for visited (previously followed) links.
                <body alink="rgb"> Sets the color for activated (clicked) links.
Block tags
                          <p>...</p> Defines a text paragraph.
                              <br /> Defines a forced linebreak.
                       <blockquote> Defines a quoted, indented text block.
                        <h1>...<h6> Defines a level 1-6 heading.
                              <div> Defines a page section.
                             <table> Defines a tabular section.
                             <form> Defines a Web form.
                               <ol> Defines an ordered list (1, 2, 3, ...).
                               <ul> Defines an unordered, bulleted list.
                         <li>...</li> Defines a list item in an ordered or unordered list.
                               <dl> Defines a definition list, with terms and their definitions.
                               <dt> Marks the term to be defined.
                               <dd> Marks the definition of the term.
Text formatting tags
                       <code>, <tt> Defines a fixed width font, teletype typewriter style.
                  <em>, <cite>, <i> Emphasises or cites a text passage, usually using italics.
                      <strong>, <b> Uses strong, boldface font.
                                      Defines pre-formatted text, text flow not to be controlled
                              <pre>
                                      by browser.
     <font size="#" color="rgb"> Defines a new font for a text region.
Anchor tags (links)
                      <a href="url"> Defines a hyperlink to another Web page.
                             <a
                                Defines a hyperlink to an email recipient.
href="mailto:email@domain.tld">
                      <a name="$"> Defines an anchor within the page.
                      <a href="#$"> Defines a hyperlink to an anchor on the same page.
Graphics tags
                  <img src="url" /> Includes an image from the given URL.
                              <hr /> Includes a horizontal rule.
       <hr noshade="noshade" /> Includes a horizontal rule without a shadow.
Table tags
<table> Defines a table.
                                 <tr> Defines a new table row.
                                 <td> Defines a new table cell.
                                 <th> Defines a new table header cell.
Table attributes
                   <table border="#" Defines table border in pixels and width in pixels or
                    width="{#|%}"> percent.
                   <tr align="{l|c|r}"
                                       Defines horizontal and vertical alignment of a row.
                   valign="{t|m|b}">
                   <td align="{l|c|r}"
                                       Defines horizontal and vertical alignment of a cell.
                   valign="{t|m|b}">
                                      Defines how many rows or columns a cell should span,
   <td colspan="#" rowspan="#">
                                      default is 1.
            <td nowrap="nowrap"> Defines a new table cell.
Frame tags
                          <frameset> Defines a set of frames.
                      <frameset Defines rows in the set, either in pixels, percentage of
        rows="{#|%|*},{#|%|*}"> width, or spanning the rest (*).
                       <frameset Defines columns in the set, either in pixels, percentage of
         cols="{#|%|*},{#|%|*}"> width, or spanning the rest (*).
    <frame src="url" name="$" /> Defines a frame with a name and the URL for its content.
                                      Alternative information for browsers without frame
                         <noframes>
                                      support.
Form tags
                                      Defines a form which will be sent back to the action URL
               <form action="url">
                                      on submission.
                                      Defines a drop-down box, with enclosing options as
                 <select name="$">
                                      items.
              <select name="$" Defines a multi-select box with {size} entries height, with
   multiple="multiple" size="#"> enclosing options as items.
                       <option
                               Defines items in select boxes.
       name="$">value</option>
                                      Defines a multiline text field with cols times rows
     <textarea cols="#" rows=#">
                                      characters.
  <input type="text" name="$" /> Defines a single line text entry field.
            <input type="checkbox" Defines a checkbox. The text for the checkbox follows the
                       name="$" /> tag.
                                 Defines a radio button. The text for the button follows the
   <input type="radio" name="$"
                                 tag. Buttons with the same name form a group of mutual
                    value="$" />
                                 exclusive buttons.
 <input type="image" border="#" Defines a submit button using an image.
name="$" src="url" />
    <input type="submit" value="$"
                                   Defines a submit button using value as the face text.
                                />
              <input type="reset" /> Defines a button that resets the form to blank entries.
                                      Key
#         Integer number, usually pixels, sometimes characters
%         Integer percentage value, followed by a percent sign
$         String of alphanumeric characters, starting with a letter
{l|c|r} Horizontal alignment, one of "left", "center", or "right"
{t|m|b} Vertical alignment, one of "top", "middle", or "bottom"
rgb       Color, specified by name ("black") or as RGB value ("#001122")
url       URL, usually http:// or file://



Produced by Michael Claßen

URL: http://www.webreference.com/xml/reference/xhtml.html
Created: Mar 19, 2001
Revised: Mar 19, 2001

Mais conteúdo relacionado

Mais procurados

H T M L Help Sheet
H T M L  Help  SheetH T M L  Help  Sheet
H T M L Help Sheet
51 lecture
 
JSON Data Parsing in Snowflake (By Faysal Shaarani)
JSON Data Parsing in Snowflake (By Faysal Shaarani)JSON Data Parsing in Snowflake (By Faysal Shaarani)
JSON Data Parsing in Snowflake (By Faysal Shaarani)
Faysal Shaarani (MBA)
 
Ex[1].3 php db connectivity
Ex[1].3 php db connectivityEx[1].3 php db connectivity
Ex[1].3 php db connectivity
Mouli Chandira
 

Mais procurados (19)

H T M L Help Sheet
H T M L  Help  SheetH T M L  Help  Sheet
H T M L Help Sheet
 
Ruby sittin' on the Couch
Ruby sittin' on the CouchRuby sittin' on the Couch
Ruby sittin' on the Couch
 
XML-Javascript
XML-JavascriptXML-Javascript
XML-Javascript
 
Xml part3
Xml part3Xml part3
Xml part3
 
Xml part1
Xml part1  Xml part1
Xml part1
 
Xml part2
Xml part2Xml part2
Xml part2
 
Further Php
Further PhpFurther Php
Further Php
 
JSON Data Parsing in Snowflake (By Faysal Shaarani)
JSON Data Parsing in Snowflake (By Faysal Shaarani)JSON Data Parsing in Snowflake (By Faysal Shaarani)
JSON Data Parsing in Snowflake (By Faysal Shaarani)
 
HTML [Basic] --by Abdulla-al Baset
HTML [Basic] --by Abdulla-al BasetHTML [Basic] --by Abdulla-al Baset
HTML [Basic] --by Abdulla-al Baset
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
Introduction to SQL (for Chicago Booth MBA technology club)
Introduction to SQL (for Chicago Booth MBA technology club)Introduction to SQL (for Chicago Booth MBA technology club)
Introduction to SQL (for Chicago Booth MBA technology club)
 
Ex[1].3 php db connectivity
Ex[1].3 php db connectivityEx[1].3 php db connectivity
Ex[1].3 php db connectivity
 
Web Design Course: CSS lecture 2
Web Design Course: CSS  lecture 2Web Design Course: CSS  lecture 2
Web Design Course: CSS lecture 2
 
Chapter 4 Structured Query Language
Chapter 4 Structured Query LanguageChapter 4 Structured Query Language
Chapter 4 Structured Query Language
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
 
Xml part4
Xml part4Xml part4
Xml part4
 
Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1
 
Starting with JSON Path Expressions in Oracle 12.1.0.2
Starting with JSON Path Expressions in Oracle 12.1.0.2Starting with JSON Path Expressions in Oracle 12.1.0.2
Starting with JSON Path Expressions in Oracle 12.1.0.2
 

Semelhante a Xhtml tags reference

05. session 05 introducing css
05. session 05   introducing css05. session 05   introducing css
05. session 05 introducing css
Phúc Đỗ
 
html5-tag-cheat-sheet-2019.pdf
html5-tag-cheat-sheet-2019.pdfhtml5-tag-cheat-sheet-2019.pdf
html5-tag-cheat-sheet-2019.pdf
shwan it
 
Intro webtechstc
Intro webtechstcIntro webtechstc
Intro webtechstc
cmcsubho
 

Semelhante a Xhtml tags reference (20)

Html tag ref
Html tag refHtml tag ref
Html tag ref
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
WebDesigning.pptx
WebDesigning.pptxWebDesigning.pptx
WebDesigning.pptx
 
Hf html-cheat-sheet
Hf html-cheat-sheetHf html-cheat-sheet
Hf html-cheat-sheet
 
Content style in html with example - PhpGurukul Tutorials
Content style in html with example - PhpGurukul TutorialsContent style in html with example - PhpGurukul Tutorials
Content style in html with example - PhpGurukul Tutorials
 
05. session 05 introducing css
05. session 05   introducing css05. session 05   introducing css
05. session 05 introducing css
 
HTML - LinkedIn
HTML - LinkedInHTML - LinkedIn
HTML - LinkedIn
 
Html cheatsheet
Html cheatsheetHtml cheatsheet
Html cheatsheet
 
html5-tag-cheat-sheet-2019.pdf
html5-tag-cheat-sheet-2019.pdfhtml5-tag-cheat-sheet-2019.pdf
html5-tag-cheat-sheet-2019.pdf
 
Html cheat sheet
Html cheat sheetHtml cheat sheet
Html cheat sheet
 
HTML 4.0
HTML 4.0HTML 4.0
HTML 4.0
 
Html
HtmlHtml
Html
 
Table and Form HTML&CSS
Table and Form HTML&CSSTable and Form HTML&CSS
Table and Form HTML&CSS
 
html for beginners
html for beginnershtml for beginners
html for beginners
 
Intro webtechstc
Intro webtechstcIntro webtechstc
Intro webtechstc
 
Html 2
Html   2Html   2
Html 2
 
The complete-html-cheat-sheet
The complete-html-cheat-sheetThe complete-html-cheat-sheet
The complete-html-cheat-sheet
 

Mais de SMK Negeri 6 Malang

webdesign dasar : 11 list sebagai menu
webdesign dasar : 11 list sebagai menuwebdesign dasar : 11 list sebagai menu
webdesign dasar : 11 list sebagai menu
SMK Negeri 6 Malang
 

Mais de SMK Negeri 6 Malang (20)

PEMANFAATAN MEDIA KIT GENETIKA SEBAGAI UPAYA MENINGKATKAN HASIL BELAJAR BIOL...
PEMANFAATAN MEDIA KIT GENETIKA SEBAGAI  UPAYA MENINGKATKAN HASIL BELAJAR BIOL...PEMANFAATAN MEDIA KIT GENETIKA SEBAGAI  UPAYA MENINGKATKAN HASIL BELAJAR BIOL...
PEMANFAATAN MEDIA KIT GENETIKA SEBAGAI UPAYA MENINGKATKAN HASIL BELAJAR BIOL...
 
PENERAPAN MODEL PEMBELAJARAN LANGSUNG (DIRECT INSTRUCTION) DENGAN PENDEKATAN ...
PENERAPAN MODEL PEMBELAJARAN LANGSUNG (DIRECT INSTRUCTION) DENGAN PENDEKATAN ...PENERAPAN MODEL PEMBELAJARAN LANGSUNG (DIRECT INSTRUCTION) DENGAN PENDEKATAN ...
PENERAPAN MODEL PEMBELAJARAN LANGSUNG (DIRECT INSTRUCTION) DENGAN PENDEKATAN ...
 
PROBLEMATIKA PENDIDIKAN KEJURUAN DALAM REVOLUSI INDUSTRI 4.0
PROBLEMATIKA PENDIDIKAN KEJURUAN DALAM REVOLUSI INDUSTRI 4.0PROBLEMATIKA PENDIDIKAN KEJURUAN DALAM REVOLUSI INDUSTRI 4.0
PROBLEMATIKA PENDIDIKAN KEJURUAN DALAM REVOLUSI INDUSTRI 4.0
 
REGULASI EMOSI (DASAR KONSEPTUAL)
REGULASI EMOSI (DASAR KONSEPTUAL)REGULASI EMOSI (DASAR KONSEPTUAL)
REGULASI EMOSI (DASAR KONSEPTUAL)
 
PENINGKATAN KEMAMPUAN MENGHAFAL DAN MEMAHAMI AYAT-AYAT PILIHAN DALAM AL-QUR’A...
PENINGKATAN KEMAMPUAN MENGHAFAL DAN MEMAHAMI AYAT-AYAT PILIHAN DALAM AL-QUR’A...PENINGKATAN KEMAMPUAN MENGHAFAL DAN MEMAHAMI AYAT-AYAT PILIHAN DALAM AL-QUR’A...
PENINGKATAN KEMAMPUAN MENGHAFAL DAN MEMAHAMI AYAT-AYAT PILIHAN DALAM AL-QUR’A...
 
PENGGUNAAN MEDIA WAYANG PAHLAWAN NASIONAL UNTUK MENINGKATKAN HASIL BELAJAR BA...
PENGGUNAAN MEDIA WAYANG PAHLAWAN NASIONAL UNTUK MENINGKATKAN HASIL BELAJAR BA...PENGGUNAAN MEDIA WAYANG PAHLAWAN NASIONAL UNTUK MENINGKATKAN HASIL BELAJAR BA...
PENGGUNAAN MEDIA WAYANG PAHLAWAN NASIONAL UNTUK MENINGKATKAN HASIL BELAJAR BA...
 
PENINGKATAN KOMPETENSI MENGGAMBAR TEKNIK SISWA KELAS X TEKNIK INSTALASI TENAG...
PENINGKATAN KOMPETENSI MENGGAMBAR TEKNIK SISWA KELAS X TEKNIK INSTALASI TENAG...PENINGKATAN KOMPETENSI MENGGAMBAR TEKNIK SISWA KELAS X TEKNIK INSTALASI TENAG...
PENINGKATAN KOMPETENSI MENGGAMBAR TEKNIK SISWA KELAS X TEKNIK INSTALASI TENAG...
 
PENGARUH KEPEMIMPINAN DAN DIKLAT SERTA KELENGKAPAN SARANA PRAKTIK DI SMK T...
PENGARUH  KEPEMIMPINAN DAN DIKLAT SERTA KELENGKAPAN SARANA  PRAKTIK DI SMK  T...PENGARUH  KEPEMIMPINAN DAN DIKLAT SERTA KELENGKAPAN SARANA  PRAKTIK DI SMK  T...
PENGARUH KEPEMIMPINAN DAN DIKLAT SERTA KELENGKAPAN SARANA PRAKTIK DI SMK T...
 
Tutorial lanjutan java netbeans 8 : Create Read Update Delete
Tutorial lanjutan java netbeans 8 : Create Read Update DeleteTutorial lanjutan java netbeans 8 : Create Read Update Delete
Tutorial lanjutan java netbeans 8 : Create Read Update Delete
 
Lokasi halal bi halal IKB HA Kariem 2015
Lokasi halal bi halal IKB HA Kariem 2015Lokasi halal bi halal IKB HA Kariem 2015
Lokasi halal bi halal IKB HA Kariem 2015
 
Tes ujian online google drive google form
Tes ujian online google drive google formTes ujian online google drive google form
Tes ujian online google drive google form
 
kimia - penentuan bilangan oksidasi ( biloks )
kimia - penentuan bilangan oksidasi ( biloks )kimia - penentuan bilangan oksidasi ( biloks )
kimia - penentuan bilangan oksidasi ( biloks )
 
Latihan soal kimia ujian smk
Latihan soal kimia ujian smkLatihan soal kimia ujian smk
Latihan soal kimia ujian smk
 
Ki kd kimia smk kurikulum 2013
Ki kd kimia smk kurikulum 2013Ki kd kimia smk kurikulum 2013
Ki kd kimia smk kurikulum 2013
 
Struktur dan kurikulum SMK Teknik Komputer dan Informatika
Struktur dan kurikulum SMK Teknik Komputer dan InformatikaStruktur dan kurikulum SMK Teknik Komputer dan Informatika
Struktur dan kurikulum SMK Teknik Komputer dan Informatika
 
Tes tulis html dan css
Tes tulis html dan cssTes tulis html dan css
Tes tulis html dan css
 
Reuni lintas angkatan SMP Negeri 6 Malang (SPENMAL)
Reuni lintas angkatan SMP Negeri 6 Malang (SPENMAL)Reuni lintas angkatan SMP Negeri 6 Malang (SPENMAL)
Reuni lintas angkatan SMP Negeri 6 Malang (SPENMAL)
 
Soal uts pemrograman web
Soal uts pemrograman webSoal uts pemrograman web
Soal uts pemrograman web
 
webdesign dasar : 12 multimedia
webdesign dasar : 12 multimediawebdesign dasar : 12 multimedia
webdesign dasar : 12 multimedia
 
webdesign dasar : 11 list sebagai menu
webdesign dasar : 11 list sebagai menuwebdesign dasar : 11 list sebagai menu
webdesign dasar : 11 list sebagai menu
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 

Xhtml tags reference

  • 1. XHTML Tags Reference - exploring XML XHTML Tags Reference XHTML is a reformulation of HTML 4 as an XML 1.0 application. The stricter nature of XML requires you to follow more rules than before when creating documents: The most important rules for creating valid XHTML Include the correct DOCTYPE declaration at the beginning of the file. Add the attribute xmlns="http://www.w3.org/1999/xhtml" to the <html> tag. Close all tags: Omitting </p> is not valid anymore. Change all tags to lowercase: <P> becomes <p>. Correctly specify empty elements: <hr> becomes <hr />. Quote all attribute values: <p align="right">. Always add attribute values: <hr noshade="noshade">. Always use &amp; for & in attributes: <a href="?a=1&amp;b=2">. Document Namespace Type Description <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional Transitional//EN"> The more forgiving, more backwards-compatible version of XHTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"> Strict The more rigorous, more XML-style version of XHTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"> Frameset DTD for frames Most commonly used tags in XHTML XHTML tags Basic tags <html> Creates an XHTML document Defines the title and other information that is not part of <head> the Web page itself <body> Defines the Web page itself Header tags Defines the page title, usually displayed in the browser's <title> title bar <base href="URI" /> Defines the base URL for this page Body attributes <body background="URI"> Sets the page background image.
  • 2. Sets the page background color, either by name ("black"), <body bgcolor="rgb"> or hex value ("#RRGGBB"). <body text="rgb"> Sets the page text color. <body link="rgb"> Sets the color for hyperlinks. <body vlink="rgb"> Sets the color for visited (previously followed) links. <body alink="rgb"> Sets the color for activated (clicked) links. Block tags <p>...</p> Defines a text paragraph. <br /> Defines a forced linebreak. <blockquote> Defines a quoted, indented text block. <h1>...<h6> Defines a level 1-6 heading. <div> Defines a page section. <table> Defines a tabular section. <form> Defines a Web form. <ol> Defines an ordered list (1, 2, 3, ...). <ul> Defines an unordered, bulleted list. <li>...</li> Defines a list item in an ordered or unordered list. <dl> Defines a definition list, with terms and their definitions. <dt> Marks the term to be defined. <dd> Marks the definition of the term. Text formatting tags <code>, <tt> Defines a fixed width font, teletype typewriter style. <em>, <cite>, <i> Emphasises or cites a text passage, usually using italics. <strong>, <b> Uses strong, boldface font. Defines pre-formatted text, text flow not to be controlled <pre> by browser. <font size="#" color="rgb"> Defines a new font for a text region. Anchor tags (links) <a href="url"> Defines a hyperlink to another Web page. <a Defines a hyperlink to an email recipient. href="mailto:email@domain.tld"> <a name="$"> Defines an anchor within the page. <a href="#$"> Defines a hyperlink to an anchor on the same page. Graphics tags <img src="url" /> Includes an image from the given URL. <hr /> Includes a horizontal rule. <hr noshade="noshade" /> Includes a horizontal rule without a shadow. Table tags
  • 3. <table> Defines a table. <tr> Defines a new table row. <td> Defines a new table cell. <th> Defines a new table header cell. Table attributes <table border="#" Defines table border in pixels and width in pixels or width="{#|%}"> percent. <tr align="{l|c|r}" Defines horizontal and vertical alignment of a row. valign="{t|m|b}"> <td align="{l|c|r}" Defines horizontal and vertical alignment of a cell. valign="{t|m|b}"> Defines how many rows or columns a cell should span, <td colspan="#" rowspan="#"> default is 1. <td nowrap="nowrap"> Defines a new table cell. Frame tags <frameset> Defines a set of frames. <frameset Defines rows in the set, either in pixels, percentage of rows="{#|%|*},{#|%|*}"> width, or spanning the rest (*). <frameset Defines columns in the set, either in pixels, percentage of cols="{#|%|*},{#|%|*}"> width, or spanning the rest (*). <frame src="url" name="$" /> Defines a frame with a name and the URL for its content. Alternative information for browsers without frame <noframes> support. Form tags Defines a form which will be sent back to the action URL <form action="url"> on submission. Defines a drop-down box, with enclosing options as <select name="$"> items. <select name="$" Defines a multi-select box with {size} entries height, with multiple="multiple" size="#"> enclosing options as items. <option Defines items in select boxes. name="$">value</option> Defines a multiline text field with cols times rows <textarea cols="#" rows=#"> characters. <input type="text" name="$" /> Defines a single line text entry field. <input type="checkbox" Defines a checkbox. The text for the checkbox follows the name="$" /> tag. Defines a radio button. The text for the button follows the <input type="radio" name="$" tag. Buttons with the same name form a group of mutual value="$" /> exclusive buttons. <input type="image" border="#" Defines a submit button using an image.
  • 4. name="$" src="url" /> <input type="submit" value="$" Defines a submit button using value as the face text. /> <input type="reset" /> Defines a button that resets the form to blank entries. Key # Integer number, usually pixels, sometimes characters % Integer percentage value, followed by a percent sign $ String of alphanumeric characters, starting with a letter {l|c|r} Horizontal alignment, one of "left", "center", or "right" {t|m|b} Vertical alignment, one of "top", "middle", or "bottom" rgb Color, specified by name ("black") or as RGB value ("#001122") url URL, usually http:// or file:// Produced by Michael Claßen URL: http://www.webreference.com/xml/reference/xhtml.html Created: Mar 19, 2001 Revised: Mar 19, 2001