Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions htmlintro/first.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE HTML>
<html>
<head>
<title>My first doument</title>
<style>

.image{
width:500px;
height: 500px;
overflow: hidden;
}
img{
width: 100%;
height: 100%;
object-fit: cover;
}
.video{
width:800px;
height: 500px;
overflow: hidden;
}
video{
width:100%;
height: 100%;
object-fit: cover;
}

</style>
</head>
<body>
<div class="wrapper">
<div id="content">
<h1>Welcome all to my webpage</h1>
<p>This is an HTML page that I created in VSCode</p>
</div>
<div id="links">
<a href="http://www.google.com" id="google_link" class="link">Google</a>
<a href="http://www.youtube.com" id="youtube_link" class="link">Youtube</a>
</div>
<button>Basic button</button>
<div class="image">
<img src="./nat-1.jpg" alt="nature">
</div>
<div class="video">
<video src="./video.mp4" controls loop autoplay>hello</video>
</div>
</div>
</body>
</html>
Binary file added htmlintro/nat-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions htmlintro/second.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<style>
body{
margin:0;
padding:0;
overflow:hidden;
}
.bg_video{
position: relative;
width:100%;
height: 100%;
overflow:hidden;
}
video{
width:100%;
height: 100%;
object-fit: cover;
}
h1{
font-size:110px;
color:white;
font-family: Verdana;
position:absolute;
top:0;
left:0;
width:80%;
border:2px solid white;
padding:30px;
margin:20px;
text-transform: uppercase;
}
button{
position: relative;
top:-30px;
left:55px;
background-color: transparent;
color:white;
border:none;
font-size:18px;
padding:20px 30px;
background-color: tomato;
}
</style>
<body>
<div class="wrapper">
<div class="bg_video">
<video src="./video.mp4" autoplay loop></video>
</div>
<h1>welcome to the best website on the internet<button>Lets get started</button></h1>
</div>
</body>
</html>
Binary file added htmlintro/video.mp4
Binary file not shown.