how to add a div tag in moodle custom page?

how to add a div tag in moodle custom page?

by Amal k -
Number of replies: 1

Hi,


I am using moodle 2.9. And i want to add a div tag in custom moodle page. I have tried the following code . but not working.

echo html_writer::tag('div','sfsdfsdf',array('id'='test'));

and also where can i  write  styles for this div tag

Average of ratings: -