Home arrow HTML arrow Page 2 - HTML Fonts, Styles, and Headers
HTML

HTML Fonts, Styles, and Headers


In our last article we left off our discussion with how to work with images in HTML. In this article we will go over working with fonts, styles, and headers. There is plenty of ground to cover, so let's get to it.

Author Info:
By: James Payne
Rating: 4 stars4 stars4 stars4 stars4 stars / 11
February 27, 2008
TABLE OF CONTENTS:
  1. · HTML Fonts, Styles, and Headers
  2. · How to Set the Font of Text
  3. · How to Set the Color of Your Text
  4. · Styles in HTML/Working with CSS
  5. · Getting Inside Your Head

print this article
SEARCH DEVARTICLES

HTML Fonts, Styles, and Headers - How to Set the Font of Text
(Page 2 of 5 )

The following example demonstrates how to set the font of your text:


<html>

<body>

<h1 style="font-family:verdana">PERTY TEXT HOORAY!</h1>

<p style="font-family:wst_czech">PERTY TEXT HOORAY!</p>

<p style="font-family:webdings">PERTY TEXT HOORAY!</p>

<p style="font-family:tunga">PERTY TEXT HOORAY!</p>

<p style="font-family:impact">PERTY TEXT HOORAY!</p>

<p style="font-family:roman">PERTY TEXT HOORAY!</p>

<p style="font-family:latha">PERTY TEXT HOORAY!</p>

<p style="font-family:symbol">PERTY TEXT HOORAY!</p>

<p style="font-family:arial">PERTY TEXT HOORAY!</p>

<p style="font-family:italic">PERTY TEXT HOORAY!</p>

<p style="font-family:georgia">PERTY TEXT HOORAY!</p>

<p style="font-family:gautam">PERTY TEXT HOORAY!</p>

<p style="font-family:script">PERTY TEXT HOORAY!</p>

<p style="font-family:wst_span">PERTY TEXT HOORAY!</p>

<p style="font-family:wingdings">PERTY TEXT HOORAY!</p>

<p style="font-family:trebuchet">PERTY TEXT HOORAY!</p>

</body>

</html>

This would result in the following being displayed in the browser:

  PERTY TEXT HOORAY!

  PERTY TEXT HOORAY!

  PERTY TEXT HOORAY!

  PERTY TEXT HOORAY!

   PERTY TEXT HOORAY!

 PERTY TEXT HOORAY!

  PERTY TEXT HOORAY!

  PERTY TEXT HOORAY!

  PERTY TEXT HOORAY!

  PERTY TEXT HOORAY!

  PERTY TEXT HOORAY!

  PERTY TEXT HOORAY!

  PERTY TEXT HOORAY!

  PERTY TEXT HOORAY!

 PERTY TEXT HOORAY!

  PERTY TEXT HOORAY!

Adjusting Your Font Size

You adjust the size of your text in HTML using font-size. Here is how we do so:


<html>

<body>

<h1 style="font-size:150%">A black hole once escaped from Chuck Norris</h1> 


blog comments powered by Disqus
HTML ARTICLES

- Does HTML5 Need a Main Element?
- Revisiting the HTML5 vs. Native Debate
- HTML5: Not for Phone Apps?
- HTML5 or Native?
- Job Hunting? Freelancer.com Lists This Quart...
- HTML5 in the News
- Report: HTML5 Mobile Performance Lags
- The Top HTML5 Audio Players
- Top HTML5 Video Tutorials
- HTML5: Reasons to Learn and Use It
- More of the Top Tutorials for HTML5 Forms
- MobileAppWizard Releases HTML5 App Builder
- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials