HTML web design homework – 11 exquisite web pages html+css+javascript+bootstarp

HTML example web page code, this example is suitable for students who are beginners in HTML. In this example, there are css style settings and div style patterns. This example is more comprehensive and helpful for students to learn. This article will introduce how to practice design by designing a personal website from scratch and converting it into code .

Wonderful column recommendation

? [Author’s homepage – get more high-quality source code]
? [Web front-end end-of-session homework – completed project boutique practical case (1000 sets)]

Article directory

  • 1. Web page introduction
  • 1. Web page effect
  • 2. Code display
    • 1.HTML code
    • 2. CSS code
  • 3. Personal summary
  • 4. More dry goods

1. Web page introduction

1 Webpage Introduction: This work is the theme of student personal homepage webpage design, HTML + CSS layout production, web front-end final assignment, college student webpage design homework source code, this is a good webpage production, the picture is smart, The code is a simple student level, very suitable for beginners to learn and use.

2. Webpage editing: The code of the webpage works is simple, and any HTML editing software (such as: Dreamweaver, HBuilder, Vscode, Sublime, Webstorm, Text, Notepad + + etc. any html editing software for operation, modification and editing).

3. Knowledge application: In terms of technology, it mainly applies web page knowledge: Div + CSS, mouse over effects, Table, navigation bar effects, Banner, forms, secondary and tertiary pages, etc., video, Audio elements, Flash, and the knowledge points required for designing the Logo (source file).

1. Web page effect











2. Code display

1.HTML code

The code is as follows (example): The following only shows part of the code for reference~

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="css/css.css"/>
<script src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<title>Yamaha Home Theater</title>
</head>
<body>
<!--top-->
<header class='clearfix'>
  <div class="logo"> <img src="images/logo. jpg" alt=""></div>
  <div class="nav"><a href="index.html">Home</a><a href="pro1.html">Home Audio</a><a href="pro2.html">Pro Audio</a><a href="case.html">Classic Case</a><a href="about.html">Brand Introduction</a><a href="news.html">News Center< /a><a href="login.html">Login</a><a href="reg.html">Register</a></div>
  <div id="close" class="visible-xs"><img src="images/menu.png"></div>
  <div class="clear"></div>
</header>
<!--Content-->
<div class="con">
  <div class="pic">
    <div class="banner">
      <div id="myCarousel" class="carousel slide">
        <!-- Carousel indicator -->
        <ol class="carousel-indicators">
          <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
          <li data-target="#myCarousel" data-slide-to="1"></li>
          <li data-target="#myCarousel" data-slide-to="2"></li>
        </ol>
        <!-- Carousel item -->
        <div class="carousel-inner">
          <div class="item active"> <img src="images/banner. jpg" alt="First slide"> </div>
          <div class="item"> <img src="images/banner2. jpg" alt="Second slide"> </div>
          <div class="item"> <img src="images/banner3. jpg" alt="Third slide"> </div>
        </div>
      </div>
    </div>
    <script>
 $(document).ready(function(){<!-- -->
 $('#myCarousel').carousel({<!-- -->interval:5000});//Automatic rotation every 5 seconds
 });
 </script>
  </div>
  <div class="container">
    <div class="part2">
      <h2 class="Title">Choose your product</h2>
      <ul class="row">
        <a href="pro1.html">
        <li class="col-sm-6"><img src="images/img_01.jpg" width="100%"/>
          <p>home audio</p>
        </li>
        </a> <a href="pro2.html">
        <li class="col-sm-6"><img src="images/img_02.jpg" width="100%"/>
          <p>Professional Audio</p>
        </li>
        </a>
      </ul>
    </div>
    <div class="Part1 container">
      <h2 class="Title">Company Introduction</h2>
      <div class="text">
        <p>For many years, Yamaha has been committed to helping artists inspire and inspire audiences through live and recorded performances. Now, we apply these professional experiences and technical concepts to develop a series of high-quality home theater equipment. The simpler operation interface allows you to install and use it easily, and you can feel the effect of a concert hall or theater at home. Yamaha home theater combines elegant appearance design, exquisite craftsmanship, extraordinary sound quality, and outstanding surround technology to provide you with high-quality surround sound audio-visual experience.</p>
        <a href="about.html" class="more">See more</a><br>
        <br>
      </div>
      <div> <img src="images/1. jpg" width="100%"/> </div>
    </div>
    <div class="part2">
      <h2 class="Title">Our case</h2>
      <ul class="row">
        <li class="col-sm-4"><img src="images/a1.jpg" width="100%"/>
          <h4>Creating a landscape into a painting, taking advantage of the light│Looking for the most beautiful audio-visual space in the city</h4>
        </li>
        <li class="col-sm-4"><img src="images/a2.jpg" width="100%"/>
          <h4>Case sharing of intelligent audio-visual Zhongshan triangle villa</h4>
        </li>
        <li class="col-sm-4"><img src="images/a3.jpg" width="100%"/>
          <h4>Smart audio-visual flagship experience center audio-visual room</h4>
        </li>
      </ul>
    </div>
  </div>
