Professional Documents
Culture Documents
Purpose:
Advantage:
HTML XML
1
SOFIA SOFTWARE SOLUTIONS
Web Technology – HTML Technical Guide
HTML STRUCTURES:
<html>
<head>
</head>
Head is used to contain specific information about a web page often referred to as metadata. This
information includes things like the title of the document (which is mandatory),
as well as scripts or links to scripts, and CSS files.
<body>
</body>
When writing in HTML, the <body> tag is used to contain a web page's content, including hyperlinks,
images, tables, text, etc. It is required in every HTML document, and there may only be one
<body> tag per page.
</html>
TAGS:
➢ Basic Tags
➢ List
➢ Hyperlinks
➢ Form Objects
➢ Frameset
1. BASIC TAGS:
• Basic Tags are tags which are primarily used in the html.
• Example: <p>, <table>
1. PARAGRAPH TAG :
HTML paragraphs are defined with the <p> tag
SYNTAX:
2
SOFIA SOFTWARE SOLUTIONS
Web Technology – HTML Technical Guide
TABLE TAG :
• Each table row is defined with the <tr> tag. A table header is defined with the <th> tag.
By default, table headings are bold and centered. A table data/cell is defined with
the <td> tag.
EXAMPLE:
<table border='1'>
<tr><caption>Student list</caption></tr>
<tr>
<th>Roll No</th>
<th>Name</th>
</tr>
<tr>
<td>101</td>
<td>Rama</td>
</tr>
<tr>
<td>102</td>
<td>Ragu</td>
</tr>
</table>
OUTPUT:
<i> Italic Format Text </i> - Italic format for the Text
3
SOFIA SOFTWARE SOLUTIONS
Web Technology – HTML Technical Guide
Subscript:
Ex: H<sub>2</sub>0
Superscript:
Ex: H<sup>2</sup>
Heading Tag:
Any document starts with a heading. You can use different sizes for your headings. HTML also has six levels of
headings, which use the elements <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>.
Ex:
<p>Hello<br />
You delivered your assignment ontime.<br />
Thanks<br />
Mahnaz</p>
Horizontal Lines
Horizontal lines are used to visually break-up sections of a document. The <hr> tag creates a line from the
current position in the document to the right margin and breaks the line accordingly.
Inserted Text
Anything that appears within <ins>...</ins> element is displayed as inserted text.
4
SOFIA SOFTWARE SOLUTIONS
Web Technology – HTML Technical Guide
Marked Text
Anything that appears with-in <mark>...</mark> element, is displayed as marked with yellow ink.
Meta Tags
The META elements can be used to include name/value pairs describing properties of the HTML document,
such as author, expiry date, a list of keywords, document author etc.
<head>
<title>Meta Tags Example</title>
<meta name = "keywords" content = "HTML, Meta Tags, Metadata" />
</head>
HTML – Comments
HTML comments are placed in between <!-- ... --> tags. So, any content placed with-in <!-- ... --> tags
will be treated as comment and will be completely ignored by the browser.
HTML - Images
You can insert any image in your web page by using <img> tag. Following is the simple syntax to use this tag.
<img src = "Image URL" ... attributes-list/>
The <img> tag is an empty tag, which means that, it can contain only list of attributes and it has no closing tag.
<img src = "/html/images/test.png" alt = "Test Image" border = "3" align = "right"/>
5
SOFIA SOFTWARE SOLUTIONS
Web Technology – HTML Technical Guide
2. Hyperlinks:
• To make a hyperlink in an HTML page, use the <a> and </a> tags, which are the tags used to define
the links.
SYNTAX:
3. List:
• <ul> − An unordered list. This will list items using plain bullets.
<ul>
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ul>
• <ol> − An ordered list. This will use different schemes of numbers to list your items.
<ol>
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
6
SOFIA SOFTWARE SOLUTIONS
Web Technology – HTML Technical Guide
4. Form Objects:
A form will take input from the site visitor and then will post it to a back-end application such as CGI, ASP Script
or PHP script etc. The back-end application will perform required processing on the passed data based on
defined business logic inside the application.
The HTML <form> tag is used to create an HTML form and it has following syntax −
File
hidden
checkbox
radio
password
<input type=”text” name=””>
Button
Submit
Reset
Image
Label
<select>……</select>
<textarea>………</textarea>
</form>
FORM OBJECTS:
LABEL:
SYNTAX:
<label>NAME:</label>
7
SOFIA SOFTWARE SOLUTIONS
Web Technology – HTML Technical Guide
Syntax:
Example:
TEXTAREA:
If we get multi-line input from user by using this object.
SYNTAX:
Ex:
RADIO BUTTON:
User is selecting own single choice by using this object.
Syntax:
Example:
CHECK BOX:
To select Multiple Option in the Group of Items
Syntax:
Ex:
8
SOFIA SOFTWARE SOLUTIONS
Web Technology – HTML Technical Guide
Ex:
IMAGE:
The form object also used to show the image.
Ex:
FILE:
This object is content or object upload object.
Ex:
OUTPUT:
5. Frameset:
• The <frameset> element holds one or more <frame> elements. Each <frame> element can hold a
separate document.
9
SOFIA SOFTWARE SOLUTIONS
Web Technology – HTML Technical Guide
• The <frameset> element specifies HOW MANY columns or rows there will be in the frameset, and
HOW MUCH percentage/pixels of space will occupy each of them.
SYNTAX:
<frameset cols=”50%,50%”>
<frame src=”Address”>
<frame src=”Address”>
</frameset>
10