You can use HTML code but you have to put it in a special section of the Google Document.
Go into your profile on Google Doc. Highlight your entire profile. Then right click and choose Cut. In the toolbar, choose Edit then Edit HTML. Paste what you just cut into the box that appears. Click on the Update (or Save) button at the bottom of the box. Go to the Share tab and click on View As Web Page (preview) to see what your profile will look like as a normal Internet web page. If all looks good, republish your document to make sure that the newest changes to the document will be applied.