Showing posts with label Html Quotations and Citations. Show all posts
Showing posts with label Html Quotations and Citations. Show all posts

Thursday, December 27, 2018

Quotation and Citation Tag Description.

Tag Description:- 

sk.












  • <q> :- Defines a short inline quotation.
  • <cite> :- Defines the title of a work.
  • <address> :- Defines contact information for the author/owner of a document.
  • <blockquote> :- Defines a section that is quoted from another source.
  • <bdo> :- Defines the text direction.
  • <abbr> :- Defines an abbreviation or acronym.

Formatting text direction.

Text direction with the <bdo> element:-


<html>
<body>

<p>If your browser supports bi-directional override (bdo), the next line will be written from right to left (rtl):</p>

<bdo dir="rtl">This line will be written from right to left</bdo>

</body>
</html>

OUTPUT:-  

  • If your browser supports bi-directional override (bdo), the next line will be written from right to left (rtl).
  • The HTML <bdo> element defines bi-directional override.
  • The <bdo> element is used to override the current text direction.

Formatting work title.

Work title with the <cite> element:- 

<html>
<body>

<p>The HTML cite element defines the title of a work.</p>
<p>Browsers usually display cite elements in italic.</p>

<img src="screan.jpg" width="300" height="300" alt="The Screan">
<p><cite>The Screan</cite> by Adict richer. Painted in 1617.</p>

</body>
</html>

OUTPUT:-  

  • The HTML cite element defines the title of a work.
  • Browsers usually display cite elements in italic.

Formatting abbreviations and acronyms.

The <abbr> element:-   

<html>
<body>

<p>The HTML address element defines contact information (author/owner) of a document or article.</p>

<address>
Written by Ansh.<br>
Visit us at:<br>
Example.com<br>
Box 786, Gangland<br>
PUNJAB
</address>

</body>
</html>

OUTPUT:-    

  • The HTML address element defines contact information (author/owner) of a document or article.
  • The HTML <abbr> element defines an abbreviation or an acronym.
  • Marking abbreviations can give useful information to browsers, translation systems and search-engines.

Formatting document owner information.

Information with the <address> element:- 

<html>
<body>

<p>The HTML address element defines contact information (author/owner) of a document or article.</p>

<address>
Written by Ansh.<br>
Visit us at:<br>
Example.com<br>
Box 786, Gangland.<br>
Punjab.
</address>

</body>
</html>

OUTPUT:-

  • The HTML address element defines contact information (author/owner) of a document or article.
  • The <address> element is usually displayed in italic. Most browsers will add a line break before and after the element.

Formatting quoted sections.

Quoted sections with the <blockquote> element:-

<!DOCTYPE html>
<html>
<body>

<p>Browsers usually indent blockquote elements.</p>

<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>

</body>
</html>

OUTPUT:-
  • The HTML <blockquote> element defines a section that is quoted from another source.
  • Browsers usually indent <blockquote> elements.

Formatting short quotations.

Quotations with the <q> element:- 

<html>
<body>

<p>Browsers usually insert quotation marks around the q element.</p>

<p>Akash is: <q>the biggest programer.</q></p>

</body>
</html>

OUTPUT:-  

  • The HTML <q> element defines a short quotation.
  • Browsers usually insert quotation marks around the <q> element.

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...