</div>
<!--Bottom-->
<footer>
  <p>all rights reserved </p>
</footer>
<script src="js/script.js"></script>
</body>
</html>


2.CSS code


/*General class*/
* {<!-- -->
margin: 0;
padding: 0;
}

body {<!-- -->
margin: 0 auto;
line-height: 21px
}

img {<!-- -->
border: none;
}

a {<!-- -->
cursor: pointer;
color: #333;
text-decoration: none;
outline: none;
}

em {<!-- -->
font-style: normal;
}

.lt {<!-- -->
float: left;
}

.rt {<!-- -->
float: right;
}

ul, li, h1, h2, h3, p {<!-- -->
padding: 0;
margin: 0;
list-style: none
}

ul {<!-- -->
list-style-type: none;
}

.clear {<!-- -->
clear: both
}

img {<!-- -->
display: block;
max-width: 100%
}
/*header start*/
header {<!-- -->
background: #000;
border-bottom: 1px solid #666;
padding: 0 30px;
}

header.logo {<!-- -->
float: left;
height: 90px;
width: auto;
margin: 0 auto;
}

header.logo img {<!-- -->
width: auto;
height: 100%;
}

header.nav {<!-- -->
float: right;
text-align: center;
height: 90px;
line-height: 90px;
}

header.nav a {<!-- -->
float: left;
padding: 0 20px;
text-decoration: none;
display: inline-block;
text-align: center;
color: #fff;
font-size: 18px;
font-weight: bold;
}

header .nav a:hover {<!-- -->
background: #333
}

.banner {<!-- -->
background-size: cover;
}

.banner img {<!-- -->
width: 100%;
display: block;
}

footer {<!-- -->
text-align: center;
color: #fff;
margin-top: 50px;
background: #000;
}

footer p {<!-- -->
height: 70px;
line-height: 70px;
}

.Title {<!-- -->
font-size: 36px;
color: #000;
text-align: center;
font-weight: bold;
height: 50px;
line-height: 50px;
margin: 40px 10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.con .text {<!-- -->
font-size: 18px;
color: #333;
line-height: 26px;
}

.con .text p {<!-- -->
margin: 0 0 10px 0;
}

.Part1 {<!-- -->
padding-bottom: 40px
}

.Part1 .text {<!-- -->
max-width: 850px;
margin: 20px auto;
text-align: center
}

.part2 {<!-- -->
margin-bottom: 0px;
}

.part2 li {<!-- -->
text-align: center;
margin-bottom: 30px;
position: relative;
}

.part2 li img {<!-- -->
margin-bottom: 10px; transition: all 1s ease-out;
}
.part2 li:hover img{<!-- --> transform:scale(0.9);}
.part2 li p {<!-- -->
font-size: 36px;
font-weight: bold;
top: 50%;
margin-top: -18px;
padding: 10px 0;
display: block;
left: 0;
position: absolute;
width: 100%;
text-align: center;
color: #fff
}

.news li {<!-- -->
margin: 20px 0
}

.form_con {<!-- -->
margin: 0px auto;
font-size: 16px;
}

.form_con .phone {<!-- -->
width: 100%;
height: 36px;
padding: 0 15px;
box-sizing: border-box;
font-size: 14xp;
margin-bottom: 10px;
display: block;
}

.form_con .phone.oi {<!-- -->
height: 120px;
}

.form_con button {<!-- -->
width: 100%;
height: 36px;
background: #666;
border: none;
color: #fff;
}

.part2 {<!-- -->
overflow: hidden
}

#close {<!-- -->
position: absolute;
right: 0px;
top: 5px
}

