SlideShare a Scribd company logo
1 of 4
Download to read offline
1 | Buletindo ● Download Gratis Buletin Komputer Terbaru di : http://komputer.buletindo.com
                                        Edisi 010 | Web Development | Rabu, 26 Agustus 2009




        Buletindo
   BULETIN KOMPUTER ● Jurnal Pembelajaran Komputer ● www.buletindo.com


                                   Dasar-dasar HTML
                                       Oleh : Zaenal Arifin
World Wide Web (WWW) atau web saat ini menjadi layanan internet terpopuler. Melalui web,
beragam informasi, data, transaksi bisnis, hingga catatan harian seseorang dapat ditayangkan
dan diakses oleh semua orang di seluruh dunia. Untuk membuat dan mengelola website atau
web blog, hal pertama yang harus dipahami adalah mengenai teknik membuat halaman web.
Pembuatan halaman web tentunya tidak terlepas dari bahasa pengkodean web, yaitu HTML
(Hyper Text Markup Language).

Apa itu HTML ?                     Mengenal Dokumen HTML
Ingin membuat halaman web ?        Dokumen HTML adalah file halaman web. Jadi misalnya jika
Ingin mengelola website            Anda membuka halaman Beranda, lalu berpindah ke
sendiri ? Pelajarilah HTML.        halaman Kontak, maka sebenarnya Anda sedang mengakses
                                   file HTML Beranda lalu berpindah ke file HTML Kontak.
Hyper Text Markup Language
(HTML) adalah bahasa               Cara paling mudah untuk mengetahui kode HTML sebuah
pengkodean yang digunakan          halaman web adalah dengan perintah View > Source / Page
untuk membuat sebuah               Source pada web browser. Di sana akan ditampilkan kode
halaman web dan                    sumber HTML yang digunakan untuk menyusun halaman web
menampilkan berbagai               yang tampil di browser. Berikut contoh kode HTML halaman
informasi di sebuah program        web mesin pencari Google.
web browser Internet.
HTML sebenarnya bukanlah
bahasa pemrograman,
melainkan sebuah standar
tata cara penyajian teks dan
materi pendukungnya agar
dapat tersaji secara
terstruktur di halaman web.
Meskipun dewasa ini sudah
banyak program bantu untuk
membuat halaman web secara
cepat dan praktis, namun
untuk kebutuhan tertentu,
penguasaan dasar-dasar
pengkodean HTML tetap
diperlukan.
2 | Buletindo ● Download Gratis Buletin Komputer Terbaru di : http://komputer.buletindo.com
Ekstensi file HTML adalah .htm atau .html.
Dokumen HTML dapat disusun secara manual
melalui program pengolah teks seperti
Notepad, atau menggunakan program bantu
Visual HTML Editor seperti Microsoft
Frontpage atau Dreamweaver.
Pengkodean HTML tidak terlepas dari
penggunaan tag. Tag adalah standar frase
tertentu yang digunakan untuk mengatur
halaman web.
Tag dipakai untuk mengatur apa saja yang
ada di dalamnya. Oleh sebab itu, tag
biasanya berupa sepasang frase yang disebut
dengan tag pembuka dan tag penutup.
Sebagai contoh, untuk mengatur judul               Melayout Teks
halaman web, digunakan tag pembuka                 Untuk memformat atau mengatur layout teks
<TITLE> dan diakhiri dengan tag </TITLE>.          di halaman web, digunakan tag-tag sebagai
Sebagai catatan, penggunaan huruf kapital          berikut :
atau huruf normal sama saja, tidak
berpengaruh pada hasil halaman web.                •    <H1>, <H2>, hingga <H6> : untuk
                                                        mengatur judul dan sub judul artikel di
