HTML.ppt this is about html introduction elelments of a web page, structure and an example

edieali1 8 views 7 slides May 08, 2024
Slide 1
Slide 1 of 7
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7

About This Presentation

html intro


Slide Content

Web Development: Introduction to HTML
Syllabus reference (6.2):

2
6.2.1 Understanding HTML
Awebsiteisacollectionofrelatedwebpagesandthe
languageusedtogenerateawebpageiscalledasHTML
whichistheabbreviationofHyperTextMarkupLanguage.

3
HTML is an abbreviation:
Markup Language:
Markup Languages which are used to describe a
document (here webpage) and describe means to create
(the object / elements) and format the document. HTML
lies in this category. For example, like <h1> this is my
text </h1>.
In this example, this is my text is marked up with h1
element.
Hypertext: with the help of anchor element, HTML
changes simple text into hypertext that allows for linking to
other documents or resources. For example “click here”.

4
6.2.3 Understanding HTML Tags
Asahumanbodyiscomposedofcells,HTMLiscomposedof
HTMLelementsconsistingoftagsenclosedinanglebrackets
like<head></head><body></body></html>.UsuallyHTML
elementshaveanopeningandaclosingtag.
Theseelementsmayhavesomefurtherpropertiescalledas
attributeswhichareusuallydescribedasname-valuepairsin
startingtag.Andelementmayalsocontainsomein-between
textorimage.Example:<h1align=”center”>MyText</h1>
AnHTMLelementhasthefollowingstructure:
SimpleTag:<Tag-Name>content</Tag-Name>
Example:<h1>Pakistan</h1>
TagwithAttribute:<bodybgcolor=“green”>Pakistanisour
country</body>
SomeHTMLtagssuchasareemptytagssuchas<br>which
meansthattheydon'trequireaclosingtag.

5
6.2.2 Steps in creating a web page
Step 1: Text Editor
Start by simply creating a new blank le in a text editor of your choice. A simple
text editor like notepad can be used to start coding HTML for a web page.
Step 2: Write HTML code in Text Editor
Example:

6
Steps of routing:
Step 3: Save HTML Page Go to File menu and click on Save. Make sure to
provide .htm or .html extension for the file being saved. This will save the
document as a web page instead of a plain text file.
Step 4: View HTML Page in Browser Open the saved HTML le in your default
web browser. The web browser will automatically translate HTML codes to
correctly display
the web page.

7
Basic structure of a HTML page:
:Step 3: Save HTML Page Go to File menu and click on Save. Make sure to
provide .htm or .html extension for the file being saved. This will save the
document as a web page instead of a plain text file.
Step 4: View HTML Page in Browser Open the saved HTML le in your default
web browser. The web browser will automatically translate HTML codes to
correctly display
the web page.
Tags