IT 2 Module
IT 2 Module
IT 2
“’Committed to your
SISTECH Bldg., Corner Alvarez & Gov. Gaffud St., brighter future through
Villasis, Santiago City, Philippines quality education”’
Tele. Fax. No. (078) 305-0849 Email: [email protected]
SISTECH COLLEGE
OF SANTIAGO CITY, INC.
What is PROGRAMMING?
Automation
Applications / Softwares (Computer or Mobile)
Operating Systems
Games (Online/Oflline)
PROGRAMMING LANGUAGES - are the tools we use to write instructions for computers to follow.
1. C/C#
2. C++
3. JAVA
4. KOTLIN
5. RUBY
6. PHYTON
7. JAVASCRIPT
8. PHP
“’Committed to your
SISTECH Bldg., Corner Alvarez & Gov. Gaffud St., brighter future through
Villasis, Santiago City, Philippines quality education”’
Tele. Fax. No. (078) 305-0849 Email: [email protected]
SISTECH COLLEGE
OF SANTIAGO CITY, INC.
4. Scripting Languages – instead of compiling it into machine code, it will interpret the code before the
execution. (Javascript and Php)
5. Functional languages – through a collection of smaller functions it work with the idea of building
complex programs (Haskell and Scala)
6. Object-oriented Languages – this works with the idea of building programs around collections of
objects. (JAVA and Python)
-
1. HTML (Hyper Text Markup Language) is the language in which most websites are written. HTML
is used to create pages and make them functional.
2. CSS (Cascading Style Sheet) - is a language for specifying how documents are presented to users —
how they are styled, laid out, etc.
3. JS (JavaScript) - JavaScript is a dynamic programming language that's used for web development, in
web applications, for game development, and lots more. It allows you to implement dynamic features
on web pages that cannot be done with only HTML and CSS.
ELEMENTS OF HTML
An HTML file is made of elements. These elements are responsible for creating web pages and define
content in that webpage. An element in HTML usually consist of a start tag <tag name>, close tag </tag
name> and content inserted between them. Technically, an element is a collection of start tag, attributes,
end tag, content between them.
“’Committed to your
SISTECH Bldg., Corner Alvarez & Gov. Gaffud St., brighter future through
Villasis, Santiago City, Philippines quality education”’
Tele. Fax. No. (078) 305-0849 Email: [email protected]
SISTECH COLLEGE
OF SANTIAGO CITY, INC.
1. Opening tag: It is used to tell the browser where the content material starts.
2. Closing tag: It is used to tell the browser where the content material ends.
3. Content: It is the actual content material inside the opening and closing tag.
Example 1: In this example <p> is a starting tag, </p> is an ending tag and it contains some content
between the tags, which form an element.
<!DOCTYPE html>
<html>
<head> Output:
<title>HTML Elements</title>
</head>
<body>
<h2>Welcome Sistechians.</h2>
<p> Hi Freshmen! We’re happy to see you. </p>
</body>
</html>
Example 2: This example illustrates the use of the HTML paragraph element.
<!-- HTML code to illustrate HTML elements -->
<!DOCTYPE html>
<html>
<head>
<title>HTML Elements</title>
</head> Output:
<body>
<p>Welcome to Sistechians!</p>
</body>
</html>
Example 3:
This example describes the use of the Nested HTML elements. Here, <html> tag contains
the <head> and <body>. The <head> and <body> tag contains another elements so it is called nested
element.
“’Committed to your
SISTECH Bldg., Corner Alvarez & Gov. Gaffud St., brighter future through
Villasis, Santiago City, Philippines quality education”’
Tele. Fax. No. (078) 305-0849 Email: [email protected]
SISTECH COLLEGE
OF SANTIAGO CITY, INC.
<!DOCTYPE html>
<html>
<head> Output:
<title>HTML Elements</title>
</head>
<body style="text-align: center">
<h1>SISTECH</h1>
<p>College of Santiago City, Inc.</p>
</body>
</html>
Example 4: This example describes the HTML element by specifying the end tag.
<!DOCTYPE html>
<html>
<head> Output:
<title>HTML Elements</title>
</head>
<body>
<!-- h1 tag contains the
end tag -->
<h1>SISTECH COLLEGE</h1>
<!-- p tag contains the
end tag -->
<p>Freshmen Portal</p>
</body>
</html>
Example 5: In this example <br> tag doesn’t print anything. It is used as a line break that breaks the
line between <h2> and <p> tag.
“’Committed to your
SISTECH Bldg., Corner Alvarez & Gov. Gaffud St., brighter future through
Villasis, Santiago City, Philippines quality education”’
Tele. Fax. No. (078) 305-0849 Email: [email protected]
SISTECH COLLEGE
OF SANTIAGO CITY, INC.
<!DOCTYPE html>
Output:
<html>
<head>
<title>Empty HTML Elements</title>
</head>
<body>
<h2>Welcome To SISTECH</h2>
<br />
<p>Hello Students.</p>
</body>
</html>
Here are the rules that you should follow in order to have seamless HTML syntax:
<p> This is for paragraph tag </p> <em> This is for emphasized tag </em>
“’Committed to your
SISTECH Bldg., Corner Alvarez & Gov. Gaffud St., brighter future through
Villasis, Santiago City, Philippines quality education”’
Tele. Fax. No. (078) 305-0849 Email: [email protected]
SISTECH COLLEGE
OF SANTIAGO CITY, INC.
B.
A.
A.<!DOCTYPE html> _____ 1. It placed the main content of
the Document.
<html>
_____ 2. It used to insert line breaks
B.<head> in the text.
<title>HTML Elements</title> _____ 3. Use for paragraph tags.
“’Committed to your
SISTECH Bldg., Corner Alvarez & Gov. Gaffud St., brighter future through
Villasis, Santiago City, Philippines quality education”’
Tele. Fax. No. (078) 305-0849 Email: [email protected]
SISTECH COLLEGE
OF SANTIAGO CITY, INC.
Activity 2: Write a Poem (At least 50 Words) using the Elements of HTML and follow the rules in
order to create your simple HTML Document.
GUIDE:
<!DOCTYPE html>
<html>
<head>
<title>POEM_YourName</title>
</head>
<body>
<h1>TITLE</h1>
<br>
<p>Content/Body of your Poem</p>
</body>
</html>
“’Committed to your
SISTECH Bldg., Corner Alvarez & Gov. Gaffud St., brighter future through
Villasis, Santiago City, Philippines quality education”’
Tele. Fax. No. (078) 305-0849 Email: [email protected]