VOOZH about

URL: https://www.geeksforgeeks.org/web-templates/design-a-web-page-using-html-and-css/

⇱ Create a Website Using HTML and CSS - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Create a Website Using HTML and CSS

Last Updated : 6 Apr, 2026

Building a website with HTML and CSS is a beginner-friendly way to learn front-end development, creating a static, styled, and responsive site.

  • Learn to structure content with HTML and style it using CSS.
  • Create a simple static website with a homepage and styled elements.
  • Gain hands-on experience in responsive design without using JavaScript or frameworks.

Features

We will build a simple website using only HTML and CSS that includes the following features:

  • A clean and structured layout with a navigation bar, hero section, and content sections.
  • Multiple gradient-colored sections (Home, About Us, Courses) with visually appealing designs.
  • A sticky navigation bar with smooth scrolling to different sections of the page.
  • Interactive and stylish buttons and search bar (UI only, no JavaScript).
  • A fully responsive and animated design, making it look modern and engaging.

Note: This project is perfect for beginners who want to learn how to structure a webpage using HTML and enhance its appearance with CSS — no JavaScript needed.

HTML Setup

  • The page starts with standard HTML boilerplate including a title and a link to an external CSS file (style.css) for styling.
  • Navigation Bar: A sticky top navigation bar (<nav>) contains a logo, menu links (Home, About Us, Courses), and a search bar with a button.
  • Three Content Sections: There are three sections:
  • Home (#web) with a welcome heading
  • About Us (#program) with a paragraph about GeeksforGeeks.
  • Courses (#course) describing JavaScript.
  • Internal Page Navigation: Each navbar link points to a section using anchor IDs (href="#web", etc.), allowing smooth scrolling to that section when clicked.
  • Footer: A simple footer at the bottom displays a copyright message.

CSS Styles

  • The universal selector * removes default margin and padding from all elements, and box-sizing: border-box ensures width/height includes padding and borders.
  • Navbar: Sticky top bar with a gradient, styled logo, nav links, and a search bar.
  • Buttons & Search: Rounded buttons with gradient backgrounds and hover animations; search input has focus glow.
  • Sections: Three sections with fixed height, centered content, and different gradient backgrounds.
  • Text & Footer: Animated headings, styled paragraphs, and a responsive dark footer with white text.

Output:

Comment