SlideShare a Scribd company logo
Fundamentals of Web designing
Ministry of Higher Education
Bamyan University
Computer Science Department
1
Presented by : Mustafa Kamel Mohammadi
Email : bamian.cs@gmail.com
HTML (Hypertext Markup Language) introduction
learning objective
 In this chapter you will learn
 What is HTML?
 Structure of n HTML document
2
What is hypertext?
• Web pages can contain many kinds of content, such as text, graphics, forms,
audio and video files, and interactive games.
• HTML is the cement that holds a Web page together.
• HTML files that produce Web pages are just text documents.
• But Web pages aren’t merely text documents. They’re made with a special kind
of text called HTML.
• HTML is a collection of instructions that specifies how your page should look and
behave.
• Special instructions in HTML permit text to point (link) to something else. Such
pointers are called hyperlinks.
• Hyperlinks are the glue that holds the World Wide Web together. In your Web
browser
3
Markup?
• Web browsers were created to read HTML instructions (known as markup) and
display the resulting Web page.
• Markup lives in a text file (with your content) to give orders to a browser.
4
So what is HTML ?
HTML is a hypertext markup language!
5
Syntax and rules
• HTML markups are made of three types of components
• Elements
• Attributes
• Entities
• Every markup may be made of a combination of these components
6
HTML Element
• Is the building block of HTML pages
• Elements are made of
• Tags
• Content in the tags
• Two types of elements are identified
• Element that have content and are made of a pair of tags
• Element that inserts an object and made of a single tag
7
Pair tag elements
• Elements that describe content use a tag pair to mark the beginning and the end
of the element, Start and end tag.
• <tag>...</tag>
• Contents such as paragraphs, headings, tables and lists always uses a tag pair
• The start tag (<tag>) tells the browser, “The element begins here.”
• The end tag (</tag>) tells the browser, “The element ends here.”
• The actual content is what occurs between the start tag and end tag.
• <p> this is a paragraph </p>
8
Single tags
• Elements that insert something into the page are called empty elements
• <tag />
• Images and line breaks insert something into the HTML file, so they use one tag.
<img
src=”red_grapes.jpg” width=”75” height=”100” alt=”Red Grapes”
align=”middle” hspace=”5”
/>
9
Nesting elements
• Many page structures combine nested elements
<ul>
<li>Barbera</li>
<li>Brunello</li>
</ul>
10
Attributes
• Attributes allow variety in how an element describes content or works
• You include attributes within the start tag of the element you want them with,
after the element name but before the ending sign, like this:
<tag attribute=”value” attribute=”value”>
• Attribute values must be enclosed in quotation marks
• Every element has its own set of applicable attributes
• Some attributes are globally applied on all elements
11
Entities
• Entities are special characters that you can display on your Web page.
• It include some special characters, such as trademark symbols, fractions, and
accented characters.
• The ampersand character (&) instructs the browser that the following stream are
character entity.
• Ex:
• &lt = less than character
• &gt = greater than
• &copy = copyright sign
12
Before getting started!
• Creating HTML documents differs from creating word-processor documents in an
application like Microsoft Word because you use two applications:
• You create the Web pages in your text or HTML editor.
• You view the results in your Web browser.
13
Creating a Page from Scratch
• Using HTML to create a Web page from scratch involves four straightforward
steps:
1. Plan your page design.
2. Combine HTML and text in a text editor to make that design a reality.
3. Save your page.
a. Save your page as .html or .htm file extensions
4. View your page in a Web browser.
14
HTML page structure
• every properly constructed HTML page needs the same basic document
structure that includes
• A statement that identifies the type of HTML document called DOCTYPE
• A document header
• A document body
15
HTML DOCTYPE
• At the top of your HTML document should be the Document Type Declaration or
DOCTYPE declaration.
• Relevant HTML DOCTYPE
• HTML 4.01
• XHTML 1.0
• HTML 5
• HTML 5 is the newest version of HTML that almost all browsers support this
• <!DOCTYPE html> is the syntax of HTML 5 doctype declaration
16
Html tag
• After you specify which version of (X)HTML the document follows, add an <html>
element to hold all the other (X)HTML elements in your page.
<!DOCTYPE html>
<html>
// all other elements of html goes here
</html>
17
Header of web page
• Inserted in HTML tag.
• Is one of the two main components of HTML document
• Provides basic info about page
• Adding title
• Adding meta data
• Keywords
• Author info
• Description
• Adding style sheet
18
Cont.
• Adding title
• Adding description
<!DOCTYPE html>
<html
<head>
<title>Bamyan IT Consulting Service</title>
<meta name=”keywords” content=”IT consulting, MCSE, networking” />
<meta name=”description” content=”An overview of Bamyan Service company services” />
</head>
</html>
• Content of meta tag do not affect page appearance
19
Body tag
• The <body> element holds the content of your document.
• Every thing that you want to show come in body tag
<HTML>
<head>
</head>
<body>
</body>
</HTML>
20
Posting Your Page Online
1. Find a Web hosting provider to hold your Web pages.
2. Use an FTP client or a Web browser to make a connection to your Web server.
3. Copy the HTML file from your hard drive to the Web server.
4. Use your Web browser to view the file via the Internet.
21
22
References
• “HTML 4 dummies 5th edition” by Ed Tittel & Mary Burmeister
• “HTML 5 designing rich internet applications” by Mathew Dawid
• “HTML in ten simple steps” by Robert G. fuller
23

