Python实战——1_1.网页制作

Python实战——1_1.网页制作

引言

网页的组成部分:

  • CSS样式 - 给结构以装饰
  • Html - 结构部分
  • JavaScript- 功能实现

代码部分

第一部分为网站的基本结构(在IDE中新建网页后既给出)


<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>The blahtitle>
    <link rel = "stylesheet" type = "text/css" href = "main.css">
head>
<body>
    <div>
        <img src =
    div>
body>
html>

下面是填充了基本内容的代码:


<html lang="en">
<head> 
    <meta charset="UTF-8">
    <title>The blahtitle>
    <link rel="stylesheet" type="text/css" href="homework.css"> 
head>
<body> 
    <div class="header"> 
        <img src="images/blah.png"> 
        <ul class="nav"> 
            <li><a href="#">Homea>li>  
            <li><a href="#">Sitea>li>
            <li><a href="#">Othera>li>
        ul>
    div>
    <div class="main-content"> 
        <h2>The Beachh2>  
        <hr>  
        <ul class="photos"> 
            <li><img src="images/0001.jpg" width="150" height="150" alt="Pic1">li> 
            <li><img src="images/0003.jpg" width="150" height="150" alt="Pic2">li>
            <li><img src="images/0004.jpg" width="150" height="150" alt="Pic3">li>
        ul>
        <p> 
            stretching from Solta to Mljet, and this unique cycling trip captures the highlights with an ideal
            balance of activity, culture and relaxation. Experience the beautiful island of Korcula with its picturesque old town,
            the untouched beauty of Vis, and trendy Hvar with its Venetian architecture. In the company of a cycling guide,
            this stimulating journey explores towns and landscapes, many of which are on UNESCO's world heritage list.
            Aboard the comfortably appointed wooden motor yacht,
            there is ample time between cycles to swim in the azure waters and soak up the ambience of seaside towns.
        p>


    div>
    <div class="footer">  
        <p>© Mugglecodingp> 
    div>
body>
html>

生成一个脚注1.

目录

[TOC]来生成目录:

  • Python实战1_1网页制作
      • 引言
      • 代码部分
      • 目录


代码块第二部分,即“填充了基本内容的代码”引用作业部分代码。


  1. 这里是 脚注内容. ↩

你可能感兴趣的:(作业,python)