Results 1 to 2 of 2

Thread: Need XML Font Tags

  1. #1
    Join Date
    Aug 2008

    Need XML Font Tags

    I am new to xml. I have the hang of simple things but I want to change the font type in this string. I can change the size (duh) but I have searched & searched, even downlaoded a xml editor...I've had no luck. Can someone tell me what the tag for font style (face, type?) would be? I know it can't be as hard as it seems.

    <?xml version='1.0' encoding='UTF-8' ?>
    <main header_bg_color="0xC2C2C2" font_style_sup="forte" font_color_sup="0xffffff" font_size_sup="36" font_color_inf="0xffffff" font_size_inf="24"></main>

    Thanks for your help!

  2. #2
    Join Date
    May 2008
    HTML made a mistake when font support was added, though it wasn't a mistake at the time. Now we have CSS. You would use the following:

    main.xml -
    <?xml version='1.0' encoding='UTF-8' ?>
    <?xml-stylesheet type='text/css' href='font.css' ?>
      <header>Example Header</header>
        x<sup>2</sup> = 4
        x = ?
    main.css -
    main header {
      background-color: #c2c2c2;
    main paragraph {
      display: block;
    main sup {
      color: #ffffff;
      font-family: forte;
      font-size: 36pt;
    My recommendation is to check out a CSS tutorial like the CSS Tutorial at W3Schools.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center