More Related Content

What's hot (19)

PPT
Creating WebPages using HTML
Mohammad Arshad
 
PPTX
How to create basic webpage
James Erro
 
PPT
Web designing using html
julicris021488
 
PPT
Introduction to HTML
yht4ever
 
PPT
HTML Introduction
c525600
 
PDF
1. HTML
Pavle Đorđević
 
PPTX
Html introduction by ikram niaz
ikram niaz
 
PPTX
Introduction to HTML
Ameer Khan
 
PPTX
Basics of HTML
Anshuman Tandon
 
PPT
Html introduction
Nuhu Abdul Razak
 
PPTX
Html 5
DanellaPatrick
 
PPTX
HTML Basic, CSS Basic, JavaScript basic.
Beqa Chacha
 
PPTX
basic introduction of html tags
Manish jariyal
 
PPTX
Introduction to html course digital markerters
SEO SKills
 
PDF
Introduction to WEB HTML, CSS
University of Technology
 
PPTX
Web Page Designing
Amit Mali
 
PPTX
Html 5
Arashdeepkaur16
 
PPT
HTML
CONNECTINGTO
 
PPT
Html basic
Charitha Bandara
 
Creating WebPages using HTML
Mohammad Arshad
 
How to create basic webpage
James Erro
 
Web designing using html
julicris021488
 
Introduction to HTML
yht4ever
 
HTML Introduction
c525600
 
Html introduction by ikram niaz
ikram niaz
 
Introduction to HTML
Ameer Khan
 
Basics of HTML
Anshuman Tandon
 
Html introduction
Nuhu Abdul Razak
 
HTML Basic, CSS Basic, JavaScript basic.
Beqa Chacha
 
basic introduction of html tags
Manish jariyal
 
Introduction to html course digital markerters
SEO SKills
 
Introduction to WEB HTML, CSS
University of Technology
 
Web Page Designing
Amit Mali
 
Html basic
Charitha Bandara
 

Viewers also liked (9)

PPTX
C Programming Language Tutorial for beginners - JavaTpoint
JavaTpoint.Com
 
PPTX
Basic of web design
Singsys Pte Ltd
 
PPTX
Overview of c language
shalini392
 
PPT
Introduction to html
vikasgaur31
 
PDF
C notes.pdf
Durga Padma
 
PPTX
C language ppt
Ğäùråv Júñêjå
 
PPT
Basics of C programming
avikdhupar
 
PPTX
Introduction to C Programming
Amr Ali (ISTQB CTAL Full, CSM, ITIL Foundation)
 
PPSX
INTRODUCTION TO C PROGRAMMING
Abhishek Dwivedi
 
C Programming Language Tutorial for beginners - JavaTpoint
JavaTpoint.Com
 
Basic of web design
Singsys Pte Ltd
 
Overview of c language
shalini392
 
Introduction to html
vikasgaur31
 
C notes.pdf
Durga Padma
 
C language ppt
Ğäùråv Júñêjå
 
Basics of C programming
avikdhupar
 
INTRODUCTION TO C PROGRAMMING
Abhishek Dwivedi
 
Ad

Similar to Web design - HTML (Hypertext Markup Language) introduction (20)

PPTX
9781285852645_CH01 research and analysis of data.pptx
clement swarnappa
 
PPT
Introduction to Web Technology and Web Page Development
BhargaviDalal4
 
PPTX
WEB TECHNOLOGY SLIDE 2 coe35mgfdggdh.pptx
simukondasankananji8
 
PPT
HTML course.ppt
RyanTeo35
 
PPTX
About html
Manvigangwar
 
PPTX
web programming, Introduction to html tags
E.M.G.yadava womens college
 
PPTX
Web Design and Programming-Lab-4-HTML-II-Exercise
RafsanJani65
 
PPTX
Unit_II.pptx thtrhththtrhjjuyujymkfhtyhkmythkymkykymnkmyjnmyjmnykn
PriyanshuGarg59
 
PPTX
HTML - LinkedIn
Gino Louie Peña, ITIL®,MOS®
 
