Website Making

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

<!

DOCTYPE html>

<html>

<body>

<h1>My First JavaScript</h1>

<button type="button"

onclick="document.getElementById('demo').innerHTML = Date()">

Click me to display Date and Time.</button>

<p id="demo"></p>

</body>

</html>

<!DOCTYPE html>

<html>

<head>

<style>

/* Style the element with the id "myHeader" */

#myHeader {
background-color: lightblue;

color: black;

padding: 40px;

text-align: center;

/* Style all elements with the class name "city" */

.city {

background-color: tomato;

color: white;

padding: 10px;

</style>

</head>

<body>

<h2>Difference Between Class and ID</h2>

<p>An HTML page can only have one unique id applied to one specific element, while a class name can
be applied to multiple elements.</p>

<!-- A unique element -->

<h1 id="myHeader">My Cities</h1>

<!-- Multiple similar elements -->

<h2 class="city">London</h2>

<p>London is the capital of England.</p>


<h2 class="city">Paris</h2>

<p>Paris is the capital of France.</p>

<h2 class="city">Tokyo</h2>

<p>Tokyo is the capital of Japan.</p>

</body>

</html>

<!DOCTYPE html>

<html>

<body>

<h2>HTML Image</h2>

<img src="pulpitrock.jpg" alt="Mountain View" width="500" height="377">

</body>

</html>
<!DOCTYPE html>

<html>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="/w3css/3/w3.css">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-


awesome.min.css">

<body>

<!-- Navigation -->

<nav class="w3-bar w3-black">

<a href="#home" class="w3-button w3-bar-item">Home</a>

<a href="#band" class="w3-button w3-bar-item">Band</a>

<a href="#tour" class="w3-button w3-bar-item">Tour</a>

<a href="#contact" class="w3-button w3-bar-item">Contact</a>

</nav>

<!-- Slide Show -->

<section>

<img class="mySlides" src="img_band_la.jpg"

style="width:100%">

<img class="mySlides" src="img_band_ny.jpg"

style="width:100%">

<img class="mySlides" src="img_band_chicago.jpg"

style="width:100%">
</section>

<!-- Band Description -->

<section class="w3-container w3-center w3-content" style="max-width:600px">

<h2 class="w3-wide">THE BAND</h2>

<p class="w3-opacity"><i>We love music</i></p>

<p class="w3-justify">We have created a fictional band website. Lorem ipsum dolor sit amet,
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua.</p>

</section>

<!-- Band Members -->

<section class="w3-row-padding w3-center w3-light-grey">

<article class="w3-third">

<p>John</p>

<img src="img_bandmember.jpg" alt="Random Name" style="width:100%">

<p>John is the smartest.</p>

</article>

<article class="w3-third">

<p>Paul</p>

<img src="img_bandmember.jpg" alt="Random Name" style="width:100%">

<p>Paul is the prettiest.</p>

</article>

<article class="w3-third">
<p>Ringo</p>

<img src="img_bandmember.jpg" alt="Random Name" style="width:100%">

<p>Ringo is the funniest.</p>

</article>

</section>

<!-- Footer -->

<footer class="w3-container w3-padding-64 w3-center w3-black w3-xlarge">

<a href="#"><i class="fa fa-facebook-official"></i></a>

<a href="#"><i class="fa fa-pinterest-p"></i></a>

<a href="#"><i class="fa fa-twitter"></i></a>

<a href="#"><i class="fa fa-flickr"></i></a>

<a href="#"><i class="fa fa-linkedin"></i></a>

<p class="w3-medium">

Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a>

</p>

</footer>

<script>

// Automatic Slideshow - change image every 3 seconds

var myIndex = 0;

carousel();

function carousel() {

var i;
var x = document.getElementsByClassName("mySlides");

for (i = 0; i < x.length; i++) {

x[i].style.display = "none";

myIndex++;

if (myIndex > x.length) {myIndex = 1}

x[myIndex-1].style.display = "block";

setTimeout(carousel, 3000);

</script>

</body>

</html>

<!DOCTYPE html>

<html>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="/w3css/3/w3.css">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-


awesome.min.css">
<body>

<!-- Navigation -->

<nav class="w3-bar w3-black">

<a href="#home" class="w3-button w3-bar-item">Home</a>

<a href="#band" class="w3-button w3-bar-item">Band</a>

<a href="#tour" class="w3-button w3-bar-item">Tour</a>

<a href="#contact" class="w3-button w3-bar-item">Contact</a>

</nav>

<!-- Slide Show -->

<section>

<img class="mySlides" src="img_band_la.jpg"

style="width:100%">

<img class="mySlides" src="img_band_ny.jpg"

style="width:100%">

<img class="mySlides" src="img_band_chicago.jpg"

style="width:100%">

</section>

<!-- Band Description -->

<section class="w3-container w3-center w3-content" style="max-width:600px">

<h2 class="w3-wide">THE BAND</h2>

<p class="w3-opacity"><i>We love music</i></p>

<p class="w3-justify">We have created a fictional band website. Lorem ipsum dolor sit amet,
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua.</p>

</section>

<!-- Band Members -->

<section class="w3-row-padding w3-center w3-light-grey">

<article class="w3-third">

<p>John</p>

<img src="img_bandmember.jpg" alt="Random Name" style="width:100%">

<p>John is the smartest.</p>

</article>

<article class="w3-third">

<p>Paul</p>

<img src="img_bandmember.jpg" alt="Random Name" style="width:100%">

<p>Paul is the prettiest.</p>

</article>

<article class="w3-third">

<p>Ringo</p>

<img src="img_bandmember.jpg" alt="Random Name" style="width:100%">

<p>Ringo is the funniest.</p>

</article>

</section>

<!-- Footer -->


<footer class="w3-container w3-padding-64 w3-center w3-black w3-xlarge">

<a href="#"><i class="fa fa-facebook-official"></i></a>

<a href="#"><i class="fa fa-pinterest-p"></i></a>

<a href="#"><i class="fa fa-twitter"></i></a>

<a href="#"><i class="fa fa-flickr"></i></a>

<a href="#"><i class="fa fa-linkedin"></i></a>

<p class="w3-medium">

Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a>

</p>

</footer>

<script>

// Automatic Slideshow - change image every 3 seconds

var myIndex = 0;

carousel();

function carousel() {

var i;

var x = document.getElementsByClassName("mySlides");

for (i = 0; i < x.length; i++) {

x[i].style.display = "none";

myIndex++;

if (myIndex > x.length) {myIndex = 1}

x[myIndex-1].style.display = "block";
setTimeout(carousel, 3000);

</script>

</body>

</html>

<!DOCTYPE html>

<html>

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-


awesome.min.css">

<style>

body {margin:0;}

.icon-bar {

width: 100%;

background-color: #555;

overflow: auto;

}
.icon-bar a {

float: left;

width: 20%;

text-align: center;

padding: 12px 0;

transition: all 0.3s ease;

color: white;

font-size: 36px;

.icon-bar a:hover {

background-color: #000;

.active {

background-color: #4CAF50 !important;

</style>

<body>

<div class="icon-bar">

<a class="active" href="#"><i class="fa fa-home"></i></a>

<a href="#"><i class="fa fa-search"></i></a>

<a href="#"><i class="fa fa-envelope"></i></a>

<a href="#"><i class="fa fa-globe"></i></a>


<a href="#"><i class="fa fa-trash"></i></a>

</div>

</body>

</html>

<!DOCTYPE html>

<html>

<head>

<meta name="viewport" content="width=device-width, initial-scale=1">

<style>

div {

width: 35px;

height: 5px;

background-color: black;

margin: 6px 0;

</style>

</head>

<body>

<p>A menu icon:</p>

<div></div>

<div></div>
<div></div>

</body>

</html>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy