If you want to see DOM methods then We have to see output in console.
<!DOCTYPE html>
<html>
<head>
<title>My Landing Page</title>
<style>
header{
color:#ffffff;
background-color:#284B63;
padding:80px 0;
text-align: center;
}
section{
padding:40px 0;
text-align: center;
}
.feature{
background:#ffffff;
color:#000000;
}
.quote{
background:#549Da0;
color:#ffffff;
}
footer{
background:#353535;
padding:32px 0;
text-align: center;
color:#868686;
}
h1{
font-size:48px;
margin:0 0 16px 0;
}
h2{
font-weight:300;
font-size:24px;
margin:0 0 16px 0;
}
.container{
margin:0 auto;
padding:0 20px 0 20px;
max-width:900px;
}
.btn{
display: inline-block ;
color: white;
font-weight:500px;
font-size:20px;
background:#549DA0;
border: none;
border-radius:5px;
padding:12px 16px;
cursor: pointer;
}
.btn:hover{
background:#468486;
}
.feature{
width:32%;
display: inline-block ;
font-size:16px;
}
.feature.span{
width:40%;
}
blockquote{
margin:0;
padding:0;
text-align:center;
}
blockquote p{
margin:0 0 5px 0;
font-size:24px;
}
blockquote cite{
font-size:16px;
font-style: italic;
}
blockquote cite:before{
content:'-';
margin-right:5px;
}
footer{
background:#353535;
padding:32px 0;
text-align: center;
color:#868686;
font-size:12px;
}
footer ul{
margin:0;
padding:0;
list-style: none;
}
footer li{
display: inline-block ;
}
footer li a{
padding:6px;
font-size:14px;
text-decoration: none;
color:#c3c3c3;
}
footer li a:hover{
color: white;
}
@media screen and (max-width: 480px) {
.btn {
display: block;
font-size: 18px;
}
h1 {
font-size: 32px;
margin: 0 0 8px 0;
}
h2 {
font-size: 18px;
}
section {
padding: 25px 0 15px 0;
}
.feature{
width:100%;
display: flex;
align-items: center;
justify-content: center;
text-align: left;
margin:0 0 10px 0;
font-size:16px;
}
.quote{
padding:30px 0;
}
blockquote p{
font-size:18px;
}
blockquote cite{
font-size:14px;
}
footer{
padding:30px 0 10px 0;
}
footer li{
display: block;
margin:5px;
}
}
</style>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<script>
var element ;
element = document;
console.log(element);
var element ;
element = document.all;
console.log(element);
var element ;
element = document.head;
console.log(element);
var element ;
element = document.title;
console.log(element);
var element ;
element = document.body;
console.log(element);
var element ;
element = document.images;
console.log(element);
var element ;
element = document.anchors;
console.log(element);
var element ;
element = document.links;
console.log(element);
var element ;
element = document.forms;
console.log(element);
var element ;
element = document.doctype;
console.log(element);
var element ;
element = document.URL;
console.log(element);
var element ;
element = document.baseURI;
console.log(element);
var element ;
element = document.domain;
console.log(element);
var element ;
element = document.getElementsByClassName("container");
console.log(element);
var element ;
element = document.getElementsByTagName("a");
console.log(element);
</script>
</head>
<body>
<header>
<div id="start"></div>
<div class="container">
<h1>Awesome App</h1>
<h2>This aap will change your life!</h2>
<a class="btn">Download Now</a>
</div>
</header>
<section class="features">
<div class="container">
<div class="feature">
<span class="material-icons">
location_on
</span>
<p>An awesome feature</p>
</div>
<div class="feature">
<span class="material-icons">
pie_chart
</span>
<p>An awesome feature</p>
</div>
<div class="feature">
<span class="material-icons">
question_answer
</span>
<p>An awesome feature</p>
</div>
</div>
</section>
<section class="quote">
<blockquote class="container">
<p>"Some great quote!"</p>
<cite>Satisfied Customer</cite>
</blockquote>
</section>
<footer>
<div>
<ul>
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#">About</a>
</li>
<li>
<a href="#">Contacts</a>
</li>
</ul>
<p>© All rights reserved</p>
</div>
</footer>
</body>
</html>
Comments
Post a Comment