7 - ICT - Refrence Material
7 - ICT - Refrence Material
Name: _______________________________________
Grade: ___________________Section: ____________
School: _________________________________________
____________________________________________________________________________________
INTRODUCTION:
HTML (or Hypertext Markup Language) is a programming language used to create web pages.
HTML is a relatively easy programming language to learn, which makes it a great place for kids to start
with coding in general or as another language to add to their repertoire. There’s no fixed number of how
many HTML tags exist. Based on the web development program being used, however, that number
usually lies between 80 and 150.
HTML Documents = Web Pages
STRUCTURE OF HTML:
Note: HTML is not case sensitive. <Title> is equivalent to <TITLE> or <Title>.If you want to prepare
yourself for the next generations of HTML you should start lowercase tags.
TAGS IN HTML
HTML markup tags are usually called HTML tags
By default, most browsers will show a white background with black text.
HEADING TAGS
There are 6 sizes to the header tag. 1 being the largest, 6 being the smallest. This example shows the
different sizes that can be created:
PARAGRAPH TAGS
Now that the text is in place, you can add some formatting tags. These tags allow you to
showyour text in different ways.
This is a quick, nearly painless way of throwing in a section divider.HR tag has various
LINE BREAK : The HTML <br> tag defines a line break. Unlike the <p> tag defining a paragraph,
an empty indent is not added before the line.
The <br> tag is used to enter line breaks. It is useful for writing addresses, poems or song lyrics.
<HTML>
<HEAD>
<TITLE>SAMPLE CODE</TITLE>
</HEAD>
<BODY BGCOLOR=”YELLOW”TEXT=”BLUE”>
<HR SIZE=”10”WIDTH=”200”COLOR=”RED”ALIGN=”RED”>
<BR>
<BR>
<FONT COLOR=”GREEN”SIZE=”5”FACE="arial>
<I>I love ICT Session, I am so excited to learn <STRONG>HTML</STRONG>, I will make my portfolio using
HTML</I>
</FONT>
<IMGSRC=”LOCATION\PICTURENAME.TYPE”WIDTH=”200”HEIGTH=”100”ALIGN=”RIGHT”ALT=”C
AN’T DISPLAY THE PICTURE”>
</HTML>
LINKING IN HTML
HTML Links are connections from one web resource to another. A link has two ends, An anchor and a
direction.
The link starts at the “source” anchor and points to the “destination” anchor, Anchor tags have an href attribute
specifying the destination URL. Links can lead to external sites or different sections within the same page,
enhancing website interactivity.
Note: A hyperlink can be represented by an image or any other HTML element, not just text.
By default, links will appear as follows in all browsers:
An unvisited link is underlined and blue
A visited link is underlined and purple
An active link is underlined and red
Syntax:<a href="url">link text</a>
<html>
<head>
<title>HTML Links</title>
</head>
<body>
<p>Click on the following link</p>
<a href="https://https://sms.dpsgs.org/">School SMS</a>
</body>
</html>
LIST IN HTML
An HTML list is a record of related information used to display the data or any information on web pages in
the ordered or unordered form.
<ol>
<li>...</li>
<li>...</li>
<li>...</li>
</ol>
The type attribute of <ol> tag specifies the order we want to create.
Type Descriptions
type=”I” This will list the items with uppercase Roman numbers.
type=”i” This will list the items with lowercase Roman numbers.
<html>
<head>
<title>
Uppercase Letters Ordered List
</title>
</head>
<body>
<h2>Uppercase Letters Ordered List</h2>
<ol type="A">
<li>Apple</li>
<li>Banana</li>
<li>Cherry</li>
<li>Date</li>
</ol>
</body></html>
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
Unordered Lists Style Types:
Values Descriptions
<ul type="circle">
<li>Item 1</li>
<li>Item 2</li>
</ul>
TABLES IN HTML
An HTML Table is an arrangement of data in rows and columns in tabular format. Tables are
useful for various tasks, such as presenting text information and numerical data. A table is a useful
tool for quickly and easily finding connections between different types of data. Tables are also used
to create databases.
TABLE ATTRIBUTES
Attributes and tags Illustrations
Cell spacing
(Cell spacing is the space between each cell. <table cellspacing="">...</table>
By default the space is set to 2 pixels.)
Cell padding
(gap between borders and data in the table, this gap <table cellpadding="">...</table>
is known as cell padding.)
<html>
<body>
<table border="2"width="5"heigth="5"align="right"bgcolor="yellow">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Priya</td>
<td>Sharma</td>
<td>24</td>
</tr>
<tr>
<td>Arun</td>
<td>Singh</td>
<td>32</td>
</tr>
<tr>
<td>Sam</td>
<td>Watson</td>
<td>41</td>
</tr>
</table></body>
</html>
Individual Assignment
Requirements:
Tips:
UI1 Individual Activity. Your file name should be like this : [yourname]_UI1_HTML