{"id":272,"date":"2025-08-05T03:42:09","date_gmt":"2025-08-05T03:42:09","guid":{"rendered":"https:\/\/mitalgoswami.in\/?p=272"},"modified":"2025-08-27T06:33:28","modified_gmt":"2025-08-27T06:33:28","slug":"create-a-small-website-with-html-and-advanced-css","status":"publish","type":"post","link":"https:\/\/mitalgoswami.in\/?p=272","title":{"rendered":"create a small website with html and advanced css"},"content":{"rendered":"\n<p>Here&#8217;s a <strong>simple but modern small website<\/strong> built with HTML and <strong>advanced CSS (Flexbox, Grid, Transitions, Hover Effects, Responsive Design)<\/strong>. The site includes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A navigation bar<\/li>\n\n\n\n<li>A hero section<\/li>\n\n\n\n<li>A 3-column features grid<\/li>\n\n\n\n<li>A footer<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 1. Folder Structure<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>my-website\/<br>\u251c\u2500\u2500 index.html<br>\u2514\u2500\u2500 style.css<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 2. <code>index.html<\/code><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>&lt;!DOCTYPE html><br>&lt;html lang=\"en\"><br>&lt;head><br>  &lt;meta charset=\"UTF-8\" \/><br>  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\/><br>  &lt;title>Modern Web Page&lt;\/title><br>  &lt;link rel=\"stylesheet\" href=\"style.css\" \/><br>&lt;\/head><br>&lt;body><br>  &lt;header><br>    &lt;nav class=\"navbar\"><br>      &lt;h1 class=\"logo\">MySite&lt;\/h1><br>      &lt;ul class=\"nav-links\"><br>        &lt;li>&lt;a href=\"#\">Home&lt;\/a>&lt;\/li><br>        &lt;li>&lt;a href=\"#\">Features&lt;\/a>&lt;\/li><br>        &lt;li>&lt;a href=\"#\">Contact&lt;\/a>&lt;\/li><br>      &lt;\/ul><br>    &lt;\/nav><br>  &lt;\/header><br><br>  &lt;section class=\"hero\"><br>    &lt;div class=\"hero-content\"><br>      &lt;h2>Welcome to My Website&lt;\/h2><br>      &lt;p>Modern design using HTML &amp; Advanced CSS&lt;\/p><br>      &lt;a href=\"#\" class=\"btn\">Get Started&lt;\/a><br>    &lt;\/div><br>  &lt;\/section><br><br>  &lt;section class=\"features\"><br>    &lt;div class=\"feature\"><br>      &lt;h3>Responsive Design&lt;\/h3><br>      &lt;p>Looks great on all devices using CSS Grid &amp; Flexbox.&lt;\/p><br>    &lt;\/div><br>    &lt;div class=\"feature\"><br>      &lt;h3>Fast &amp; Lightweight&lt;\/h3><br>      &lt;p>Optimized code with fast performance and load speed.&lt;\/p><br>    &lt;\/div><br>    &lt;div class=\"feature\"><br>      &lt;h3>Customizable&lt;\/h3><br>      &lt;p>Easy to update styles and layout with clean structure.&lt;\/p><br>    &lt;\/div><br>  &lt;\/section><br><br>  &lt;footer><br>    &lt;p>\u00a9 2025 MySite. All rights reserved.&lt;\/p><br>  &lt;\/footer><br>&lt;\/body><br>&lt;\/html><br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 3. <code>style.css<\/code><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>\/* Reset and base styles *\/<br>* {<br>  margin: 0;<br>  padding: 0;<br>  box-sizing: border-box;<br>}<br><br>body {<br>  font-family: \"Segoe UI\", sans-serif;<br>  line-height: 1.6;<br>  background: #f4f4f4;<br>  color: #333;<br>}<br><br>\/* Navbar *\/<br>.navbar {<br>  display: flex;<br>  justify-content: space-between;<br>  align-items: center;<br>  background: #333;<br>  color: white;<br>  padding: 1rem 2rem;<br>}<br><br>.logo {<br>  font-size: 1.5rem;<br>  font-weight: bold;<br>}<br><br>.nav-links {<br>  list-style: none;<br>  display: flex;<br>  gap: 1.5rem;<br>}<br><br>.nav-links a {<br>  color: white;<br>  text-decoration: none;<br>  transition: color 0.3s ease;<br>}<br><br>.nav-links a:hover {<br>  color: #ff9800;<br>}<br><br>\/* Hero Section *\/<br>.hero {<br>  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),<br>              url('https:\/\/source.unsplash.com\/1600x600\/?technology') center\/cover no-repeat;<br>  height: 60vh;<br>  display: flex;<br>  justify-content: center;<br>  align-items: center;<br>  color: white;<br>  text-align: center;<br>}<br><br>.hero-content h2 {<br>  font-size: 3rem;<br>}<br><br>.hero-content p {<br>  font-size: 1.2rem;<br>  margin: 1rem 0;<br>}<br><br>.btn {<br>  background: #ff9800;<br>  color: white;<br>  padding: 0.75rem 1.5rem;<br>  border: none;<br>  border-radius: 5px;<br>  text-decoration: none;<br>  font-weight: bold;<br>  transition: background 0.3s ease;<br>}<br><br>.btn:hover {<br>  background: #e67e22;<br>}<br><br>\/* Features *\/<br>.features {<br>  display: grid;<br>  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));<br>  gap: 2rem;<br>  padding: 4rem 2rem;<br>  background: white;<br>}<br><br>.feature {<br>  background: #f9f9f9;<br>  padding: 2rem;<br>  border-radius: 10px;<br>  text-align: center;<br>  transition: transform 0.3s ease;<br>}<br><br>.feature:hover {<br>  transform: translateY(-10px);<br>  box-shadow: 0 8px 20px rgba(0,0,0,0.1);<br>}<br><br>\/* Footer *\/<br>footer {<br>  text-align: center;<br>  padding: 2rem;<br>  background: #333;<br>  color: white;<br>  font-size: 0.9rem;<br>}<br><br>\/* Responsive Typography *\/<br>@media (max-width: 768px) {<br>  .hero-content h2 {<br>    font-size: 2rem;<br>  }<br><br>  .hero-content p {<br>    font-size: 1rem;<br>  }<br>}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a simple but modern small website built with HTML and advanced CSS (Flexbox, Grid, Transitions, Hover Effects, Responsive Design). The site includes: \u2705 1. Folder Structure my-website\/\u251c\u2500\u2500 index.html\u2514\u2500\u2500 style.css \u2705 2. index.html &lt;!DOCTYPE html>&lt;html lang=&#8221;en&#8221;>&lt;head> &lt;meta charset=&#8221;UTF-8&#8243; \/> &lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;\/> &lt;title>Modern Web Page&lt;\/title> &lt;link rel=&#8221;stylesheet&#8221; href=&#8221;style.css&#8221; \/>&lt;\/head>&lt;body> &lt;header> &lt;nav class=&#8221;navbar&#8221;> &lt;h1 class=&#8221;logo&#8221;>MySite&lt;\/h1> [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-internet-networking"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272"}],"version-history":[{"count":1,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions"}],"predecessor-version":[{"id":273,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions\/273"}],"wp:attachment":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}