Laboratory 1




Index.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html>
        <head>
                <link rel="stylesheet" type="text/css" href="styles.css">
                </head>
<body>

        <header>
                LOGO STRONY <br>WYBRANE ELEMENTY HTML5
           </header>
           <nav>
                <button onclick="window.location.href='index.html'" type="button">Pierwsze-ćw</button>
                <button onclick="window.location.href='audio.html'" type="button">Audio</button>
                <button onclick="window.location.href='video.html'" type="button">video</button>
                <button onclick="window.location.href='formularz.html'" type="button">formularz</button>
           </nav>
           <section>
                <article>
                     Zawartość artykułu
                </article>
           </section>
           <aside>
                Tu jest boczny panel HTML 5
           </aside>
           <footer>
                Stronę opracował: Dominik Owsianka
           </footer>
</body>
</html>




Formularz.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
        <head>
                <link rel="stylesheet" type="text/css" href="styles.css">
                <link rel="stylesheet" type="text/css" href="webforms2.css">
                <script src="webforms2-0.5.4/webforms2-p.js"></script>
                </head>
<body>

        <header>
                LOGO STRONY <br>WYBRANE ELEMENTY HTML5
           </header>
           <nav>
                <button onclick="window.location.href='index.html'" type="button">Pierwsze-ćw</button>
                <button onclick="window.location.href='audio.html'" type="button">Audio</button>
                <button onclick="window.location.href='video.html'" type="button">video</button>
                <button onclick="window.location.href='formularz.html'" type="button">formularz</button>
           </nav>
           <section>
                <article>
                     Zawartość artykułu
                      
                     <form action="#">
                        Imię(włączony autofocus):<input type="text" name="imie" autofocus required><br>
                        Nazwisko: <input type="text" name="nazwisko" required><br>
                        Wiek: <input type="text" name="wiek" pattern="[0-9]{2}"><br>
                        Kraj: <input type="text" name="kraj"><br>
                        <input type="submit">
                        </form>
                </article>
           </section>
           <aside>
                Tu jest boczny panel HTML 5
           </aside>
           <footer>
                Stronę opracował: Dominik Owsianka
           </footer>
</body>

</html>




audio.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html>
        <head>
                <link rel="stylesheet" type="text/css" href="styles.css">
                </head>
<body>

        <header>
                LOGO STRONY <br>WYBRANE ELEMENTY HTML5
           </header>
           <nav>
                <button onclick="window.location.href='index.html'" type="button">Pierwsze-ćw</button>
                <button onclick="window.location.href='audio.html'" type="button">Audio</button>
                <button onclick="window.location.href='video.html'" type="button">video</button>
                <button onclick="window.location.href='formularz.html'" type="button">formularz</button>
           </nav>
           <section>
                <article>
                     Zawartość Audio
                     <br>
                     <audio controls="controls" autoplay="autoplay" loop= "loop">
                                <source src="pliki-cw1/meadow.mp3" />
                                <source src="pliki-cw1/meadow.ogg" />
                        </audio> 
                </article>
           </section>
           <aside>
                Tu jest boczny panel HTML 5
           </aside>
           <footer>
                Stronę opracował: Dominik Owsianka
           </footer>
</body>
</html>




video.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
        <head>
                <link rel="stylesheet" type="text/css" href="styles.css">
                </head>
<body>

        <header>
                LOGO STRONY <br>WYBRANE ELEMENTY HTML5
           </header>
           <nav>
                <button onclick="window.location.href='index.html'" type="button">Pierwsze-ćw</button>
                <button onclick="window.location.href='audio.html'" type="button">Audio</button>
                <button onclick="window.location.href='video.html'" type="button">video</button>
                <button onclick="window.location.href='formularz.html'" type="button">formularz</button>
           </nav>
           <section>
                <article>
                     Zawartość Audio
                     <br> 
                        <video width="320" height="240" controls>
                                <source src="pliki-cw1/carsonbridge.mov" type="video/mov">
                                <source src="pliki-cw1/carsonbridge.mp4" type="video/mp4">
                                <source src="pliki-cw1/carsonbridge.webm" type="video/webm">
                        </video>
                </article>
           </section>
           <aside>
                Tu jest boczny panel HTML 5
           </aside>
           <footer>
                Stronę opracował: Dominik Owsianka
           </footer>
</body>
</html>




styles.css

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
body {
    background-color: lightblue;
}

h1 {
    color: navy;
    margin-left: 20px;
}

header { 
    background: yellow; 
    width:100%; 
    height: 100px; 
    text-align: center;
    font-size: 40px;
}
section { 
    background: green; 
    width:70%; 
    height: 500px; 
    float: left; 
}
aside { 
    background: orange; 
    width:30%; 
    height: 500px; 
    float: right; 
}
nav{
    margin-top: 3px;
    margin-bottom: 3px;
}
footer { 
    text-align: center;
    background: yellow; 
    width:100%; 
    height: 20px; 
    clear: both; 
}
p { 
    font: 14px Arial, sans-serif; 
    color: red; 
    text-align: center; 
}
audio{ 
}




TOP50 Gry