How can I convert htm to PDF for my assignment?

HTM pages usually break because the converter can’t find the images and CSS sitting next to the file. If it’s a single file, open it in a browser and print to PDF, set margins to default and turn off headers. If it’s a folder, zip it first or try a converter that accepts a zip. Are you on Windows or Mac?