A bibliography is a list of sources of written information on a topic. We use tags in HTML to create the bibliography section. Tags define works on a certain theme. Tags are also used to add the title of a work, such as a song, painting, movie, etc. It represents a citation, and anything within the tag represents the work title.
Text between tags is rendered in italics.
We use the tag to list items and the tag to add topic titles.
The following is the syntax of the tag.
<cite> Work title</cite>
Given below are examples of tags.
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <ol type="1"> <cite>Tutorialspoint Employees</cite> <li style="padding-left:30px ">Abdul</li> <li style="padding-left:30px ">Jason</li> <li style="padding-left:30px ">Yadav</li> </ol> <ol type="1"> <cite>Tutorix Employees</cite> <li style="padding-left:30px ">Sai Teja</li> <li style="padding-left:30px ">Akshaj</li> <li style="padding-left:30px ">Tharun</li> </ol> </body> </html>
The following is the output of the above example program.
Another example of adding a bibliography to a document using HTML is as follows -
<!DOCTYPE html> <html> <head> <title>Bibliography</title> </head> <body> <h1>Bibliography</h1> <ol> <li> <p>E.Balagurusamy, <cite>Programming with JAVA: A Primer</cite>, 3rd edition, (2007)</p> </li> <li> <p>Reto Meier, <cite>Professional Android 4 Application Development</cite>, 3rd edition, (2012)</p> </li> </ol> </body> </html>
The above is the detailed content of How to create a reference using HTML?. For more information, please follow other related articles on the PHP Chinese website!