MM211 - Lecture 03 HTML 1
MM211 - Lecture 03 HTML 1
Lecture 3
Zoubeir Aungnoo
Overview
■ HTML5
■ Website Design Factors
■ Dev Environment Setup
■ Web Hosting
■ DOM
■ HTML Tags
■ HTML Attributes
2
HTML
History of HTML
What is HTML5?
Goals of
HTML5
New Elements in HTML5
HTML Elements
■ Each markup code represents an HTML element
Local Online
files files
FTP connect to Server
■ Your website is now public.
■ Access it through the url provided by your
webserver (if free) or connect your domain name to
the webserver.
Body Section
■Contains text and elements that display on the page
– <body>
– …body section info goes here
– </body>
Explanation of code
■.
HTML Block vs Inline tags
■ Inline-Level Element
■ Used to mark up a part of a text, or a part of a document.
■ <span> tag provides no visual change by itself, but when
it is marked, you can style it with CSS, or manipulate it
with JavaScript.
Empty HTML Tags
■ <ul>
– Contains the unordered list
– Default bullet type is disc (but depends
on the browser)
■ Can be changed using:
– html attributes
– CSS
■ <li>
– Contains an item in the list
Lists in HTML – Unordered
List
■Class Practical
■Using h2 for the heading, write html codes
to produce the following output:
Lists in HTML – Unordered
List
■Class Practical
■Using h1 for the heading, write html codes to
produce the following output:
Lists in HTML – Ordered List
■ Displays a numbering or lettering system to
itemize the information contained in the list
■ <ol>
– Contains the ordered list
– default numbering scheme is numerals
■ Can be changed using:
– html attributes
– CSS
■ <li>
– Contains an item in the list
Lists in HTML – Ordered List
■Class Practical
■Using h1 for the heading, write html codes to
produce the following output:
Class Research Work
Read on:
1. Absolute path
2. Relative path
Practical
Hyperlinks
■ The <a> tag
■ <a href=“pages/phpmodule.html">PHP
Module</a>
– This link takes you to the page modules.html
found within the website and is located in the
sub folder pages
■ <a href=“http://www.poly.ac.mu">PML</a>
– This link takes you to another website
Link to a
mail ■ Clicking on link opens
composer email client with email
specified in the “to” field
■
Homework
■ Sent separately