Join Joseph Lowery for an in-depth discussion in this video Selecting the font, part of HTML5 Projects: Photo Card Titles.
For this one we're going to be listening to the text font form element that you…may recall is a select list with a variety of fonts as options.…Now I'm just going to go ahead and copy the first one here and then paste it…down below it, and let's change the element ID from textBox to textFont, and likewise,…the function that is called from textBoxChanged to textFontChanged.…Next, we'll need to define the textFontChanged function.…
This code is quite similar to what we use for the textBoxChanged.…
Check out the rest of the HTML5 Projects series.
- Setting up a caption submission form
- Creating basic text entry fields
- Integrating color pickers in the form
- Applying text effects like shadows and gradients