Perhatikan contoh struktur dokumen HTML                 halaman web.
sebagai berikut :
                                                   •    <P> : untuk menetapkan sekelompok
                                                        kalimat menjadi sebuah paragraf.
                                                   •    <BR /> : untuk memenggal teks ke baris
                                                        selanjutnya.
                                                   •    <HR /> : memberikan garis pemisah.
                                                   •    <B> : untuk memberi efek cetak tebal
                                                        pada huruf.
                                                   •    <I> : untuk memberi efek cetak miring
                                                        pada huruf.
•   Dokumen HTML diawali tag <HTML> dan
                                                   Silakan susun kode berikut di Notepad untuk
    diakhiri tag </HTML>.
                                                   mencoba tag-tag di atas. Simpan sebagai
•   Judul halaman dan beberapa informasi           teks.html dan lihat hasilnya di web browser.
    mengenai dokumen HTML berada di                <HTML>
    antara tag <HEAD>...</HEAD>.
                                                   <HEAD>
•   Isi  halaman    web    yang  nantinya
    ditampilkan di web browser berada di           <TITLE>Mengatur Teks</TITLE>
    antara tag <BODY>...</BODY>.                   </HEAD>
Coba susun kode contoh di atas menggunakan         <BODY>
program Notepad. Simpan dengan Save As,
pada File name isi latihan.html dan pada           <H1>Judul Artikel</H1>
Save as type pastikan terpilih All Files (*.*).    <P>Ini isi paragraf pertama. Paragraf ini ada di bawah judul
Jalankan pada web browser, maka akan               artikel.</P>
muncul hasilnya seperti berikut.

      BULETIN BEBAS DIGANDAKAN DAN DIDISTRIBUSIKAN KEMBALI UNTUK KEPENTINGAN NON KOMERSIAL
Dasar-dasar HTML | 3
<P>Ini isi paragraf kedua. Paragraf ini ada di bawah       Membuat Daftar
paragraf pertama.</P>
                                                           Anda bisa mengatur beberapa baris teks
<H2>Ini Subjudul</H2>                                      menjadi sebuah daftar, baik daftar berurut
<H3>Ini Sub Subjudul</H3>                                  maupun daftar tidak berurut.

<P>Ini teks sebelum dipenggal.                             Daftar Berurut
<BR />                                                     Daftar berurut adalah daftar yang disajikan
Ini teks setelah dipenggal.</P>                            dalam urutan angka. Tag yang dipakai adalah
                                                           tag <ol> dan <li>. Penulisannya :
<HR />
                                                           <ol>
<P>Ini teks di bawah garis.</P>
                                                           <li>Ini baris nomor satu</li>
<P><B>Ini Cetak         Tebal</B>   dan   <I>Ini   Cetak
Miring</I></P>                                             <li>Ini baris nomor dua</li>

</BODY>                                                    </ol>

</HTML>                                                    Jika dijalankan, maka akan tampil menjadi :
                                                           1.      Ini baris nomor satu
                                                           2.      Ini baris nomor dua

                                                           Daftar Tidak Berurut
                                                           Daftar tidak berurut adalah daftar yang
                                                           disajikan dalam list bullet. Tag yang dipakai
                                                           adalah tag <ul> dan <li>. Penulisannya :
                                                           <ul>
                                                           <li>Ini item</li>
                                                           <li>Ini item lainnya</li>
                                                           </ul>
                                                           Jika dijalankan, maka akan tampil menjadi :
                                                           •       Ini item
                                                           •       Ini item lainnya

                                                           Membuat Link
                                                           Untuk menyisipkan link, digunakan tag <a>.
                                                           Susunan sederhananya adalah :
                                                           <a href=”URL”>Teks</a>

