Lecture 01 - Intro and Basic HTML
Lecture 01 - Intro and Basic HTML
DSU07209
Instructors
Eliah kazumali & Rajabu Msangi
Email: [email protected]
[email protected]
17 /
ACTIVITIES
<!Doctype html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph</p>
</body>
</html>
20 /
Explanations
➢ <!DOCTYPE> refers to the document type and version of HTML. For
HTML5 simply written as <!Doctype html>
➢ <html>: This tag encloses all the content on your page and the starting
tag for an HTML document
➢ <head>: This tag contains metadata about the web page, such as title.
➢ <title>: This tag specifies the title of your page, which appears in the
browser's title bar and bookmarks.
➢ <body>: This tag contains the visible content of the web page.
➢ <h1>: This is a heading tag. It creates a large, bold heading on the page.
Ie.h1 [largest in size] - h6 [least in size])
➢ <p>: This is a paragraph tag. It creates a block of text on the page.
21 /