Web Programming HTML
Element HTML Basic Tag HTML Format HTML Entiti HTML Links HTML Frame HTML Table HTML List HTML Form HTML Image HTML Background HTML Outline
Element HTML Basic Tag HTML Format HTML Entiti HTML Links HTML Frame HTML Table HTML List HTML Form HTML Image HTML Background HTML Outline
Element HTML Start tag Content End tag <p> This is a paragraph </p> <a href= default.htm > This is a link </a> HTML Element Syntax HTML element diawali dengan start tag HTML element diakhiri dengan end tag Isi element adalah semua yang berada diantara start tag dan end tag Beberapa HTML element tidak memiliki content Beberapa HTML element tidak memiliki end tag
Empty HTML element <br/> <img> <frame>
Example <html> <body> <p>this is my first paragraph</p> </body> </html> Nested Element Start tag Content End tag <html> <body> <body> <p>this is my first paragraph</p> </body> <p>this is my first paragraph</p> </html> </body> <p> This is my first paragraph </p>
Element HTML Basic Tag HTML Format HTML Entiti HTML Links HTML Frame HTML Table HTML List HTML Form HTML Image HTML Background HTML Outline
Basic Tag HTML Headings HTML Paragraph HTML Links HTML Images
HTML Headings Menggunakan tag <h1> sampai <h6> <h1>this is a heading</h1> <h2>this is a heading</h2> <h3>this is a heading</h3>
HTML Paragraph Menggunakan tag <p> <p>this is a paragraph</p> <p>this is another paragraph</p>
HTML Links Menggunakan tag <a> <a href="http://www.w3schools.com">this is a link</a>
HTML Images Menggunakan tag <img> <img src="constr4.gif" width="144" height="50" />
Element HTML Basic Tag HTML Format HTML Entiti HTML Links HTML Frame HTML Table HTML List HTML Form HTML Image HTML Background HTML Outline
Format HTML Text Formatting Computer Output Tags Citation, Quotation, dan Definition Tags
Text Formatting Tag <b> <big> <em> <i> <small> <strong> <sub> <sup> <ins> <del> Fungsi Bold text Big text Emphasized text Italic text Small text Strong text Subscript text Superscript text Inserted text Deleted text
Computer Output Tags Tag <code> <kbd> <samp> <tt> <var> <pre> Fungsi Computer code text Keyboard text Sample computer code Teletype text Variable Preformatted text
Citation, Quotation, dan Definition Tags Tag <abbr> <acronym> <address> <bdo> <blockquote> <q> <cite> <dfn> Fungsi Abbreviation Acronym Alamat Text direction Long quotation Short quotation Citation Definition term
Element HTML Basic Tag HTML Format HTML Entiti HTML Links HTML Frame HTML Table HTML List HTML Form HTML Image HTML Background HTML Outline
Entiti HTML Hasil Deskripsi Entity Name Entity Number Non-breaking space < Less than < < > Greater than > > & Ampersand & & Cent Pound Yen Euro Section Copyright Registered trademark
Element HTML Basic Tag HTML Format HTML Entiti HTML Links HTML Frame HTML Table HTML List HTML Form HTML Image HTML Background HTML Outline
Links HTML Hyperlinks Anchor
Hyperlinks Menunjuk ke sebuah resource di web Resource bisa berupa: halaman html, gambar, suara, film, dsb <a href= url >Link text</a>
Anchor Menunjuk ke bagian dari halaman HTML Biasanya untuk penulisan daftar isi Penandaan <a name= bab1 >Bab 1. Pendahuluan</a> Dari halaman yang sama <a href= #bab1 >Lihat Bab 1</a> Dari halaman yang berbeda <a href= http://nama.server.com/nama.html#bab1 >Lihat Bab 1</a>
Element HTML Basic Tag HTML Format HTML Entiti HTML Links HTML Frame HTML Table HTML List HTML Form HTML Image HTML Background HTML Outline
Frame HTML Pros Bisa menampilkan lebih dari 1 halaman web pada browser window yang sama Setiap halaman web disebut frame, dan tiap frame bersifat independen Cons Halaman web yang harus dimaintain lebih banyak Sulit untuk nge-print keseluruhan halaman web
Example <frameset frameborder=0 cols="120,*"> <frame src="tryhtml_contents.htm"> <frame src="frame_a.htm" name="showframe"> </frameset>
Element HTML Basic Tag HTML Format HTML Entiti HTML Links HTML Frame HTML Table HTML List HTML Form HTML Image HTML Background HTML Outline
My Table Table HTML Table heading Caption Table data Table row
Example <table width="100%" border="1"> <caption>my Table</caption> <tr> <th>isbn</th> <th>title</th> <th>price</th> </tr> <tr> <td>3476896</td> <td>my first HTML</td> <td>$53</td> </tr> <tr> <td>2489604</td> <td>my first CSS</td> <td>$47</td> </tr> </table>
Element HTML Basic Tag HTML Format HTML Entiti HTML Links HTML Frame HTML Table HTML List HTML Form HTML Image HTML Background HTML Outline
List HTML Ordered List Unordered List Definition List
Ordered List Numbered List Letters List Lowercase Letters List Roman Number List
Unordered List Disc bullet list Circle bullet list Square bullet list
Definition List Bukan list item List yang berisi istilah-istilah dan definisinya
Element HTML Basic Tag HTML Format HTML Entiti HTML Links HTML Frame HTML Table HTML List HTML Form HTML Image HTML Background HTML Outline
Form HTML Memungkinkan user untuk memberikan input Berupa: Textfield Password textfiled Text area Radio button Check box Drop down box
Element HTML Basic Tag HTML Format HTML Entiti HTML Links HTML Frame HTML Table HTML List HTML Form HTML Image HTML Background HTML Outline
Image HTML <img src= namafile.gif alt= gambar bebek >
Element HTML Basic Tag HTML Format HTML Entiti HTML Links HTML Frame HTML Table HTML List HTML Form HTML Image HTML Background HTML Outline
Background HTML Menggunakan attribut background <table height="100" width="150" background="http://www.tizag.com/pics/htmlt/background.jpg" > <tr> <td>this table has a background image</td> </tr> </table>
Fin