Below is the code i write to get the html str of my result. Need to Bold the html header : def gen_table(Header,Tuple,HeaderColor='#c8f98e',WeekendColor='#e9fcd0',Weekendflag=1,bcolor=[],opt="center"):
        html_str=''
        found_list = []
        color1 = "white"
        if Tuple:
                if Header:
                        html_str+='\n<table border=1>\n'
                        if type(Header)==list:
                                html_str+='<tr bgcolor="'+str(HeaderColor)+'">\n'
                                for value in Header:
                                        html_str+='<th align="'+opt+'">'+str(value)+'</th>\n'
                                html_str+='</tr>\n'
                        else:
                                for value in Header:
                                        html_str+='<tr bgcolor="'+str(HeaderColor)+'" align="'+opt+'">\n'
                                        for col in value:
                                                html_str+=tbody(col,b='True')
                                        html_str+='</tr>\n'
                dic = find(Tuple)
                for rows in Tuple:
                        if Weekendflag:
                                if type(rows[0])==datetime.date and rows[0].weekday() in (6,5,) :
                                        html_str+="<tr bgcolor='"+str(WeekendColor)+"' align='"+opt+"'>\n"
                                else:
                                        html_str+='\n<tr bgcolor="'+str(color1)+'" align="'+opt+'">\n'
                        else:
                                html_str+='\n<tr bgcolor="'+str(color1)+'" align="'+opt+'">\n'
                        for i in range(len(rows)):

                                if len(rows)<=1:
                                        html_str+="<b><td colspan=11 rowspan=1 bgcolor='"+str(WeekendColor)+"'>%s</td></b>\n"%rows[i]
                                elif dic.has_key(rows[i]) and rows[i] not in found_list:
                                        found_list.append(rows[i])
                                        html_str+="<td colspan=1 rowspan=%s>%s</td>\n" %(dic[rows[i]],rows[i])
                                elif rows[i] not in found_list:
                                        html_str+=tbody(rows[i],HeaderColor,bcolor,i)
                        html_str+='</tr>\n'
                html_str+='</table>'

        else:
                html_str+='---NO DATA---'





Here i need to get the header alone in bold. I added <b> </b> in those part. But i cant.. Could anyone help me here.