Professional Documents
Culture Documents
DEFINTIONS OF HTML
HTML stands for Hyper Text Markup
Language
HTML is the standard markup language for
creating Web pages
HTML describes the structure of a Web
page
HTML consists of a series of elements
TEXT EDITORS
Notepad
Web Matrix
TextWrangler
WEB BROWSERS
Opera
Explorer
Firefox
Netscape
Chrome
LAUNCHING TEXT EDITORS
1.Click
in the Search box on the
Taskbar.
2.Type “Notepad”
3.Click on “Notepad”
HTML ELEMENTS AND TAGS
What is an HTML Element?
An HTML element is a statement that involves a start tag,
some content, and an end tag:
<h1> content</h1>
The HTML element is everything from the start tag to the
end tag:
<h1>My First Heading</h1>
<p>My first paragraph.</p>
HTML TAG
A tag is always enclosed in angle brackets (<>) such as
<html>. It normally come in pairs like <head>…</head>.
<html> is called Starting or Opening tag.
</html> is also called Closing or Ending tag.
SYNTAX
<!doctype html>
<head><title>MGSHS</title></head>
<body>
</body>
</html>
SYNTAX OF HTML
The<!DOCTYPE html> element is the root element of an HTML
page which defines that this document is an HTML5 document
The<head> element contains meta information about the HTML
page or shows the header section of the webpage.
The<title> element specifies a caption for the HTML page in the
browser's title bar. It always found inside the head tags
<head><title>……</title></head>.
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
TYPES OF HTML TAGS
CONTAINER ELEMENT
Container element has start tag and end tag. Examples
<head>…</head>; <title>…</title>; <body>……</body>;
<b>…</b>; <p>…</p> etc.
EMPTY ELEMENT
Some HTML elements do not have an end tag with slash
and others also do not have contents. Examples are <br>…
<br>; <img>; <video>; <li> etc.
NESTED HTML ELEMENTS
HTML elements can be nested (this means that elements
can contain other elements).
All HTML documents consist of nested HTML elements.
The following example contains four HTML elements
(<html>, <body>, <h1> and <p>):
<!doctype html>
<head><title>MGSHS</title></head>
<body>
<h1>Welcome to MGSHS</h1>
<p>Students</p>
</body>
HTML ATTRIBUTES
<li>
ORDERED LIST TAGS
ORDEREED LIST TAGS are used to
group data in systematic order by the use
of numbers, roman numerals or letters. It
has other attributes such upper roman,
lower roman, upper case, lower case.
ATTRIBUTE TAG
<ol li type=a>
<li>Vincent
<li>Benning
<li>John
<li>Jonathan
</ol>
UNODERED LIST TAGS
UNORDERED LIST TAGS are used to group items
which do not follow systematic order or sequential
order by the use of bullets.
List tags are always within the Unordered list tags
<ul>
<li>Alice
<li>Vida
<li>Sara
</ul>
DEFINITION LIST TAGS
DEFINITION LIST TAGS are used to generate a list of items and
their definitions. Definition list has two attributes <dt> and <dd>.
<dt> tag is used to specify the definition term whiles <dd> tag is
used specify the definition itself (defining the term).
<dt> and <dd> tags are always within the Definition list tags
<dl>
<dt>Alice
<dd>Alice is a girl
<dt>Vincent
<dd>Vincent is a boy
</dl>
CREATING FORMS IN HTML
HTML form is used to collect data from the site
user. The user input is most often sent to a
server for processing.
The <form> Element
The HTML <form>………</form> Element is
used to create form for user input. It is a
container for different types of input elements
such as: text, checkbox, radio, submit, button
etc.
Type Description
Radio Buttons
The <input type="radio"> defines a radio button.
Radio buttons let a user select ONE of a limited number of choices.
<form>
<input type="radio" name=“Sex" value=“Female">Female<br>
</form>
CHECKBOX ELEMENT
The <input type="checkbox"> defines a checkbox.
Checkboxes let a user select ZERO or MORE
options of a limited number of choices.
Example
A form with checkboxes:
<form>
<input type="checkbox" name=“Elective Maths"
value=“on">Maths
<input type="checkbox" name=" Elective ICT "
value=“on">
</form>
THE SUBMIT BUTTON