Learning how to create beautiful websites by working with AI tools
When you tell AI to build something, you need to speak its language. Just like when you hire an architect to build your dream house, you need to know the basic concepts to communicate effectively!
Same Communication Principles!
Instead of saying "make it look good," you can say "use Bootstrap cards with primary buttons and a responsive grid layout"
AI understands exactly what you want and gives you professional results on the first try
You'll know why AI chose certain components and how to modify them to fit your needs
Your websites will look polished and work properly across all devices
The building blocks of modern websites:
The current version of HTML gives structure to your web pages. It's like the skeleton of your website.
Think of it as organizing the parts of your website into sections like headers, navigation menus, and content areas.
The styling language that makes websites look good. It's like the clothes and makeup for your website.
Controls colors, fonts, spacing, and how things are arranged on the screen.
Websites that look good on all devices - phones, tablets, and computers.
One website that adjusts itself instead of making different versions.
Making websites usable by everyone, including people with disabilities.
Includes proper text contrast, screen reader support, and keyboard navigation.
Visual comparison of custom CSS vs. Bootstrap approach
Bootstrap approach: Instead of writing complex CSS, you use simple, descriptive classes like <button class="btn btn-primary btn-lg"> for a large, blue button that looks professional instantly!
Modern websites are built with reusable parts called "components":
Visual example of a webpage broken down into components
Start by designing for phones, then expand to larger screens:
Illustration of responsive design in action
Simple responsive thinking: "This button should be full-width on phones, but only 200 pixels wide on larger screens."
How to get AI to create the basic framework for your website:
Visual representation of a basic website structure
Too vague: "Make me a website."
AI has no guidance and might create anything.
Better: "Create the HTML structure for a photography portfolio homepage with a navigation menu, hero section, photo gallery, about section, and contact form."
AI knows exactly what sections to include.
How to ensure your website works for people with disabilities:
Good accessibility prompt: "Create a contact form that is fully accessible, with proper labels, keyboard navigation, and clear error messages."
Help your website rank better in search engines:
Good SEO prompt: "Create an HTML template for a bakery website with proper page title, meta description, and heading structure for good SEO."
Organizing your website into nested components:
Visual example of components nested within others
Good component prompt: "Create a testimonial section that contains three testimonial cards. Each card should have a customer quote, their name, and a small profile picture."
Bootstrap uses simple, descriptive class names that make sense to beginners:
Examples of common Bootstrap classes and their effects
btn btn-primarycard card-bodynavbar navbar-expandform-control form-groupcontainer row coltext-center - Center align textbtn-large - Make button biggertext-primary - Blue text colorbg-light - Light gray backgroundrounded - Add rounded cornersbtn-primary = primary button, text-center = centered text. AI tools love Bootstrap because it's so logical!
Bootstrap's grid system makes responsive design super easy to understand:
Bootstrap grid approach: Think of your page as rows and columns, like a table!
col-12 means "take up the full width" (all 12 columns)
col-md-6 means "take up half width on medium screens and up" (6 out of 12 columns)
col-lg-4 means "take up one-third width on large screens" (4 out of 12 columns)
Shows how the 12-column grid adapts to different screen sizes
col- - Extra small screens (phones)col-sm- - Small screens (large phones)col-md- - Medium screens (tablets)col-lg- - Large screens (desktops)col-xl- - Extra large screens (big desktops)Simple responsive example: <div class="col-12 col-md-6 col-lg-4"> means "full width on phones, half width on tablets, one-third width on desktops"
Make your website visually unique with custom colors:
Good color prompt: "Create a button using Bootstrap with a dark blue background, light text, slightly rounded corners, and a subtle hover effect."
Control how elements are positioned and spaced:
m-1 to m-5 - Margin levels (small to large)p-1 to p-5 - Padding levels (small to large)mb-3 - Margin bottom (medium)px-4 - Padding left and rightmy-2 - Margin top and bottomd-flex - Make a flexible containerjustify-content-center - Center items horizontallyalign-items-center - Center items verticallytext-center - Center textcontainer - Responsive containerSimple Bootstrap layout: <div class="d-flex justify-content-between align-items-center p-4"> creates a row with items spaced apart and vertically centered, with padding all around.
Add movement and interactivity to your website:
Simple hover effect: <button class="btn btn-primary"> creates a button that automatically has hover effects built-in! Bootstrap handles the animations for you.
Pre-built components that work with Tailwind CSS:
The original component library with everything built-in!
Buttons, forms, cards, navigation, modals, and more.
Free themes for Bootstrap with different color schemes.
Easy way to make your site look unique instantly.
Official icon library designed to work with Bootstrap.
Over 1,800+ icons in SVG format.
Free Bootstrap templates and themes.
Complete website templates you can customize.
Standard solutions to common design problems:
Good pattern prompt: "Create a pricing table with three tiers (Basic, Pro, Enterprise) using Tailwind CSS. Include feature lists and highlighted recommended plan."
Making your website usable by everyone:
Good accessibility prompt: "Create an accessible dropdown menu that works with keyboard navigation and screen readers, using Tailwind CSS."
With the skills from this module, you can now:
In the next module, we'll apply all these skills to build a complete website project from start to finish.
We'll cover project planning, structure, component development, responsive implementation, and final polishing.