PPTX
html -Hyper Text Markup Languagejjjjjjjjjjjjjjjjjjjjjjjjj
NetajiGandi1
 
PPTX
Appdev appdev appdev app devAPPDEV 1.2.pptx
ArjayBalberan1
 
PPTX
Mastering HTML: The Building Blocks of the Web
umarkhan92391
 
PDF
Web engineering notes unit 3
inshu1890
 
PDF
Web Concepts - an introduction - introduction
clement swarnappa
 
PPTX
Xhtml and html5 basics
messinam
 
PPT
Introduction to html
Jonathan Arroyo
 
PDF
Web Engineering UNIT III as per RGPV Syllabus
NANDINI SHARMA
 
PPT
Html book2
Diksha Garg
 
PPTX
Web technologies-course 02.pptx
Stefan Oprea
 
PPT
Html
SBalan Balan
 
9781285852645_CH01 research and analysis of data.pptx
clement swarnappa
 
Introduction to Web Technology and Web Page Development
BhargaviDalal4
 
WEB TECHNOLOGY SLIDE 2 coe35mgfdggdh.pptx
simukondasankananji8
 
HTML course.ppt
RyanTeo35
 
About html
Manvigangwar
 
web programming, Introduction to html tags
E.M.G.yadava womens college
 
Web Design and Programming-Lab-4-HTML-II-Exercise
RafsanJani65
 
Unit_II.pptx thtrhththtrhjjuyujymkfhtyhkmythkymkykymnkmyjnmyjmnykn
PriyanshuGarg59
 
html -Hyper Text Markup Languagejjjjjjjjjjjjjjjjjjjjjjjjj
NetajiGandi1
 
Appdev appdev appdev app devAPPDEV 1.2.pptx
ArjayBalberan1
 
Mastering HTML: The Building Blocks of the Web
umarkhan92391
 
Web engineering notes unit 3
inshu1890
 
Web Concepts - an introduction - introduction
clement swarnappa
 
Xhtml and html5 basics
messinam
 
Introduction to html
Jonathan Arroyo
 
Web Engineering UNIT III as per RGPV Syllabus
NANDINI SHARMA
 
Html book2
Diksha Garg
 
Web technologies-course 02.pptx
Stefan Oprea
 
Ad

More from Mustafa Kamel Mohammadi (10)

PPTX
Web design - Working with forms in HTML
Mustafa Kamel Mohammadi
 
PPTX
Web design - Working with tables in HTML
Mustafa Kamel Mohammadi
 
PPTX
Web design - Working with Links and Images
Mustafa Kamel Mohammadi
 
PPTX
Web design - Working with Text and Lists in HTML
Mustafa Kamel Mohammadi
 
PPTX
Web design - How the Web works?
Mustafa Kamel Mohammadi
 
PPTX
Web design - Applications and web application definition
Mustafa Kamel Mohammadi
 
PPTX
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Mustafa Kamel Mohammadi
 
PPTX
Fundamentals of database system - Relational data model and relational datab...
Mustafa Kamel Mohammadi
 
PPTX
Fundamentals of database system - Database System Concepts and Architecture
Mustafa Kamel Mohammadi
 
PPTX
Fundamentals of Database system - Databases and Database Users
Mustafa Kamel Mohammadi
 
Web design - Working with forms in HTML
Mustafa Kamel Mohammadi
 
Web design - Working with tables in HTML
Mustafa Kamel Mohammadi
 
Web design - Working with Links and Images
Mustafa Kamel Mohammadi
 
Web design - Working with Text and Lists in HTML
Mustafa Kamel Mohammadi
 
Web design - How the Web works?
Mustafa Kamel Mohammadi
 
Web design - Applications and web application definition
Mustafa Kamel Mohammadi
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Mustafa Kamel Mohammadi
 
Fundamentals of database system - Relational data model and relational datab...
Mustafa Kamel Mohammadi
 
Fundamentals of database system - Database System Concepts and Architecture
Mustafa Kamel Mohammadi
 
Fundamentals of Database system - Databases and Database Users
Mustafa Kamel Mohammadi
 

Recently uploaded (20)

DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 

