freecodecamp:通过编写猫咪相册应用学习html

freecodecamp:通过编写猫咪相册应用学习html_第1张图片

DOCTYPE html>

<html lang="en">

<head>
    <meta charset="utf-8">
    <title>CatPhotoApptitle>
head>

<body>
    <main>
        <h1>CatPhotoApph1>
        <section>
            <h2>Cat Photosh2>
            
            <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photosa>.p>
            <a href="https://freecatphotoapp.com"><img
                    src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"
                    alt="A cute orange cat lying on its back.">a>
        section>
        <section>
            <h2>Cat Listsh2>
            <h3>Things cats love:h3>
            <ul>
                <li>cat nipli>
                <li>laser pointersli>
                <li>lasagnali>
            ul>
            <figure>
                <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg"
                    alt="A slice of lasagna on a plate.">
                <figcaption>Cats <em>loveem> lasagna.figcaption>
            figure>
            <h3>Top 3 things cats hate:h3>
            <ol>
                <li>flea treatmentli>
                <li>thunderli>
                <li>other catsli>
            ol>
            <figure>
                <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg"
                    alt="Five cats looking around a field.">
                <figcaption>Cats <strong>hatestrong> other cats.figcaption>
            figure>
        section>
        <section>
            <h2>Cat Formh2>
            <form action="https://freecatphotoapp.com/submit-cat-photo">
                <fieldset>
                    <legend>Is your cat an indoor or outdoor cat?legend>
                    <label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor" checked> Indoorlabel>
                    <label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoorlabel>
                fieldset>
                <fieldset>
                    <legend>What's your cat's personality?legend>
                    <input id="loving" type="checkbox" name="personality" value="loving" checked> <label
                        for="loving">Lovinglabel>
                    <input id="lazy" type="checkbox" name="personality" value="lazy"> <label for="lazy">Lazylabel>
                    <input id="energetic" type="checkbox" name="personality" value="energetic"> <label
                        for="energetic">Energeticlabel>
                fieldset>
                <input type="text" name="catphotourl" placeholder="cat photo URL" required>
                <button type="submit">Submitbutton>
            form>
        section>
    main>
    <footer>
        <p>
            No Copyright - <a href="https://www.freecodecamp.org">freeCodeCamp.orga>
        p>
    footer>
body>

html>

你可能感兴趣的:(学习,html5,css3)