Objek Kepala DOM HTML
Objek Kepala
Objek THead mewakili elemen <thead> HTML.
Mengakses Objek THhead
Anda dapat mengakses elemen <thead> dengan menggunakan getElementById():
Contoh
var x = document.getElementById("myTHead");
Buat Objek Kepala
Anda dapat membuat elemen <thead> dengan menggunakan metode document.createElement() :
Contoh
var x = document.createElement("THEAD");
Properti Objek Kepala
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the horizontal alignment of the content inside the thead element |
ch | Not supported in HTML5. Sets or returns an alignment character inside the thead element |
chOff | Not supported in HTML5. Sets or returns the horizontal offset of the ch property |
vAlign | Not supported in HTML5. Use style.verticalAlign instead. Sets or returns the vertical alignment of the content within a thead element |
Properti dan Acara Standar
Objek THead juga mendukung properti dan event standar .
Halaman Terkait
Tutorial HTML: Tabel HTML
Referensi HTML: HTML <thead> tag