Laboratory Exercise 1. HTML Review
Laboratory Exercise 1. HTML Review
1
I. INTENDED LEARNING OUTCOMES
II. OVERVIEW
HTML Fonts
The font-family property defines the font to be used for an HTML element:
i.e. <h1 style="font-family:verdana;">This is a heading</h1>
<p style="font-family:courier;">This is a paragraph.</p>
HTML Text Size
The font-size property defines the text size for an HTML element:
i.e. <h1 style="font-size:300%;">This is a heading</h1>
<p style="font-size:160%;">This is a paragraph.</p>
HTML links are hyperlinks (text or an image you can click on, and jump
to another document).
i.e.
<!DOCTYPE html>
<html>
2
<body>
<p><a href="http://www.umak.edu.ph">Visit My University</a></p>
</body>
</html>
HTML Images are defined with the <img> tag. The <img> tag is empty,
it contains attributes only, and does not have a closing tag. The src
attribute specifies the URL (web address) of the image:
<!DOCTYPE html>
<html>
<body>
<img src="html5.gif" alt="HTML5 Icon"
style="width:128px;height:128px;">
</body>
</html>
III- PROCEDURES
3
2. Attach source code
1.
<html>
4
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.mi
n.css"
integrity="sha384-
BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68
vbdEjh4u" crossorigin="anonymous">
<body style="background-color:mediumaquamarine;">
<div class="container-fluid">
<div class="row">
<div class="col-md-2 col-sm-12 col-xs-12">
<nav id="navbar">
<h3>Technical Documentation</h3>
<!--content stacking for smaller screens-->
<ul class="nav nav-pills nav-stacked">
<!--internal linking to the respective sections-->
<a class="nav-link" href="#Introduction" rel="internal">
<li>Introduction</li>
</a>
<a class="nav-link" href="#What_you_should_already_know"
rel="internal">
<li>What you should already know</li>
</a>
<a class="nav-link" href="#About_Topic" rel="internal">
<li>About the topic</li>
</a>
<a class="nav-link" href="#Topic_1" rel="internal">
<li>Topic 1</li>
</a>
<a class="nav-link" href="#Topic_2" rel="internal">
<li>Topic 2</li>
</a>
</ul>
</nav>
</div>
<div class="col-md-10 col-sm-12 col-xs-12">
<main id="main-doc">
<section class="main-section" id="Introduction" >
5
<h3 style = "background: black; color: white">What you should
already know</h3>
<article>
<p>Background information before getting into the topic:</p>
<li>Some list content</li>
<li>Prerequisites.</li>
<li>Workings and assumptions</li>
<p>Any other content to be covered before learning this
topic</p>
</artice>
</section>
<section class="main-section" id="About_Topic">
<h3 style = "background: black; color: white">About topic</h3>
<article>
<p>More lines about the topic. For example, how the basic
functionality works, features etc...</p>
<p>
Technical documentation should be thorough and to the point
</p>
<p>
Write about features, comparisons with other languages etc
</p>
</article>
</section>
<section class="main-section" id="Topic_1">
<h3 style = "background: black; color: white">Topic 1</h3>
<article>
Getting started with the actual documentation content
<code>This would come in a different color and font indicating
lines of code
</code>
</article>
</section>
<section class="main-section" id="Topic_2">
<h3 style = "background: black; color: white">Topic 2</h3>
<p>
Another topic about the main topic, for example, if the topic is Java, this could
be variables or data types in Java
</p>
</section>
</main>
</div>
</div>
</div>
</html>
2.
<!DOCTYPE HTML>
6
<html>
<head>
<title>Sample Survey</title>
</head>
<body style="background-color:powderblue;">
<p style="font-family: verdana;">
<form action="http://google.co.in">
<div align="center">
<h1>Sample Survey</h1>
Enter your name:
</br></br>
Enter your age:
<input type="text" name="age" size=5 maxlength=5 value=""> </br> </br>
what is your hobby:
7
<input type=submit value="Submit form">
</div>
</form>
</body>
</html>
3.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Error 404 page</title>
<style>
body {
margin: 0;
box-sizing: border-box;
}
.container {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: linear-gradient(to right, rgba(0, 0, 0, .5), rgba(0, 0, 0, .1)),
url('https://images.unsplash.com/photo-1595624871930-
6e8537998592?ixlib=rb-
1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&aut
o=format&fit=crop&w=871&q=80');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
h1 {
font-size: 10rem;
color: #fff;
text-transform: uppercase;
font-weight: 700;
margin-bottom: 1rem;
}
h2 {
font-size: 2rem;
8
color: #fff;
text-transform: uppercase;
font-weight: 700;
margin-bottom: 1rem;
}
p{
font-size: 1.5rem;
color: #fff;
font-weight: 700;
margin-bottom: 1rem;
}
a{
padding: 15px 20px;
background: #52caee;
font-size: 1rem;
text-decoration: none;
color: #333333;
border-radius: .25rem;
box-shadow: 0 0 20px rgba(255, 255, 255, 0.808)
}
</style>
</head>
<body>
<div class="container">
<h1>404</h1>
<h2>Page not found</h2>
<p>The page you are looking for does not exist.</p>
<p><a href="#">Visit Homepage</a></p>
</div>
</body>
</html>
3. Sample Output
file:///C:/Users/CJ/Documents/SampleSurvey.html
file:///C:/Users/CJ/Documents/Error404page.html
file:///C:/Users/CJ/Documents/Technical%20Documentation.html
9
III. CONCLUSION:
IV. REFERENCE/s
https://www.w3schools.com/html/default.asp
RUBRICS:
Design 50%
Completeness 30%
No Error 20%
Total
10