Lecture 1 Introduction To HTML
Lecture 1 Introduction To HTML
LANGUAGES
1
Mobile Applications
Lecture Outcome
• What is HTML
• HTML Examples
• HTML Tables , Frames and Forms
• XHTML
• CSS (Cascade Style Sheets)
• Introduction to Java Script
Types of Applications
Application can be broadly classified:
• Desktop/Windows Form Applications (runs on Computers & needs Installation)
• Mobile Applications (runs on Mobile)
• Web Based Applications / Websites (runs on browsers)
Desktop Applications
Web Applications
Mobile Applications
SERVER SIDE
CLIENT SIDE
1. ASP.NET
2. JSP
1. HTML 3. PHP
2. JAVA SCRIPT
Mobile Applications
Client Side Task Server Side Task
1. HTML 1. PHP
2. CSS (Bootstrap) 2. JSP (Java)
3. JavaScript (jQuery, Angular, Node,....) 3. ASP.NET (C#)
Hyper Text Markup Language
HTML Tag: Use to mark up the start and end of an element. End tags
consist of an opening angle bracket followed by a forward slash, the
element name, and a closing angle bracket.
HTML
Attributes
HTML: Type of Tag
HTML: Type of Tag
HTML: Semantic & Non-Semantic
HTML: Example - Form
HTML: Example - Form
What is '…' in HTML?
HTML Character Entities: Punctuation Symbols, Punctuation Entities and
ASCII Character Code Reference
Easily find character codes for the HTML # sign, HTML @ symbol (at symbol), HTML
percent sign, HTML ampersand (& HTML code), HTML copyright symbol and HTML
caret insertion point, along with regular punctuation like the question mark, exclamation
point, non-breaking hyphen, non-breaking space and more.
HTML Character Entities: Punctuation Symbols, Punctuation Entities and
ASCII Character Code Reference
HTML: Example –Common Form Elements with CSS
HTML: Example –Common Form Elements with CSS
HTML Examples
• Paragraph
P , Div , Block quote
• Font & List
size , Heading , List
• Text Formatting
Text
• Special Commands
Special
HTML TABLES
<table border="1" >
<tr>
<td> Item A</td> Item A Item B
<td>Item B</td>
</tr> Item C
<tr>
<td>Item C</td>
<td></td>
</tr>
</table>
Questions ?
Israr Ali
NED University of Engineering & Technology
• <html> <head>
• <title> Web engineering Style Sheet </title>
• </head>
• <h1> HTML Style Sheets are easy and Powerfull</h1>
• </body></html> Output
Israr Ali
NED University of Engineering & Technology
• <html>
• <head>
• <title>This is bad HTML</title>
• <body>
• <h1>Bad HTML
• </body>
HTML , XML , XHTML
• <!DOCTYPE ...>
• <html>
• <head> <title>... </title> </head>
• <body> ... </body>
• </html>
• The DOCTYPE declaration should always be the first line in an XHTML document.
Example
• <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
strict.dtd">
• <html>
• <head>
• <title>simple document</title>
• </head>
• <body>
• <p>a simple paragraph</p>
• </body>
• </html>
DTD
There are currently 3 XHTML document types:
STRICT
FRAMESET TRANSITIONAL
XHTML 1.0 Strict
• <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
• Use this when you want really clean markup, free of presentational
clutter. Use this together with Cascading Style Sheets.
XHTML 1.0 Transitional
• <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
• Use this when you want to use HTML Frames to partition the browser
window into two or more frames.
Summary
• You have learned that all XHTML elements must be properly nested,
XHTML documents must be well-formed, all tag names must be in
lowercase, and that all XHTML elements must be closed.
• You have also learned that all XHTML documents must have a
DOCTYPE declaration, and that the html, head, title, and body
elements must be present.
Review Question
1) What is HTML? ...
7) Which HTML tag is used to display the data in the tabular form?
Web Resource
https://www.youtube.com/watch?v=bClVtd_2fAwlist=PLRBov8uf2SxTA9MnSbbB_AKcg0mOxusvA
https://www.youtube.com/watch?v=bClVtd_2fAw&list=PLRBov8uf2SxTA9MnSb
bB_AKcg0mOxusvA
Thank you
Insert the title of your subtitle Here