452 - WD1 - Lectures - 01
452 - WD1 - Lectures - 01
• It’s the basic code for marking up page contents (text, image, video, etc…) using HTML markup
tags
• It describes how a web page is structured by defining the different sections it may have (header,
content area, footer)
• the purpose of a web browser (Chrome, Microsoft Edge, Firefox, … etc) is to read HTML
documents and display them
• The browser does not display the HTML tags but uses them to determine how to display the
document
Static & Dynamic Web Page
• HTML can be edited using normal text processing programs like MS Word
• Using a professional HTML editor is recommended (this course uses notepad++) such as:
HTML Tags
• They defines how web browser will format and display the content
• HTML elements are written with a start tag, an end tag, and the content in between
• Syntax
<tagname>content</tagname>
Example 1
1) The html element has contents (the head and body elements)
1) <!DOCTYPE> Declaration
1) <!DOCTYPE> Declaration
It must be the first thing in your HTML document
It is an instruction for the browser telling it what version of HTML the document is written in so it can
follow its specifications
Syntax
<!DOCTYPE html>
The Structure of HTML Document
Syntax
<html>content</html>
The Structure of HTML Document
Syntax
<head>content</head>
Syntax
<body>content</body>