Web-centric Computing

Some Example Code

Text Buttons made with CSS

This is the ‘other’ section

  <h4>
    This is the &lsquo;<span class="button">other</span>&rsquo; section
  </h4>
  

Why did I use &lsquo; and &rsquo;?

Compare these characters with different browsers.

PlainEntity Reference
typeget by name by number
Character Name
left single quote ` ` &lsquo; &#8216;
right single quote ' ' &rsquo; &#8217;
left double quote

&ldquo; &#8220;
right double quote

&rdquo; &#8221;
plain double quote " " &quot; " &#34; "

For more entities see the tables in the HTML 4.0 specification.

This example also appears in the quotemarks.html file in the XHTML section of the examples.

[back to the menu.]


http://www.cs.dal.ca/~jamie/course/CS/4173/examples/CSS/buttons/5.html
Version:
06 June 2002
CS 4173 Prof.:
J. Blustein <jamie@cs.dal.ca>

This document is written in valid XHTML 1.0 & This document makes use of cascading style sheets.