- Skill level:
Other People Are Reading
Wrap a div tag around the text you want to edit. This allows you to change the font size of a specific area in your Web page without distorting the layout with a global font size change. The code below creates a div named "myDiv": <div id="myDiv"> My website text </div>
Save the file and open the page in your Web browser. Test the new code by clicking the button. The font size increases in the div tag.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for