What's best way to add formatting to code generated HTML?

Hi Guys,

I am working on a simple prototype which allows user to enter multiple date/times, edit them and then submit in one go.

By using a datepicker + a dropdown + a button + a paragraph text I was able to use some simple code to submit multiple date/times and keep appending it to the paragraph text as shown far below. Later I plan to add another submit button to submit all entered info to a database, plus a “remote” button next to each date/time row to allow it to be removed (haven’t work out how to do this remove button yet…).

Just like to know as I am currently appending the text to the “.html” part of the paragraph text, what’s the best/recommended way to add formatting to these code generated content. Can I use same style sheet as the page (how?), or do I just insert my own little css section inside the “.html” section as well, or does it have to be a full HTML with HTML/HEAD/BODY tags?

Any other suggestion, recommendations or experience sharing also welcomed.

Cheers

Hi,

The beginning of the $w.Text API has a discussion of text formatting including rules, techniques, and methods. Perhaps some user have some creative tips and hints on this subject.

Yisrael