Spread the word

Showing posts with label Web Standards. Show all posts
Showing posts with label Web Standards. Show all posts

Friday, March 18, 2011

Differences Between Strict and Transitional DOCTYPEs

Attributes which are deprecated in Strict DOCTYPEs:

  • align (allowed on elements related to tables only, like - col, colgroup, tbody, td, tfoot, th, thead, and tr)

  • target

  • language

  • background

  • link

  • hspace

  • noshade

  • nowrap

  • bgcolor

  • text

  • vspace

  • vlink

  • alink

  • height (allowed on img and object)

  • border (allowed on table)

  • width (allowed on img, object, table, col, and colgroup)

  • name (allowed in HTML 4.01 Strict, not allowed on form and img in XHTML 1.0 Strict)

Wednesday, December 22, 2010

Difference Between XHTML and HTML4

HTML is the Hyper Text Markup Language which is rendered by any web browser you use to visit any website or web application. Whatever programming language, whatever platform a website or web application uses, it drills down to HTML only for your browser. So HTML is the building block of the World Wide Web which has not seen much significant improvement during last 2 decades except the Extensible Hyper Text Markup Language - the XHTML.

Here are the very basic differences between HTML and XHTML -

1) All documents must be well formed and properly nested

<p>The food is <em>delicious</em></p> - Correct.
<p>The food is <em>delicious</p></em> - Wrong.

2) Elements and Attributes must be in lowercase

Sunday, March 22, 2009

Facebook also Doesn’t Support Opera - Is Opera Abolished?


Is Opera going to be abolished very soon? It was my first thought when I saw that I can’t login to Facebook on Opera. You can’t even type in your Email address in the login field of Facebook, while you are on Opera! I am sure that Facebook knows this and is fine with it. So is it an indication that like several others, Facebook also doesn’t care about Opera users.

When Yahoo! preferred to put Opera out of their supported browsers list, may be that was the mere beginning. A beginning of the end of Opera? Google also doesn’t support Opera for many of its applications. So is it a harsh truth that in the age of Web Applications, Opera is going to be abolished by all?

Saturday, January 10, 2009

How to Validate Browser Specific CSS Hacks

Almost everyone who is a XHTML/CSS Developer knows Browser Specific CSS Hacks. If you don't know then you can know what Browser Specific CSS Hacks are from here. While creating tableless websites on CSS the biggest issue we face is consistency of the pages over various browsers i.e. cross-browser compatibility. So to make the websites and pages cross-browser compatibile many times we use several Browser Specific CSS Codes or Hacks. Though it is advices to avoid those Hacks since they are not by the standards, many times we are unable to do that.

Tuesday, December 16, 2008

What is Validation and why validation is important?

Validation is a process of checking webpages against Web Standards, mainly those which are published by the World Wide Web Consortium (W3C). Validation is done for HTML, XHTML, SMIL, MathML, CSS, RSS/ATOM Feeds, XML-derived Web document types, WapForum for WML, etc. Every language has its own grammar and syntax and so every document designed with these computer languages are expected to follow these guidelines and rules so that they are standard complaint. The markup languages of all versions use a specific declaration called Document Type Declaration (DTD) which is machine-readable grammar, inherited from SGML. When a webpage passes through this validation process then the page is called valid.

Sunday, November 9, 2008

Noindex Meta Tag - Prevent Search Engines from Indexing a Page in your Site


So you want to hide a page in your website from the Search Engines. This can be easily done by just adding a Meta tag in the head section of the page which you don’t want to be indexed by the Search Engines. In this way you will be telling the robots (Search Enignes) not to crawl that page and not to store it in their search database. For this that page in your site will not show up in any search results and users will not be able to find that page through searching in Search Engines.

Thursday, October 30, 2008

How to add link and script codes in the Head tag from the body section through JavaScript

Many times we need to add <script> or <link> tags for some selected pages of a website. In many websites we use Content Management Systems or some templates where we can’t add different headers to different pages. But in many pages we need some extra functionality through scripts and other codes which are used differently in different pages within that site. Sometimes we need to insert the scripts within the page body tag which is not at all Web Standards compliant. The scripts and links to css or JavaScript files should always be in the head tag.