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 Tutorial
  • HTML Exercises
  • HTML Tags
  • HTML Attributes
  • Global Attributes
  • Event Attributes
  • HTML Interview Questions
  • HTML DOM
  • DOM Audio/Video
  • HTML 5
  • HTML Examples
  • Color Picker
  • A to Z Guide
  • HTML Formatter
Open In App
Next Article:
How to Create an Email Newsletter ?
Next article icon

How to Create an Email Newsletter ?

Last Updated : 05 Jul, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

To create an Email Newsletter you need to use HTML and CSS. HTML will make the structure of the newsletter body and CSS will make its style looks good. Email newsletters are used to inform the reader or enthusiast geeks who are keenly interested in your content. If the user subscribed the newsletter then that user will get notification information about the daily update. This stuff is helpful to keep updated the users. They will be received updated information or newly published content through emails.

Creating Structure: In this section, we will create a basic form structure for the email newsletter.  

  • HTML code: It is used to design the structure of the newsletter form. 
HTML
<!DOCTYPE html> <html>  <head>     <title>Email Newsletter</title> </head>  <body>     <form action="">          <!-- Title and the content -->         <h1>GeeksforGeeks</h1>          <p>             How many times were you frustrated while looking             out for a good collection of programming/algorithm             /interview questions? What did you expect and what             did you get? This portal has been created to provide             well written, well thought and well explained             solutions for selected questions. Subscribe us to             get daily tech update.         </p>          <!-- Fill up form for the user -->         <div class="container">             <input type="text" placeholder="Name"                     name="name" required>              <input type="text" placeholder="E-mail"                     name="email" required>              <img src= "https://media.geeksforgeeks.org/wp-content/uploads/20191212104429/logo8.png">              <br><br>              <label>                 <input type="checkbox" checked="checked"                         name="check">                 Daily newsletter             </label>         </div>          <!-- Button to subscribe -->         <div class="btn">             <button type="submit" placeholder="Subscribe"                      value="Subscribe">                 Subscribe             </button>              <p id=test> </p>          </div>     </form> </body>  </html> 

Designing Structure: In the previous section, we have created the structure of the basic form. In this section, we will design the structure for the email newsletter using CSS style. 

CSS code: This CSS code is used with HTML code structure to make an email newsletter form.

CSS
h1 {     color: green; }  /* Container padding & border */ .container {     padding: 24px;     border: 2px solid #ccc; }  /* Container image styling */ .container img {     border-radius: 50%;     width: 50px;     float: right;     margin: 5px; }  /* input filed type text styling */ input[type=text] {     width: 100%;     padding: 12px;     margin: 12px 0;     border: 1px solid #ccc;     box-sizing: border-box; }  /* input filed type checkbox floating */ input[type=checkbox] {     float: left; }  /* button styling */ .btn button {     background-color: #0E9D57;     opacity: 0.8;     color: white;     font-size: 12px;     width: 100%;     padding: 12px;     margin: 12px 0;     border: none;     border-radius: 5px;     font-weight: bold; }  /* hover affect on button */ .btn button:hover {     opacity: 1; } 

Combining the HTML and CSS code: This example combines the above two sections (HTML and CSS code) to make an Email newsletter.

HTML
<!DOCTYPE html> <html>  <head>     <title>Email Newsletter</title>      <style>         h1 {             color: green;         }          /* Container padding & border */         .container {             padding: 24px;             border: 2px solid #ccc;         }          /* Container image styling */         .container img {             border-radius: 50%;             width: 50px;             float: right;             margin: 5px;         }          /* input filed type text styling */         input[type=text] {             width: 100%;             padding: 12px;             margin: 12px 0;             border: 1px solid #ccc;             box-sizing: border-box;         }          /* input filed type checkbox floating */         input[type=checkbox] {             float: left;         }          /* button styling */         .btn button {             background-color: #0E9D57;             opacity: 0.8;             color: white;             font-size: 12px;             width: 100%;             padding: 12px;             margin: 12px 0;             border: none;             border-radius: 5px;             font-weight: bold;         }          /* hover affect on button */         .btn button:hover {             opacity: 1;         }     </style> </head>  <body>     <form action="">          <!-- Title and the content -->         <h1>GeeksforGeeks</h1>          <p>             How many times were you frustrated while looking             out for a good collection of programming/algorithm             /interview questions? What did you expect and what             did you get? This portal has been created to             provide well written, well thought and well             explained solutions for selected questions.             Subscribe us to get daily tech update.         </p>          <!-- Fill up form for the user -->         <div class="container">             <input type="text" placeholder="Name"                     name="name" required>              <input type="text" placeholder="E-mail"                     name="email" required>              <img src= "https://media.geeksforgeeks.org/wp-content/uploads/20191212104429/logo8.png">              <br><br>              <label>                 <input type="checkbox" checked="checked"                         name="check">                 Daily newsletter             </label>         </div>          <!-- Button to subscribe -->         <div class="btn">             <button type="submit" placeholder="Subscribe"                      value="Subscribe">                 Subscribe             </button>             <p id=test> </p>           </div>     </form> </body>  </html> 

Output: 

Supported Browser:

  • Google Chrome
  • Microsoft Edge
  • Firefox
  • OperaEmailSafari

Next Article
How to Create an Email Newsletter ?

S

Sabya_Samadder
Improve
Article Tags :
  • HTML

Similar Reads

    How to Create a Link to Send Email in HTML ?
    Incorporating email links into HTML pages facilitates a smooth way for users to send a message directly from the webpage. We will see how to create these email links, making your web pages user-friendly and interactive.Using Mailto Protocol with Predefined SubjectTo create a link to send an email in
    2 min read
    How to create a text that permit to send email in HTML document when button is clicked ?
    In this article, we will learn How to create the text that permits sending the email in the HTML document when the button is clicked. We can simply create a form that can be used for creating the text i.e body of the message as well as it can be used for sending the email to the respective address.T
    2 min read
    How to write e-mails in HTML and send it using Gmail ?
    In this article, we are going to learn that how users can write e-mails in HTML format and send them using Gmail. However, Gmail doesn't offer an HTML editor still we can send HTML templates in an e-mail using some tools and methods. Many people need to send an e-mail with HTML templates to others.
    3 min read
    How to use Mailto in HTML?
    The mailto link in HTML allows users to easily send emails by opening their default email application when clicked. It can include important details like the recipient’s email address, subject line, body, and optional fields such as CC and BCC, making it convenient for direct communication or feedba
    5 min read
    How to Send Newsletters in Gmail
    Sending Newsletters through Gmail can be a game-changer for your email marketing strategy. Whether you’re a small business owner, a blogger, or just looking to keep your audience updated, Google newsletters offer a user-friendly and effective solution. In this article, you’ll learn the process of cr
    7 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