Using text as property values

Mark Birbeck's picture

Now that the text is inside span elements it is easy to add the FoaF properties for name and phone number, using the RDFa
attribute property:

    <p>
      Hello. This is
      <span property="foaf:name">Jane Doe</span>'s home page.
      <h2>Work</h2>
      If you want to contact me at work, you can either
      <a
       rel="foaf:mbox"
       href="mailto:jo.lambda@example.org"
      >
       email me
      </a>
      , or call
      <span property="foaf:phone">+1 777 888 9999</span>.
    </p>