G8 - CSS Microproject (SR NO-19,20,21)
G8 - CSS Microproject (SR NO-19,20,21)
VIDYAVARDHINI’S BHAUSAHEB
VARTAK 0POLYTECHNIC
MICRO PROJECT
Academic year: 2020-21
1
MAHARASHTRA STATE BOARD OF
TECHNICAL EDUCATION
Certificate
This is to certify that Ms. Sneden Andrades, Roll No. 1836
of Fifth Semester of Diploma in Computer Engineering Of Institute, B.V.
POLYTECHNIC (Code: 0093) has completedthe Micro Project satisfactorily in
Subject – CSS (22519) for the academic year 2020- 2021 as prescribed in the curriculum.
Seal of
Institut
e
2
Annexure - I
Part A: Micro Project Proposal
3
Annexure- II
1.0 Rationale:
Java Script is limited featured client-side programming language. Java Script runs at the
client end through the user’s browser without sending messages back and forth to the server.
It is widely used by the web developers to do things such as build dynamic web pages,
respond to events, create interactive forms, validate data that the visitor enters into a form,
control the browser etc. This course helps student to create highly interactive web page using
these features.
4
6.0 Skill Developed/Learning outcomes of this Micro-Project
In this project we learned how to do list using JavaScript, HTML and CSS. We
understood the basic concepts of the above. Finally, we understood how to implement these
concepts in actual coding.
5
Annexure - III
6
INDEX
Sr.
Content Page
No.
No.
1. Introduction 8
2. Description of 9
the Code
3. Code 11
4. Output 16
5. Conclusion 17
6. References 18
7
TO DO WORKLIST
Introduction
To Do List
To do work list, lists everything that you have to do, with the most important tasks at the top of
the list, and the least important tasks at the bottom. By keeping such a list, you make sure that
your tasks are written down all in one place so you don't forget anything important. One of the
most important reasons you should use a to do list is that it will help you stay organized. When
you write all your tasks in a list, they seem more manageable. When you've got a clear outline of
the tasks you've got to do and those you've completed, it helps you stay focused. It's possible to
have a to-do list that energizes you, helps you prioritize your day, and motivates you to keep
moving forward, even after those inevitable distractions or setbacks. Now a days many apps are
available to work as to do list.
Html
HTML stands for Hyper Text Markup Language. It is the standard markup language for creating
Web pages. It also describes the structure of a Web page. It consists of a series of elements.
HTML elements tell the browser how to display the content. It contains elements label pieces of
content such as "this is a heading", "this is a paragraph", "this is a link", etc.
The <!DOCTYPE html> declaration defines that this document is an HTML5 document
The <html> element is the root element of an HTML page
The <head> element contains meta information about the HTML page
The <title> element specifies a title for the HTML page (which is shown in the browser's title
bar or in the page's tab)
The <body> element defines the document's body, and is a container for all the visible contents,
such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
The <h1> element defines a large heading
The <p> element defines a paragraph
CSS
CSS stands for Cascading Style Sheets. CSS describes how HTML elements are to be displayed
on screen, paper, or in other media. CSS saves a lot of work. It can control the layout of multiple
web pages all at once. External stylesheets are stored in CSS files. CSS is used to define styles
for your web pages, including the design, layout and variations in display for different devices
and screen sizes.
Java-Script
JavaScript is a text-based programming language used both on the client-side and server-side
that allows you to make web pages interactive. Where HTML and CSS are languages that give
structure and style to web pages, JavaScript gives web pages interactive elements that engage a
user. JavaScript is a lightweight, cross-platform, and interpreted scripting language. It is well-
known for the development of web page many non-browser environments also use it. JavaScript
can be used for Client-side developments as well as Server-side developments.
8
Program
Description of code
Margin - Individual Sides
CSS has properties for specifying the margin for each side of an element:
• margin-top
• margin-right
• margin-bottom
• margin-left
inherit - specifies that the margin should be inherited from the parent element
CSS links
The four links states are:
• a: link - a normal, unvisited link
• a:visited - a link the user has visited
• a:hover - a link when the user mouses over it
• a:active - a link the moment it is clicked
Divisions- The <div> ta defines a division or a section in an HTML document. It is also used as
a container for HTML elements- which is then styled with CSS or manipulated with Java-script.
It is easily styled by using the class or id attribute.
CSS Font property is used to control the look of texts. By the use of CSS font property, you can
9
change the text size, color, style and more. You have already studied how to make text bold or
underlined. Here, you will also know how to resize your font using percentage. These are some
important font attributes:
1. CSS Font color: This property is used to change the color of the text. (standalone
attribute)
2. CSS Font family: This property is used to change the face of the font.
3. CSS Font size: This property is used to increase or decrease the size of the font.
4. CSS Font style: This property is used to make the font bold, italic or oblique.
5. CSS Font variant: This property creates a small-caps effect.
6. CSS Font weight: This property is used to increase or decrease the boldness and lightness
of the font.
7. CSS Background: This property is used to define the background effects on element.
There are 5 CSS background properties that affects the HTML elements:
background-color
background-image
background-repeat
background-attachment
background-position
1.getElementById() method
2.Example of getElementById()
Events Description
10
Code
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0;
min-width: 250px;
}
/* Include the padding and border in an element's total width and height
*/
* {
box-sizing: border-box;
}
11
/* Darker background-color on hover */
ul li:hover {
background: #ddd;
}
/* When clicked on, add a background color and strike out text */
ul li.checked {
background: #888;
color: #fff;
text-decoration: line-through;
}
.close:hover {
background-color: #f44336;
color: white;
}
12
text-align: center;
}
.addBtn:hover {
background-color: #bbb;
}
</style>
</head>
<body>
13
<input type="text" id="myInput" placeholder="Title...">
<span onclick="newElement()" class="addBtn">Add</span>
</div>
<ul id="myUL">
<li class="checked">Hit the gym</li>
<li class="checked">Pay bills</li>
<li>Meet George</li>
<li>Buy eggs</li>
<li>Read a book</li>
<li>Organize office</li>
</ul>
<script>
// Create a "close" button and append it to each list item
var myNodelist = document.getElementsByTagName("LI");
var i;
for (i = 0; i < myNodelist.length; i++) {
var span = document.createElement("SPAN");
var txt = document.createTextNode("\u00D7");
span.className = "close";
span.appendChild(txt);
myNodelist[i].appendChild(span);
}
14
var li = document.createElement("li");
var inputValue = document.getElementById("myInput").value;
var t = document.createTextNode(inputValue);
li.appendChild(t);
if (inputValue === '') {
alert("You must write something!");
} else {
document.getElementById("myUL").appendChild(li);
}
document.getElementById("myInput").value = "";
</body>
</html>
15
Output
16
Conclusion
The main aim of developing to do work list is to provide a place to have updates about their
work the users. User’s friendliness is a must that is the user must be able to update and delete the
list. Hence, we have learnt about website successfully.
We have successfully developed a website of to do list with help of html, java script and css.
17
Reference
https://www.google.com/
https://www.w3schools.com/
code-projects.org
www.javatpoint.com
https://css-tricks.com/
https://www.geeksforgeeks.org/
www.youtube.com
Nirali Publication Book
18