Web design - HTML (Hypertext Markup Language) introduction

  • 1. Fundamentals of Web designing Ministry of Higher Education Bamyan University Computer Science Department 1 Presented by : Mustafa Kamel Mohammadi Email : [email protected] HTML (Hypertext Markup Language) introduction
  • 2. learning objective  In this chapter you will learn  What is HTML?  Structure of n HTML document 2
  • 3. What is hypertext? • Web pages can contain many kinds of content, such as text, graphics, forms, audio and video files, and interactive games. • HTML is the cement that holds a Web page together. • HTML files that produce Web pages are just text documents. • But Web pages aren’t merely text documents. They’re made with a special kind of text called HTML. • HTML is a collection of instructions that specifies how your page should look and behave. • Special instructions in HTML permit text to point (link) to something else. Such pointers are called hyperlinks. • Hyperlinks are the glue that holds the World Wide Web together. In your Web browser 3
  • 4. Markup? • Web browsers were created to read HTML instructions (known as markup) and display the resulting Web page. • Markup lives in a text file (with your content) to give orders to a browser. 4
  • 5. So what is HTML ? HTML is a hypertext markup language! 5
  • 6. Syntax and rules • HTML markups are made of three types of components • Elements • Attributes • Entities • Every markup may be made of a combination of these components 6
  • 7. HTML Element • Is the building block of HTML pages • Elements are made of • Tags • Content in the tags • Two types of elements are identified • Element that have content and are made of a pair of tags • Element that inserts an object and made of a single tag 7
  • 8. Pair tag elements • Elements that describe content use a tag pair to mark the beginning and the end of the element, Start and end tag. • <tag>...</tag> • Contents such as paragraphs, headings, tables and lists always uses a tag pair • The start tag (<tag>) tells the browser, “The element begins here.” • The end tag (</tag>) tells the browser, “The element ends here.” • The actual content is what occurs between the start tag and end tag. • <p> this is a paragraph </p> 8
  • 9. Single tags • Elements that insert something into the page are called empty elements • <tag /> • Images and line breaks insert something into the HTML file, so they use one tag. <img src=”red_grapes.jpg” width=”75” height=”100” alt=”Red Grapes” align=”middle” hspace=”5” /> 9
  • 10. Nesting elements • Many page structures combine nested elements <ul> <li>Barbera</li> <li>Brunello</li> </ul> 10
  • 11. Attributes • Attributes allow variety in how an element describes content or works • You include attributes within the start tag of the element you want them with, after the element name but before the ending sign, like this: <tag attribute=”value” attribute=”value”> • Attribute values must be enclosed in quotation marks • Every element has its own set of applicable attributes • Some attributes are globally applied on all elements 11
  • 12. Entities • Entities are special characters that you can display on your Web page. • It include some special characters, such as trademark symbols, fractions, and accented characters. • The ampersand character (&) instructs the browser that the following stream are character entity. • Ex: • &lt = less than character • &gt = greater than • &copy = copyright sign 12
  • 13. Before getting started! • Creating HTML documents differs from creating word-processor documents in an application like Microsoft Word because you use two applications: • You create the Web pages in your text or HTML editor. • You view the results in your Web browser. 13
  • 14. Creating a Page from Scratch • Using HTML to create a Web page from scratch involves four straightforward steps: 1. Plan your page design. 2. Combine HTML and text in a text editor to make that design a reality. 3. Save your page. a. Save your page as .html or .htm file extensions 4. View your page in a Web browser. 14
  • 15. HTML page structure • every properly constructed HTML page needs the same basic document structure that includes • A statement that identifies the type of HTML document called DOCTYPE • A document header • A document body 15
  • 16. HTML DOCTYPE • At the top of your HTML document should be the Document Type Declaration or DOCTYPE declaration. • Relevant HTML DOCTYPE • HTML 4.01 • XHTML 1.0 • HTML 5 • HTML 5 is the newest version of HTML that almost all browsers support this • <!DOCTYPE html> is the syntax of HTML 5 doctype declaration 16
  • 17. Html tag • After you specify which version of (X)HTML the document follows, add an <html> element to hold all the other (X)HTML elements in your page. <!DOCTYPE html> <html> // all other elements of html goes here </html> 17
  • 18. Header of web page • Inserted in HTML tag. • Is one of the two main components of HTML document • Provides basic info about page • Adding title • Adding meta data • Keywords • Author info • Description • Adding style sheet 18
  • 19. Cont. • Adding title • Adding description <!DOCTYPE html> <html <head> <title>Bamyan IT Consulting Service</title> <meta name=”keywords” content=”IT consulting, MCSE, networking” /> <meta name=”description” content=”An overview of Bamyan Service company services” /> </head> </html> • Content of meta tag do not affect page appearance 19
  • 20. Body tag • The <body> element holds the content of your document. • Every thing that you want to show come in body tag <HTML> <head> </head> <body> </body> </HTML> 20
  • 21. Posting Your Page Online 1. Find a Web hosting provider to hold your Web pages. 2. Use an FTP client or a Web browser to make a connection to your Web server. 3. Copy the HTML file from your hard drive to the Web server. 4. Use your Web browser to view the file via the Internet. 21
  • 22. 22
  • 23. References • “HTML 4 dummies 5th edition” by Ed Tittel & Mary Burmeister • “HTML 5 designing rich internet applications” by Mathew Dawid • “HTML in ten simple steps” by Robert G. fuller 23