Blogger Widgets

Senin, 14 Maret 2016

Pertemuan Ketiga

Macam-macam Tag dasar HTML

    Macam-macam Tag dasar pada HTML :

  1. Tag Heading

    Penulisan HTML : <hn>Test</hn>

    n = 1/2/3/4/5/6

    Contoh :

      Test1

      Kode =

      Test2

      Kode =

      Test3

      Kode =

      Test4

      Kode =
      Test5
      Kode =
      Test6
      Kode =



  2. Tag Paragraf

    Penulisan HTML : <p>Teks</p>

    Contoh :


    HTML merupakan singkatan dari

    HyperText Markup Language.



    Kode =



  3. Tag Atribut

     a. Teks Tebal

         Penulisan HTML : <b>Teks</b>

         Contoh :    Ini huruf Tebal              Kode =


     b. Teks Miring

         Penulisan HTML : <i>Teks</i>

         Contoh :    Ini huruf Miring              Kode =


     c. Teks Bergaris bawah

         Penulisan HTML : <u>Teks</u>

         Contoh : Ini huruf Bergaris bawah     Kode =


     d. Teks Atas

         Penulisan HTML : <sup>Teks</sup>

         Contoh :   X2 dibaca X kuadrat.        Kode =


     d. Teks Bawah

         Penulisan HTML : <sub>Teks</sub>

         Contoh :   X2+1y                              Kode =


     e. Pindah Baris

         Penulisan HTML : <br>Teks atau <br/>Teks

         Contoh :



         Baris1
         Baris2
         Kode =


     f. Memberikan Garis Batas

         Penulisan HTML : <hr>atau <hr/>


  4. Tag Font

     a. Font

         Penulisan HTML : <font face="x" size "y">Teks</font>

         x = Jenis Huruf (Times New Roman,Arial,Algerian,dll)

         y = Ukuran Huruf

         Contoh :



       Ini Times New Roman          Kode =

       Ini Arial              Kode =

       Ini Algerian          Kode =

     b. Warna

         Penulisan HTML : <font color= "warna">Teks</font>

         warna = warna huruf (red,blue,green,yellow,dsb) atau menggunakan kode warna Hex

         Contoh :

         Ini warna Magenta     Kode =



  5. Tag Enumerasi


         Penulisan HTML : <li>item</li>



  6. Tag List

     a. Ordered List

         Penulisan HTML : <ol>...</ol> atau <ol type ="x">...</ol>

        x = diganti dengan type pengurutan (1,A,a,I,i)

         Contoh :


      Menu Minuman
    1. Es Teh
    2. Es Kelapa
    3. Es Jeruk
    4. Air Putih

    Kode =



    b. UnOrdered List

         Penulisan HTML : <ul>...</ul> atau <ul type ="y">...</ul>

        y = diganti dengan simbol pengurutan (disc,circle,square)

         Contoh :


      Menu Makanan
    • Nasi Goreng
    • Mie Ayam
    • Soto Ayam
    • Capcay

    Kode =


    Contoh list bersarang :

    1. HTML dan CSS Dasar
      • Element, Tag, dan Atribut
        1. Element
        2. Tag
        3. Atribut
      • Struktur Dokumen HTML
      • Dasar CSS
        1. Selector
        2. Property
    2. PHP


    Kode =
    <ol>
          <li>HTML dan CSS Dasar</li>
                <ul type = "circle">
                   <li>Element, Tag, dan Atribut
                         <ol>
                            <li> Element</li>
                            <li> Tag</li>
                            <li> Atribut</li>
                         </ol>
                   </li>
                   <li>Struktur Dokumen HTML</li>
                   <li>Dasar CSS
                         <ol>
                            <li> Selector</li>
                            <li> Property</li>
                         </ol>
                   </li>
                </ul>
          <li>PHP</li>
    </ol>

Tidak ada komentar:

Posting Komentar