Dapat Anda lihat, tag <H1>, <H2>, dan <H3>                 Contoh penulisannya :
secara otomatis ditampilkan dengan ukuran                  <a href=”http://www.buletindo.com”>Ini Link Menuju ke
huruf yang berbeda. Anda juga dapat melihat                Buletindo</a>
perbedaan perpindahan baris kata yang
dipenggal dengan tag <BR />. Perhatikan juga               Hasilnya, sebaris kata “Ini Link Menuju ke
hasil penggunaan tag garis pemisah, tag                    Buletindo” akan berubah menjadi objek link
cetak tebal dan tag cetak miring.                          yang siap di-klik pengunjung.


         DILARANG MENGUBAH SEBAGIAN ATAU SELURUH ISI BULETIN TANPA IJIN TERTULIS DARI BULETINDO
4 | Buletindo ● Download Gratis Buletin Komputer Terbaru di : http://komputer.buletindo.com
                                                                       Membuat Tabel
Menyisipkan Gambar
                                                                       Untuk membuat tabel, diguna-
Untuk menyisipkan gambar, digunakan tag <img>. Susunan                 kan tag <table>. Selain itu, di-
sederhananya adalah :                                                  perlukan tag <tr> untuk mem-
<img src=”URL GAMBAR” />                                               buat baris tabel dan tag <td>
                                                                       untuk membagi baris tabel
Contoh penulisannya :                                                  menjadi    beberapa     kolom.
<img src="http://www.google.co.id/intl/id_id/images/logo.gif" />       Contoh penulisannya :

Hasilnya, gambar logo Google akan tampil di browser.                   <table border="1">
                                                                       <tr>
Gambar juga bisa dijadikan sebuah link, caranya cukup
menempatkan tag <img> di antara tag <a> :                              <td>baris 1, kolom 1</td>
<a href=”URL”><img src=”URL GAMBAR” /></a>                             <td>baris 1, kolom 2</td>
                                                                       </tr>
Mengenal Atribut
                                                                       <tr>
Beberapa tag HTML menggunakan atribut. Atribut
merupakan informasi tambahan yang disisipkan ke sebuah                 <td>baris 2, kolom 1</td>
tag pembuka. Susunannya adalah namaatribut=”nilai”.                    <td>baris 2, kolom 2</td>
Jika Anda perhatikan kembali, contoh tag <a> dan <img> di              </tr>
atas disertai atribut :
                                                                       </table>
href=http://www.buletindo.com
                                                                       Hasilnya akan diperoleh tabel
src=" http://www.google.co.id/intl/id_id/images/logo.gif               seperti berikut :
Atribut href dipakai untuk merujuk URL target link,
sedangkan atribut src dipakai untuk merujuk URL target
gambar yang akan ditampilkan. Tag <a> dan <img> juga
dapat diberi beberapa atribut lainnya.
Sebagian besar tag HTML dapat disisipi atribut. Ada                    Pada contoh, dipakai atribut
beberapa atribut yang bisa diterapkan di berbagai tag,                 border=”1” untuk mengatur
namun ada juga atribut yang hanya bisa diterapkan ke tag               ketebalan garis batas tabel.
tertentu, seperti tag <a>dan <img> di atas.                            Anda dapat mengisikan nilai 0
                                                                       jika tidak ingin menampilkan
Atribut antara lain lazim dipakai untuk memformat style                garis tabel, atau mengisikan
teks dan gambar, mengatur warna, dan mengatur tabel.                   nilai yang lebih besar untuk
style="background-color:red" (mengatur warna latar menjadi merah)      mempertebal garis tabel.
style="font-size:12px" (mengatur ukuran hurud menjadi 12 piksel)
style="font-family:Verdana" (mengatur teks menggunakan font Verdana)       Buletindo
style="text-align:center" (mengatur teks menjadi rata tengah)             www.buletindo.com
                                                                                                 Kontak:
Contoh pemakaiannya, coba sisipkan atribut style pada tag                            Jl. Abimanyu VI / 22
<BODY> agar warna halaman menjadi merah :                                              Semarang - 50131
<BODY style="background-color:red">                                                  Telp. (024) 3560597
                                                                                                Redaksi:
