Skip to content

This simple Python-based tool allows users to dynamically generate an HTML file containing a heading and a paragraph with optional color styling. It provides a command-line interface where users can enter the heading and paragraph content, choose whether to add colors, and automatically generate a fully functional index.html file.

Notifications You must be signed in to change notification settings

Manju200417/Python-HTML-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Python HTML Generator (Version 1.1)

This is a beginner-friendly Python project that generates an HTML file (index.html) with a heading and a paragraph, optionally styled with user-defined colors. The script runs in the terminal and interacts with the user to collect input before generating the final HTML content.


Features

  • Generate HTML structure with <h1> and <p> tags
  • Optional color styling for both heading and paragraph
  • Uses default content if nothing is entered
  • Interactive Command Line Interface (CLI)
  • Fully reusable and customizable
  • Written in pure Python (no external libraries required)

Files Included

File Name Description
html_generator.py The main Python script
index.html Output file generated based on user input
README.md Documentation for the project

Requirements

  • Python 3.x
  • Works on Windows, macOS, and Linux
  • No external dependencies needed

How to Run

  1. Clone this repository
    git clone https://github.com/your-username/html-generator.git
    cd html-generator

About

This simple Python-based tool allows users to dynamically generate an HTML file containing a heading and a paragraph with optional color styling. It provides a command-line interface where users can enter the heading and paragraph content, choose whether to add colors, and automatically generate a fully functional index.html file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages