cursor c1 is
select *
from catalog;
htp.tableOpen(cattributes => 'border=2 width=60%' );
htp.tableRowOpen;
htp.tableHeader('Course Number');
htp.tableHeader('Course Title');
htp.tableRowClose;
for cat_rec in c1 loop
htp.tableRowOpen;
htp.tableData(cat_rec.cno);
htp.tableData(cat_rec.ctitle);
htp.tableRowClose;
end loop;
htp.tableClose;