use contents attribute as id also