Introduction to semantic markups in CSS

September 5, 2007

Before u get to know more about semantic markups, i would like u to briefly refresh u on style sheets and its advantages.

Introduction To Style Sheets:

A style sheet basically is a part of the web page design that is used to define user defined styles for basic HTML tags that are used on the webpage. Making Style sheets allows the programmer to reuse these styles whenever they are required. For Example: In certain websites the basic background design and the links on the page remain common to all the pages belonging to the site. therefore a predefined style can be created for the body tag so that whenever a body tag is used the same style is applied to the page, this makes the website design simpler and saves valuable time in the design.
These style sheets can be the part of the program code itself called the inline style sheet, It can be defined between the style tags(defined before the body starts) where it is called internal style sheet and it can also be defined on a new page with a file extension .CS then the style sheet would be called an external style sheet. There are different advantages to using these three mathods in defining style sheets.
For more: http://en.wikipedia.org/wiki/Cascading_Style_Sheets
http://www.w3schools.com/css/default.asp

Introduction to Semantic Markups:

Semantic in literal sense refers to the aspects of meaning, Therefore in general Semantic markups are definitive terms of the program code. In Other words semantic markups are to provide information about the content of the page. Using semantics the programmer gets the benefit of describing the data in the code. So this helps other programmers who look into ur source to get information of the code.

For Example:

This blog is created as an exercise to learn more about HTML

If we want to print the above given line as a heading on the page we could write a code like this:

<font face=”Arial” size=”8″><b><i><u>This blog is created as an exercise to learn more about HTML</b></i></u></font>

But this only means that this is some plain text that is in arial, with size 8 posted as bold,italic and is underlined to get some attention.

If it were written like this:

<h1>This blog is created as an exercise to learn more about HTML</h1>

Now this provides information of the content meaning that this line forms the heading of the content to come. This is actually the use of semantic markups.

Advantages:

* Provides information of the content.
* Search Engine Optimization.
* Ease of Updating, Maintenance becomes easy.

These are some basic advantages that can be associated with semantic markups. Some key elements that can be used to provide information about the content are mentioned in some other blog. Please refer: http://blue-anvil.com/archives/guide-to-semantic-mark-up

I hope the information provided by me will be useful for beginners who want to understand the need of semantic markups.
For all those who don’t know this is my first blog. I hope to write a few more when i receive some positive replies. Critics are welcome.

Like the Blog post? Subscribe to the RSS Feed by Email.
Rate this Blog? Click here!.
Kunal

Entry Filed under: Uncategorized. .

2 Comments Add your own

  • 1. Semantic User Interfaces &hellip  |  April 8, 2009 at 6:12 pm

    I am writing an emerging book on this very subject of best practices for semantic user interfaces.

    This is a good initial overview.

  • 2. Kunal  |  April 9, 2009 at 8:10 am

    Hello

    Thanks for the comment. i have always tried posting technical articles, but never actually been so confident about them.. I’ll try getting more such articles to always attract people like you..

    All the best with the book..

    I’ll see you later..
    Kunal Janu

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Subscribe as a email feed

Do Something

Sponsor This Blog
Advertise Here.
Contact me: kunal.janu@gmail.com


Add to Technorati
Add to Technorati Favorites

SocialTwist Tell-a-Friend

View Kunal Kamdar's profile on LinkedIn

Earn Money for chatting! Join Now!

Blog Stats

Page Hits
free hit counter
Subscriptions

web analytics

Recent Posts

Recent Comments

Friend Links

Though-Zilla!!!!
Author: Anushree Jain
Recommended Post:
Are you the one I'm in Love with?

Writing, Is? Fun!
Author: Ramiah Ariya
Recommended Post:
To Saral or Not To Saral?

Workshop for my Idle Mind
Author: Ambika Darolia
Recommended Post:
Black Post

Life.. Shilpa's Perspective
Author: Shilpa Sehgal
Recommended Post:
Analysis.. Paralysis..

ET: The Extra Textual
Author: Vidhya Shankar
Recommended Post:
False Fueling

Other Blogs and Forums I follow..
My Old Sports Blog
Nihars World
A Conspiracy Called TataSky
BroadBand Forum - TataSky DTH
Watch videos at Vodpod and other videos from this collection.

Back to Sqaure One (Archieve)

Fun Stuff

I Have an IQ of 146, Take the test!
I am smarter than 74% of you idiots!
Flash Animation: Red Button!

Pages

My Calendar

September 2007
M T W T F S S
    Dec »
 12
3456789
10111213141516
17181920212223
24252627282930

Blogroll

Meta

My Tweets