kids encyclopedia robot

Microformat facts for kids

Kids Encyclopedia Facts

A Microformat is a special way to add hidden labels to information on websites. Imagine you have a phone number or an address written on a webpage. Humans can easily read it, but computers sometimes find it hard to understand what that text means.

Microformats help computers understand this information better. They use existing parts of HTML (the language websites are built with) to mark up specific details. This makes it easier for computer programs, like those in your web browser or on your phone, to find and use this information. For example, a program could automatically add a phone number to your contacts list or show an address on a map.

What Are Microformats?

Think of a website as a book. The words are there, but sometimes you want to quickly find all the names of people or all the dates mentioned. Microformats are like adding tiny, invisible sticky notes to specific words in the book. These sticky notes tell a computer, "Hey, this word here is a person's name!" or "This number is a phone number!"

This is done by using special names called "class names" within the HTML code. These class names don't change how the website looks to you, but they give extra meaning to the information for computers.

How Microformats Work

When you look at a webpage, you see text, images, and links. Behind the scenes, this page is built using code like HTML. Microformats add extra details to this code.

For example, if a website lists a person's name, company, and phone number, a microformat would add special labels to each piece of information. This way, a smart program can easily tell that "Joe Doe" is a name, "Example Company" is a company, and "555-1234" is a phone number.

An Example: Contact Information

Let's look at how contact information might appear on a website without any special labels:

 <div>
   <div>Joe Doe</div>
   <div>The Example Company</div>
   <div>604-555-1234</div>
   <a href="http://example.com/">http://example.com/</a>
 </div>

This looks normal to us. But a computer just sees a bunch of text inside `

` (division) tags. It doesn't know what each piece of text means.

Now, here's the same information using a microformat called hCard. hCard is like a digital business card.

 <div class="vcard">
   <div class="fn">Joe Doe</div>
   <div class="org">The Example Company</div>
   <div class="tel">604-555-1234</div>
   <a class="url" href="http://example.com/">http://example.com/</a>
 </div>

Do you see the `class="vcard"`, `class="fn"`, `class="org"`, `class="tel"`, and `class="url"`? These are the special labels!

  • `vcard` tells the computer that everything inside this section is a contact card.
  • `fn` means "formatted name" (the person's full name).
  • `org` means "organization" (the company they work for).
  • `tel` means "telephone number".
  • `url` means "web address".

Because of these labels, a computer program (like a browser add-on) can now easily find "Joe Doe", "The Example Company", and "604-555-1234". It can then offer to save this contact directly into your phone's address book or email program!

Why Are Microformats Useful?

Microformats make the internet smarter and more helpful. They allow information to be shared and used by different programs automatically. This saves you time and makes it easier to:

  • Add contact details to your address book.
  • Save event details to your calendar.
  • Find locations on a map.
  • See reviews or ratings for products.

They help computers understand the meaning of the content, not just what it looks like.

See also

A robot that can understand information better with microformats.

kids search engine
Microformat Facts for Kids. Kiddle Encyclopedia.