Chap 2
Chap 2
Workshop-Web
Designing)
Dr. Lokesh Gagnani
Contents
<!DOCTYPE HTML>
<html> Opening tag
<head>
<title>My First HTML Page</title>
</head>
<body> Closing tag
<p>This is some text...</p>
</body>
</html>
An HTML element consists of an opening tag, a closing tag and the content inside.
First HTML Page: Header
<!DOCTYPE HTML>
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<p>This is some text...</p>
</body>
</html>
HTML body
First HTML Page
test.html
<!DOCTYPE HTML>
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<p>This is some text...</p>
</body>
</html>
Basic HTML Tags
1. Headings
2. Paragraph
3. Colors
4. Fonts
5. List
6. Anchor Tag
7. Image
8. Table
9. Form
1) Headings
▪ Headings are important because search engines use
the headings to index the structure and content of
your web pages.
Unordered List
• Block-A o Block-A ▪ Block-A
• Block-B o Block-B ▪ Block-B
• Block-C o Block-C ▪ Block-C
• Block-D o Block-D ▪ Block-D
5.1) Ordered List
<ol>
<li> Item one </li>
Types:
<li> Item two </li>
<ol type="I" > Type = 1 (default)
<li> Sublist item one </li> Type = a
<li> Sublist item two </li> Type = A
<ol type="i"> Type = I
<li> Sub-sub list item one </li> Type = i
<li> Sub-sub list item two </li>
</ol> Output
</ol>
</ol>
5.2) Unordered List
<ul>
<li> One </li>
Types:
<li> Two </li>
<ul type="circle"> Type = disc (default)
<li> Three </li> Type = circle
<li> Four </li> Type = square
<ul type="square">
<li> Five </li>
<li> Six </li>
</ul> Output
</ul>
</ul>
6) <a> Anchor Tag (Hyperlinks)
▪ The <a> tag defines a hyperlink, which is used to link from one
page to another.
<!DOCTYPE html>
<html>
<head>
<title>frameset attribute</title>
</head>
47
Introduction to HTML 5
▪ The DOCTYPE declaration for HTML5 is very simple:
<!DOCTYPE html>
▪ The character encoding (charset) declaration is also very simple:
<meta charset="UTF-8">
▪ New HTML5 Elements:
• New semantic elements like <header>, <footer>, <article>, and <section>.
• New form control attributes like number, date, time, calendar, and range.
• New graphic elements: <svg> and <canvas>.
• New multimedia elements: <audio> and <video>.
• Some Elements Removed in HTML5
Introduction to HTML 5 (cont.)
▪ The following HTML4 elements have been removed from HTML5: