HTML Font Style List

HTML Font Style List thumbnail
Size, style and other font properties can have a major impact on the look and function of your page.

HyperText Markup Language (HTML) is a coding standard that is used to define the elements of a website's layout and content. Text can be manipulated in a variety of ways, changing the font style that is displayed in a browser. These are called the font properties. Some of these are native to HTML and others are implemented through the use of Cascading Style Sheets (CSS).

  1. Font Family

    • Fonts of a similar genre are grouped together in a font family for ease of use. Each font family contains an ordered list of fonts. When a font family is set, a browser will try to display the page using the first available font from the list that the computer has in its font library. A font family can be manually defined. Five generic font families are standard in HTML: serif, sans-serif, cursive, fantasy and monospace. An example in HTML would be <p style="font-family: cursive;">A Cursive Font Example</p>

    Font Style

    • The font style property is used to set a font as normal (normal) or italicized (italic or oblique). A font in its normal capacity would be untouched and regular. An italicized font can exist in two forms: italic or oblique. An italic font is one that has been created in an italicized (slanted) form. An oblique font is one that has been electronically slanted to give the appearance of italicized font. Coding for italic style will result in text that displays in an italic font if available; otherwise it will resort to an oblique font. An example in HTML would be <p style="font-style: oblique;">An Oblique Font Example</p>

    Font Size

    • The property of font size changes how big or small the font is displayed on the browser. There are four main methods for defining font size: Absolute Size, Relative Size, Length and Percentage. Absolute sizes are defined on a scale from xx-small to xx-large as follows: xx-small, x-small, small, medium, large, x-large and xx-large. Relative sizes will change the font relative to its current size, using the options larger or smaller. Length allows for a size to be set in the following format: Xpt, where X is the point size. A percentage value will enlarge or decrease the font relative to its current size by the defined amount, defined as Y%, where Y is the percentage. An example in HTML would be <p style="font-size:xx-small;">An XX-Small Font Example</p>

    Font Weight

    • The use of font weight defines how bold the displayed font will be. There are three categories: standard, relative and absolute values. Standard choices are normal and bold. Relative options are bolder and lighter, and will increase or decrease a font's weight respectively. The absolute values are defined on a sliding scale between 100 and 900 in increments of 100. On this scale, normal is defined as a value of 400 and bold a value of 700. An example in HTML would be <p style="font-weight: bold;">A Bold Font Example</p>

Related Searches:

References

  • Photo Credit Comstock/Comstock/Getty Images

Comments

You May Also Like

  • HTML Font Effects

    HTML Font Effects. HTML, which stands for hypertext markup language, is the fundamental structure of a Web page. While different sites may...

  • What Are Standard PC Fonts?

    What Are Standard PC Fonts?. Programs such as graphics editors or word processors allow the user to pick from a variety of...

  • How to Echo Variables Using PHP

    The echo function (or more precisely a language construct) is one of the most frequently used functions in PHP. All programming languages...

  • Different Font Types in HTML

    Different Font Types in HTML. Let's face it--text is bland and boring. No one enjoys reading an endless block of plain font....

  • Common HTML Fonts

    Common HTML Fonts. Experienced Web designers use common fonts on their websites to ensure words look the same on all computers, regardless...

  • List of Font Families

    List of Font Families. In HTML, a font family is the typeface in which a Web browser chooses to display text. There...

  • Font Specifications in HTML

    Font Specifications in HTML. HTML is the primary language that makes up most of the Web pages on the Internet. It controls...

  • Codes for Different Font Styles

    When using HTML to change font styles, you must place a tag before and after the text you wish to change. To...

  • HTML Bold Tutorial

    The HyperText Markup Language (HTML) bold feature is a technique to format certain words or sections of content in bold. You can...

  • List of Font Styles

    List of Font Styles. Although many people imagine pictures, drawings or photos when they think of art, words and letters may be...

  • Serif Font Styles

    Serif Font Styles. Serif fonts are fonts that have small lines or curves--called serifs--accentuating the top or bottom of each letter, according...

  • Types of HTML Font Families

    HTML font families are used when styling websites. CSS (Cascading Style Sheet) declarations list rules dictating how the text in a website...

  • How to Change Font Size in HTML

    Before HTML 4.0, properties of font such as size could be manipulated through the "font" tag. This tag is now gone. The...

  • How to Change the Font Style and Size of Menus and Icons

    Changing the size and style of the fonts that go with your icons or menus is one way of customizing your desktop....

  • List of Font Types

    List of Font Types. In the typography world, people refer to various types of fonts as typefaces. Typefaces have been evolving since...

  • Types of Fonts That Can Be Used With HTML

    Types of Fonts That Can Be Used With HTML. Selecting a clever font can make your Web design exciting, but using an...

  • The Standard Point Types of Fonts for Business Cards in Illustrator

    The standard point sizes for business cards in Illustrator match the standard font sizes developed through traditional printing techniques. Headline, or display...

  • Small Caps & All Caps in HTML

    HTML allows setting text to small caps or all caps, giving the designer more choices with text appearance. Code small caps and...

  • The Easiest Font Styles to Read

    The Easiest Font Styles to Read. Fonts can be divided into two categories --- serif and sans serif. Serif fonts feature embellishments...

  • How to Grow Large Beefsteak Tomatoes

    Beefsteak tomatoes are large enough to cover a hamburger with one slice. You'll be the envy of all the tomatoes growers in...

Related Ads

Featured