0

I am learning html from w3school.com. In the blockquote tag they have added cite attribute. Like this,

<blockquote cite="http://www.worldwildlife.org/who/index.html">
    For 50 years, WWF has been protecting the future of nature.
    The world's leading conservation organization,
    WWF works in 100 countries and is supported by
    1.2 million members in the United States and
    close to 5 million globally.
</blockquote>

But the text renders as,

For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.

My question is that when the html code will be rendered in a web browser then the reader will not find the citation, so what is the benefit of adding it in the code?

There might be again some semantic meaning to it for example in a web browser for blind people the citation might be pronounced. That is just my guess.

Machavity
  • 30,841
  • 27
  • 92
  • 100
user31782
  • 7,087
  • 14
  • 68
  • 143

1 Answers1

2

From http://www.w3schools.com/tags/att_blockquote_cite.asp:

The cite attribute specifies the source of a quotation.

Tip: It's a good habit to always add the source of a quotation, if any.

The cite attribute does not render as anything special in any of the major browsers, but it can be used by search engines to get more information about the quotation.

Also refer Correct use of Blockquote, q and cite? and What is the cite attribute for? on Stackoverflow.

Community
  • 1
  • 1
connexo
  • 53,704
  • 14
  • 91
  • 128
  • Actually I was reading from here:http://www.w3schools.com/html/html_quotation_elements.asp They did not tell about search engines. Anyways Thank you. – user31782 Jan 25 '16 at 07:54
  • So does this answer your question? – connexo Jan 25 '16 at 08:06
  • Obviously yes. And perhaps my question is a duplicate. By the way could you tell any better online source than w3school for learning html? – user31782 Jan 25 '16 at 08:09
  • If it does, remember to inform other users by clicking the checkmark next to the answer. Noone else can do this for you. – connexo Jan 25 '16 at 09:07
  • I will if you tell me some other better online source for learning html. – user31782 Jan 25 '16 at 09:27
  • I know no better learning ressource. Also this was not part of your question and has nothing to do with marking the answer. – connexo Jan 25 '16 at 09:32
  • It has because if I keep reading w3schools then I might keep asking useless duplicate questions here. Somebody told me to go for other resources http://stackoverflow.com/a/34987206/3429430 – user31782 Jan 25 '16 at 09:37
  • And here goes another one http://stackoverflow.com/q/34989272/3429430 That's all due to that inadequate website. – user31782 Jan 25 '16 at 09:40