Home > Web Front-end > HTML Tutorial > How to create a reference using HTML?

How to create a reference using HTML?

WBOY
Release: 2023-09-04 20:45:01
forward
1756 people have browsed it

How to create a reference using HTML?

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.

    How to create a reference using HTML?

    grammar

    The following is the syntax of the tag.

    <cite> Work title</cite>
    
    Copy after login

    Example 1

    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>
    
    Copy after login

    The following is the output of the above example program.

    Example 2

    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>
    
    Copy after login

    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!

    source:tutorialspoint.com
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template