Tuesday, May 02, 2017

MVA Know it prove it- Web Development -2 HTML5 & CSS3 - ii

W3C
The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web (abbreviated WWW or W3).
Founded and currently led by Tim Berners-Lee, the consortium is made up of member organizations which maintain full-time staff for the purpose of working together in the development of standards for the World Wide Web.
The W3C also engages in education and outreach, develops software and serves as an open forum for discussion about the Web.



Absolute URL 
Absolute URL requires you to place the entire address on the page that you link to. An example of an absolute URL would look like this:

<a href = http://www.example.com/xyz.html>

Relative URL
The relative URL, on the other hand, does not use the full address. It assumes that the page you type in is on the same site. An example of a relative URL would look like this:


<a href = “/xyz.html”>

Why Choose Absolute URL  ?


– FOILS SCRAPERS

An absolute URL makes it harder for people to scrape information from your website using scraper programs. If you have all of your internal links as relative URLs, it would be very easy for a scraper to simply scrape your entire website and put it up on a new domain.

– DISALLOWS DUPLICATE CONTENT

It’s very important to have absolute URLs in order to avoid duplicate content issue. Imagine you have multiple versions of root domains that are indexed in Google without a canonical tag point to correct version of the site.

– IMPROVE INTERNAL LINK STRATEGY

While coding URL, you do want to think about internal linking. If you have a <base href> tag that was implemented wrong on the site along with relative URLs, it will create a page that will land on 404 error page.

Why Choose Relative  URL  ?

– QUICKER CODING

Large websites are made much easier to code when you shorten your URL into a relative format.
– STAGING ENVIRONMENT
If you are using a content management system that has staging environment with its own unique domain like WordPress or SharePoint, then your entire website is replicated on that staging domain. The relative format allows the same website to exist on staging and production domain, or the live accessible version of your website, without having to go back in and recode all of the URLs. This not only makes coding easier for a web developer but also serves as a time saver.

– FASTER LOAD TIMES

Pages that use a relative URL will load more quickly than pages using absolute URLs, for the most part, although the difference is miniscule at best.




No comments:

Post a Comment