Sebagai referensi, daftar lengkap tag HTML dan atribut yang                     redaksi @ buletindo.com
dapat menyertainya bisa Anda lihat di :                                              Kerjasama & Iklan:
                                                                              marketing @ buletindo.com
http://www.w3schools.com/tags/default.asp
        BULETIN BEBAS DIGANDAKAN DAN DIDISTRIBUSIKAN KEMBALI UNTUK KEPENTINGAN NON KOMERSIAL

More Related Content

Featured

Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming LanguageSimplilearn
 
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...Palo Alto Software
 
9 Tips for a Work-free Vacation
9 Tips for a Work-free Vacation9 Tips for a Work-free Vacation
9 Tips for a Work-free VacationWeekdone.com
 

Featured (20)

Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
 
9 Tips for a Work-free Vacation
9 Tips for a Work-free Vacation9 Tips for a Work-free Vacation
9 Tips for a Work-free Vacation
 

19803226 dasar-dasar-html

  • 1. 1 | Buletindo ● Download Gratis Buletin Komputer Terbaru di : http://komputer.buletindo.com Edisi 010 | Web Development | Rabu, 26 Agustus 2009 Buletindo BULETIN KOMPUTER ● Jurnal Pembelajaran Komputer ● www.buletindo.com Dasar-dasar HTML Oleh : Zaenal Arifin World Wide Web (WWW) atau web saat ini menjadi layanan internet terpopuler. Melalui web, beragam informasi, data, transaksi bisnis, hingga catatan harian seseorang dapat ditayangkan dan diakses oleh semua orang di seluruh dunia. Untuk membuat dan mengelola website atau web blog, hal pertama yang harus dipahami adalah mengenai teknik membuat halaman web. Pembuatan halaman web tentunya tidak terlepas dari bahasa pengkodean web, yaitu HTML (Hyper Text Markup Language). Apa itu HTML ? Mengenal Dokumen HTML Ingin membuat halaman web ? Dokumen HTML adalah file halaman web. Jadi misalnya jika Ingin mengelola website Anda membuka halaman Beranda, lalu berpindah ke sendiri ? Pelajarilah HTML. halaman Kontak, maka sebenarnya Anda sedang mengakses file HTML Beranda lalu berpindah ke file HTML Kontak. Hyper Text Markup Language (HTML) adalah bahasa Cara paling mudah untuk mengetahui kode HTML sebuah pengkodean yang digunakan halaman web adalah dengan perintah View > Source / Page untuk membuat sebuah Source pada web browser. Di sana akan ditampilkan kode halaman web dan sumber HTML yang digunakan untuk menyusun halaman web menampilkan berbagai yang tampil di browser. Berikut contoh kode HTML halaman informasi di sebuah program web mesin pencari Google. web browser Internet. HTML sebenarnya bukanlah bahasa pemrograman, melainkan sebuah standar tata cara penyajian teks dan materi pendukungnya agar dapat tersaji secara terstruktur di halaman web. Meskipun dewasa ini sudah banyak program bantu untuk membuat halaman web secara cepat dan praktis, namun untuk kebutuhan tertentu, penguasaan dasar-dasar pengkodean HTML tetap diperlukan.
  • 2. 2 | Buletindo ● Download Gratis Buletin Komputer Terbaru di : http://komputer.buletindo.com Ekstensi file HTML adalah .htm atau .html. Dokumen HTML dapat disusun secara manual melalui program pengolah teks seperti Notepad, atau menggunakan program bantu Visual HTML Editor seperti Microsoft Frontpage atau Dreamweaver. Pengkodean HTML tidak terlepas dari penggunaan tag. Tag adalah standar frase tertentu yang digunakan untuk mengatur halaman web. Tag dipakai untuk mengatur apa saja yang ada di dalamnya. Oleh sebab itu, tag biasanya berupa sepasang frase yang disebut dengan tag pembuka dan tag penutup. Sebagai contoh, untuk mengatur judul Melayout Teks halaman web, digunakan tag pembuka Untuk memformat atau mengatur layout teks <TITLE> dan diakhiri dengan tag </TITLE>. di halaman web, digunakan tag-tag sebagai Sebagai catatan, penggunaan huruf kapital berikut : atau huruf normal sama saja, tidak berpengaruh pada hasil halaman web. • <H1>, <H2>, hingga <H6> : untuk mengatur judul dan sub judul artikel di Perhatikan contoh struktur dokumen HTML halaman web. sebagai berikut : • <P> : untuk menetapkan sekelompok kalimat menjadi sebuah paragraf. • <BR /> : untuk memenggal teks ke baris selanjutnya. • <HR /> : memberikan garis pemisah. • <B> : untuk memberi efek cetak tebal pada huruf. • <I> : untuk memberi efek cetak miring pada huruf. • Dokumen HTML diawali tag <HTML> dan Silakan susun kode berikut di Notepad untuk diakhiri tag </HTML>. mencoba tag-tag di atas. Simpan sebagai • Judul halaman dan beberapa informasi teks.html dan lihat hasilnya di web browser. mengenai dokumen HTML berada di <HTML> antara tag <HEAD>...</HEAD>. <HEAD> • Isi halaman web yang nantinya ditampilkan di web browser berada di <TITLE>Mengatur Teks</TITLE> antara tag <BODY>...</BODY>. </HEAD> Coba susun kode contoh di atas menggunakan <BODY> program Notepad. Simpan dengan Save As, pada File name isi latihan.html dan pada <H1>Judul Artikel</H1> Save as type pastikan terpilih All Files (*.*). <P>Ini isi paragraf pertama. Paragraf ini ada di bawah judul Jalankan pada web browser, maka akan artikel.</P> muncul hasilnya seperti berikut. BULETIN BEBAS DIGANDAKAN DAN DIDISTRIBUSIKAN KEMBALI UNTUK KEPENTINGAN NON KOMERSIAL
  • 3. Dasar-dasar HTML | 3 <P>Ini isi paragraf kedua. Paragraf ini ada di bawah Membuat Daftar paragraf pertama.</P> Anda bisa mengatur beberapa baris teks <H2>Ini Subjudul</H2> menjadi sebuah daftar, baik daftar berurut <H3>Ini Sub Subjudul</H3> maupun daftar tidak berurut. <P>Ini teks sebelum dipenggal. Daftar Berurut <BR /> Daftar berurut adalah daftar yang disajikan Ini teks setelah dipenggal.</P> dalam urutan angka. Tag yang dipakai adalah tag <ol> dan <li>. Penulisannya : <HR /> <ol> <P>Ini teks di bawah garis.</P> <li>Ini baris nomor satu</li> <P><B>Ini Cetak Tebal</B> dan <I>Ini Cetak Miring</I></P> <li>Ini baris nomor dua</li> </BODY> </ol> </HTML> Jika dijalankan, maka akan tampil menjadi : 1. Ini baris nomor satu 2. Ini baris nomor dua Daftar Tidak Berurut Daftar tidak berurut adalah daftar yang disajikan dalam list bullet. Tag yang dipakai adalah tag <ul> dan <li>. Penulisannya : <ul> <li>Ini item</li> <li>Ini item lainnya</li> </ul> Jika dijalankan, maka akan tampil menjadi : • Ini item • Ini item lainnya Membuat Link Untuk menyisipkan link, digunakan tag <a>. Susunan sederhananya adalah : <a href=”URL”>Teks</a> Dapat Anda lihat, tag <H1>, <H2>, dan <H3> Contoh penulisannya : secara otomatis ditampilkan dengan ukuran <a href=”http://www.buletindo.com”>Ini Link Menuju ke huruf yang berbeda. Anda juga dapat melihat Buletindo</a> perbedaan perpindahan baris kata yang dipenggal dengan tag <BR />. Perhatikan juga Hasilnya, sebaris kata “Ini Link Menuju ke hasil penggunaan tag garis pemisah, tag Buletindo” akan berubah menjadi objek link cetak tebal dan tag cetak miring. yang siap di-klik pengunjung. DILARANG MENGUBAH SEBAGIAN ATAU SELURUH ISI BULETIN TANPA IJIN TERTULIS DARI BULETINDO
  • 4. 4 | Buletindo ● Download Gratis Buletin Komputer Terbaru di : http://komputer.buletindo.com Membuat Tabel Menyisipkan Gambar Untuk membuat tabel, diguna- Untuk menyisipkan gambar, digunakan tag <img>. Susunan kan tag <table>. Selain itu, di- sederhananya adalah : perlukan tag <tr> untuk mem- <img src=”URL GAMBAR” /> buat baris tabel dan tag <td> untuk membagi baris tabel Contoh penulisannya : menjadi beberapa kolom. <img src="http://www.google.co.id/intl/id_id/images/logo.gif" /> Contoh penulisannya : Hasilnya, gambar logo Google akan tampil di browser. <table border="1"> <tr> Gambar juga bisa dijadikan sebuah link, caranya cukup menempatkan tag <img> di antara tag <a> : <td>baris 1, kolom 1</td> <a href=”URL”><img src=”URL GAMBAR” /></a> <td>baris 1, kolom 2</td> </tr> Mengenal Atribut <tr> Beberapa tag HTML menggunakan atribut. Atribut merupakan informasi tambahan yang disisipkan ke sebuah <td>baris 2, kolom 1</td> tag pembuka. Susunannya adalah namaatribut=”nilai”. <td>baris 2, kolom 2</td> Jika Anda perhatikan kembali, contoh tag <a> dan <img> di </tr> atas disertai atribut : </table> href=http://www.buletindo.com Hasilnya akan diperoleh tabel src=" http://www.google.co.id/intl/id_id/images/logo.gif seperti berikut : Atribut href dipakai untuk merujuk URL target link, sedangkan atribut src dipakai untuk merujuk URL target gambar yang akan ditampilkan. Tag <a> dan <img> juga dapat diberi beberapa atribut lainnya. Sebagian besar tag HTML dapat disisipi atribut. Ada Pada contoh, dipakai atribut beberapa atribut yang bisa diterapkan di berbagai tag, border=”1” untuk mengatur namun ada juga atribut yang hanya bisa diterapkan ke tag ketebalan garis batas tabel. tertentu, seperti tag <a>dan <img> di atas. Anda dapat mengisikan nilai 0 jika tidak ingin menampilkan Atribut antara lain lazim dipakai untuk memformat style garis tabel, atau mengisikan teks dan gambar, mengatur warna, dan mengatur tabel. nilai yang lebih besar untuk style="background-color:red" (mengatur warna latar menjadi merah) mempertebal garis tabel. style="font-size:12px" (mengatur ukuran hurud menjadi 12 piksel) style="font-family:Verdana" (mengatur teks menggunakan font Verdana) Buletindo style="text-align:center" (mengatur teks menjadi rata tengah) www.buletindo.com Kontak: Contoh pemakaiannya, coba sisipkan atribut style pada tag Jl. Abimanyu VI / 22 <BODY> agar warna halaman menjadi merah : Semarang - 50131 <BODY style="background-color:red"> Telp. (024) 3560597 Redaksi: Sebagai referensi, daftar lengkap tag HTML dan atribut yang redaksi @ buletindo.com dapat menyertainya bisa Anda lihat di : Kerjasama & Iklan: marketing @ buletindo.com http://www.w3schools.com/tags/default.asp BULETIN BEBAS DIGANDAKAN DAN DIDISTRIBUSIKAN KEMBALI UNTUK KEPENTINGAN NON KOMERSIAL