Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • jQuery
  • AngularJS
  • ReactJS
  • Next.js
  • React Native
  • NodeJS
  • Express.js
  • MongoDB
  • MERN Stack
  • PHP
  • WordPress
  • Bootstrap
  • Tailwind
  • CSS Frameworks
  • JS Frameworks
  • Web Development
Open In App
Next Article:
What is GitHub README File and Markdown?
Next article icon

What is GitHub README File and Markdown?

Last Updated : 17 Mar, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

GitHub repositories often contain a special file called README.md, which serves as the first point of interaction for developers, users, and contributors. The README file provides an overview of the project, installation steps, usage guidelines, and other essential information. This file is written in Markdown, a lightweight markup language that allows formatting text in a simple and readable way.

What is a GitHub README File?

A README file is a markdown document that provides an introduction and documentation for a project hosted on GitHub. It is usually placed in the root directory of a repository and is automatically displayed on the repository’s main page.

Purpose of a README File

  • Provides an overview of the project
  • Describes installation and setup steps
  • Documents usage instructions
  • List contributors and guidelines for contributing
  • Contains licensing information
  • Enhances project visibility and usability

What is a markdown?

Markdown is a lightweight markup language used to format text for the web in a simple and readable way. Instead of relying on complex formatting tools, it uses plain text symbols to create headings, lists, links, code blocks, and other elements

This makes it an efficient choice for writing documentation, README files, blogs, and even online discussions. Since Markdown is widely supported across various platforms, including GitHub, Reddit, and Stack Overflow, it provides a convenient way to structure content while keeping it easy to edit and share.

Viewing the README file in the editor

  • First make a file with the name of .md extension in your project folder which is the extension for the markdown file
  • In the next step, press 'Ctrl+Shift+V' to preview the markdown document

Components of a markdown document

1. Headings

Headings organize content into sections, using # for different in sizes which is also called as levels to demonstrate a particular topic or content.

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Screenshot-2025-03-04-111010
Headings

2. Bold and Italic Text

You can emphasize text using asterisks or underscores.

**Bold Text**  
*Italic Text*
***Bold and Italic***
  • The text between **abc** is always used to make the text bold.
  • The text between *abc* is always used to make the text italic.
  • The text between ***abc*** is always used to make the text bold and italic.
Screenshot-2025-03-04-111512
Bold and Italic Text

3. Lists

Markdown supports both ordered and unordered lists.

Unordered List

The symbol ' - ' is used to add elements to the unordered list

- Item 1
- Item 2
- Sub-item 2.1
- Sub-item 2.2
Screenshot-2025-03-04-111715
Unordered List

Ordered List

The ordered list can be written with 'session number.' before the value you want to enter in the list.

1. First item  
2. Second item
1. Sub-item 2.1
2. Sub-item 2.2
Screenshot-2025-03-04-111831
Ordered List

4. Links

Links can be embedded using brackets and parentheses the format to put a link is [website name](URL to the website)

[Google](https://www.google.com)
Screenshot-2025-03-04-111941
Links

5. Images

Images can be embedded using a similar format as links, with an exclamation mark , The format to put an image is ![Alt Text](https://example.com/image.jpg)

![GitHub Logo](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png)
Screenshot-2025-03-04-112226
Images

6. Code Blocks

Use backticks to format inline or block code `` is the symbol to be used to print the block codes.

Use `console.log('Hello World`) in JavaScript
Screenshot-2025-03-04-112403
Code Blocks

7. Blockquotes

Blockquotes are used to highlight quoted text , the symbol used to put a sentence or length into blockquotes is '>' if in case you want to put the text in nested quotes then '>>' symbol is used

> This is a blockquote.
>> Nested blockquote.
Screenshot-2025-03-04-112548
Blockquotes

8. Tables

Tables structure data in rows and columns so if any data that can be only stored in tabularized form then this format is used to store the data in the markdown document.

| Name  | Age | City      |
|-------|-----|----------|
| Pranjal | 25 | New York |
| pranav | 30 | London |
Screenshot-2025-03-04-112628
Tables

9. Horizontal Line

In a markdown document if you want to separate sections then '---' this symbol is used.

section1
---
section2
Screenshot-2025-03-04-112716
Horizontal Line

10. Task Lists

In a markdown document to check the progress or to track the progress of a task the task lists are used the format of task list is [ marker] Task name

- [x] Task 1  
- [ ] Task 2
- [ ] Task 3

The above code shows that the task1 has been completed that's why a x is been written between the square brackets and if the square brackets are empty then it means that the task has not been completed.

Screenshot-2025-03-04-112807
Task Lists

Key Elements of a README File

  1. Project Title and Description: Clearly state the name of the project and give a brief description of what it does.
  2. Installation Instructions: Provide step-by-step guidance on how to install and set up the project.
  3. Usage Instructions: Explain how to use the project, including code examples if necessary.
  4. Contributing Guidelines: Detail how others can contribute to the project, including coding standards and submission guidelines.
  5. License Information: Specify the licensing terms under which the project is distributed.
  6. Contact Information: Offer ways for users to contact the project maintainers.

How to Create a README File in GitHub

  1. Navigate to your GitHub repository.
  2. Click on Add a README if there isn't one already.
  3. Edit the README.md file using Markdown syntax.
  4. Click Commit changes to save.

Conclusion

A README file is an essential part of any GitHub project, serving as a guide for users and contributors. Using Markdown, you can structure and format the README effectively, making it easier to understand and navigate. A well-written README improves collaboration and ensures that others can quickly grasp the purpose and functionality of the project.


Next Article
What is GitHub README File and Markdown?

D

djjain844
Improve
Article Tags :
  • Web Technologies
  • Git
  • GitHub

Similar Reads

    GitHub Relative Link In Markdown File
    GitHub is a powerful platform for hosting and collaborating on code repositories, and Markdown files are commonly used for documentation. Using relative links in your Markdown files can help keep your documentation organized and easy to navigate, regardless of the branch or directory structure. This
    4 min read
    What Is GitHub Marketplace?
    GitHub Marketplace is a platform that allows developers and teams to discover, purchase, and integrate tools and applications that extend the functionality of GitHub. It offers a wide range of tools, from CI/CD (Continuous Integration/Continuous Deployment) tools to project management apps. In this
    6 min read
    How to Add Images to README.md on GitHub?
    Adding images to README.md on GitHub is a good practice to keep the individual user's readme effective & interactive, plus it also helps dictate the project admins better in what issues we are solving by displaying an image. In this article, we will learn how to add images to README.md in GitHub
    3 min read
    Markdown Cheat Sheet - GitHub
    Markdown is a lightweight markup language that allows you to format text using plain text syntax. It is widely used on GitHub for README files, comments, issues, and pull requests, used to create formatted documents without requiring extensive knowledge of HTML or other web technologies. In this art
    5 min read
    How to Add GIFs on README .md File in a GitHub Repository?
    Git is a free and open-source distributed version control system designed to handle everything from small to very large projects. Github is a highly used software that is used for version control. It is more helpful when more than one person is working on a project. GIF as we all know stands for Gra
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences