1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Text and Paragraphs


3 of 4

Text and Paragraphs

Formatting can be applied to any text by using one of the following:strong, em, code, sub or sup. These are analogous to the HTML tags of the same name. For example, strong text is bold, em text is italicized and code text is in a monospace font.

Shoes.app :width => 380, :height => 240 do
  stack do
    para "Inside the ", code("para"), " container ",
      "you can use ", strong("any"), " ", em("numb er"),
      " of the ", sup("formatting"),
      " ", sub("options"), " available to you."[br ] end
  1. About.com
  2. Technology
  3. Ruby
  4. Graphical User Interfaces
  5. Shoes
  6. Formatting

©2014 About.com. All rights reserved.