Tes Mobile Header, Footer : Elemen Baru HTML5 - Purwana.Net
  Media Belajar membuat Software Aplikasi, Website, & Game untuk Pemula...

Post Top Ad

Rabu, 13 Desember 2017

Tes Mobile Header, Footer : Elemen Baru HTML5

Style Header Footer


section {
    border: 1px solid red;   
}

section header {
    background-color: yellow;   
}

section footer {
    background-color: aqua;   
}

Html body Header Footer



<section>
    <header>This is a header</header>
    <p>This is a section paragraph</p>
    <footer>This is a footer</footer>
</section>

Hasilnya akan tampak seperti ini :
This is a header
This is a section paragraph
This is a footer

Post Top Ad