Professional Documents
Culture Documents
Competency 7-HTML
Competency 7-HTML
GIT
Introduction
What is internet
The Internet is a worldwide collection of interconnected
computer networks.
Internet enables businesses, organizations, governments, and
individuals to communicate in a variety of ways.
One of the most popular ways users communicate on the
Internet is by publishing and interacting with Web pages.
Web Browsers:
A Web browser is software that allows users to view and interact
with Web pages.
e.g.:- Microsoft Internet Explorer, Mozilla Firefox, Apple Safari
and etc.
There are two main functions in the web Browser.
1. Read and interpret the Hypertext Mark-up Language (HTML)
used for creating the Web pages and then converts to a
format to display on the Web.
2. 2. Allow users to navigate Web pages
Web Page:
A Web page is just one single HTML file within Web site.
It has a unique name on a Web site.
It may have multimedia contents such as text, images,
graphics, animations, sounds, videos and hyperlinks etc
Home Page/Index Page:
The main page of any Web site is called the home page.
It is usually the first page a visitor sees when visiting a Web
site.
Usually it contains general information about the Web site
and related links.
Link Page:
There are some links on web pages. They are used to open
pages in same website or other web sites. These pages are
called link pages.
What is web site ?
A website is a collection of web pages and related content that is
identified by a common domain name and published on at least
one web server.
Entertainment Website
Nonprofit Website
Educational Website
Personal Website
Basic elements of a Web Page
elements is used to communicate information in different ways.
URL
Every Website has a unique address. This address is known as
Uniform Resource Locator (URL).
A URL is the location of a specific website, page, or file on the
Internet.
A uniform resource locator (URL) is basically what you would
call the website address.
List
of websites
http://bit.lk/
http://www.edupub.gov.lk/
https://www.facebook.com/
https://www.ebay.com/
https://grantha.lk/
https://www.echannelling.com/Echannelling/index
Website Requirement analysis
A process that assists in analysing challenges and opportunities with
respect to the business model of the website
http://bit.lk/
https://www.ebay.com/
Uses HTML to create web pages
HTML
HTML (HyperText Markup Language) is the most basic building
block of the Web. It defines the meaning and structure of web
content.
HTML notepad code
HTML Editors
HTML documents are plain text documents so you can use any
textediting program to code HTML and create a web page.
Ex :
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
HTML Paragraphs
HTML paragraphs are defined with the <p> tag:
Ex:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
HTML Links
HTML links are defined with the <a> tag:
<a href="https://www.ebay.com">This is a link to ebay</a>
HTML Images
HTML images are defined with the <img> tag.
The source file (src), alternative text (alt),width, and height are
provided as attributes:
Ex:
<img src=“apple.jpg" alt=“ebay.com" width="104" height="142"
>
Adding Comments :
You can use comments to write notes to yourself within an
HTML document.
Comments do not appear when a browser displays a Web page.
e.g. :- <! --Enter the comment here-- >
Background color
The body tag attribute ‘bgcolor’ specifies the background color
of a document.
Eg:-, or Color Value codes use for the attribute values.
Save the source code
When you save an HTML file, you can use either the “.htm” or
the “.html” extension.
We use “.htm” is a habit from the past when the software only
allowed three letters in file extensions.
In most cases, it is perfectly safe to use “.html”
HTML BODY elements
Text Formatting:
Lists
There are three main types available:- Ordered lists
1. Unordered lists
Ex: <ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul
2. Ordered List
Ex:
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Definition lists
A description list is a list of terms, with a description of each
term.
The <dl> tag defines the description list, the <dt> tag defines
the term (name), and the <dd> tag describes each term:
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
HTML Multimedia
Only MP3, WAV, and Ogg audio are supported by the HTML standard.
<!DOCTYPE html>
<html>
<body>
</body>
</html>
Create a basic HTML page
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>