#close img {<!-- -->
width: 40px
}

.part65 li img {<!-- -->
padding: 0 50px
}

.part65 li h2 {<!-- -->
margin-top: 70px;
font-size: 30px;
margin-bottom: 20px
}

.part65 li p {<!-- -->
letter-spacing: 2px;
line-height: 30px;
font-size: 16px
}

.more {<!-- -->
display: inline-block;
margin-top: 50px;
border: #000 solid 1px;
padding: 10px 50px;
font-size: 16px
}

.more:hover {<!-- -->
background: #000;
color: #fff
}

.part65 li:nth-child(2n) div:nth-child(1) {<!-- -->
float: right
}

.part65 li div div {<!-- -->
padding: 0 60px
}

@media only screen and (max-width:1200px) {<!-- -->
header.nav a {<!-- -->
padding: 0 10px
}
}

@media only screen and (max-width:1024px) {<!-- -->
header.logo {<!-- -->
height: 70px;
margin-top: 10px
}

header.nav a {<!-- -->
font-size: 16px;
padding: 0 10px
}

.part2 li p {<!-- -->
font-size: 18px
}

.con .text p,.part2 li h4 {<!-- -->
font-size: 14px
}
}

@media only screen and (max-width:860px) {<!-- -->
header.nav a {<!-- -->
font-size: 14px;
padding: 0 5px
}
}

@media only screen and (max-width:768px) {<!-- -->
.part65 li img, .part65 li div div {<!-- -->
padding: 0
}

header.logo {<!-- -->
margin-top: 0px
}

.part65 li h2 {<!-- -->
font-size: 20px;
line-height: 30px
}

body {<!-- -->
padding-top: 50px
}

header {<!-- -->
width: 100%;
position: fixed;
padding: 0;
top: 0;
left: 0;
z-index: 555;
}

.row {<!-- -->
margin: 0
}

header.nav {<!-- -->
width: 100%;
display: none;
line-height: 50px;
height: auto;
background: #000
}

.Part1 .text {<!-- -->
margin-left: 10px;
margin-right: 10px
}

header.nav a {<!-- -->
font-size: 14px;
width: auto;
margin: 0px;
font-weight: normal
}

header.nav a {<!-- -->
display: block;
width: 100%;
}

.re {<!-- -->
width: 150px
}

.Part1 {<!-- -->
padding-bottom: 0
}

header.logo {<!-- -->
height: 50px;
}

.s {<!-- -->
padding-top: 20px;
font-size: 22px;
text-align: center
}

.part2 li img {<!-- -->
height: auto;
}

.Title,.tits {<!-- -->
font-size: 24px;
margin: 20px 0
}

.text {<!-- -->
font-size: 14px;
line-height: 26px;
}
}

3. Personal summary

A set of qualified web pages should include (specifically, it can be determined according to individual requirements)

  1. The page is divided into four parts: the header, the menu navigation bar (preferably pull down), the middle content section, and the footer;
  2. All pages are hyperlinked to each other, and you can go to the third-level page, which consists of 5-10 pages;
  3. The unified layout of the page style is normal, not messy, using Div + Css technology;
  4. The menu is beautiful and eye-catching, and the secondary menu can pop up and jump normally;
  5. There must be JS special effects, such as timing switching and manual switching of picture news;
  6. There are multimedia elements in the page, such as gif, video, music, and the use of form technology;
  7. The page is clean, beautiful, generous, and not the same.
  8. The front-end program of the website must not only be able to present the content required by the user, but also meet the requirements of good layout, beautiful interface, elegant color matching, and various forms of expression.

4. More dry goods

1. If you see this, please [Like and collect blog posts] for three consecutive supports, your support is the driving force for my creation, [Follow the author|Get more source code| High-quality articles 】.

2. Follow me and take you to learn various front-end plug-ins, 3D cool effects, picture display, text effects, and whole site templates, college graduate graduation HTML templates, final assignment templates, etc.! “There are many front-end developers here, let’s join together Discuss front-end Node knowledge and learn from each other!”

3. The above content and technology-related issues can learn and communicate with each other