HTML Basics
HTML Basics
• Web pages can be created and modified by using professional HTML editors
like Adobe Dreamweaver, Microsoft Expression Web, Coffee Cup HTML
Editor, Net beans, Eclipse,Visual Studio, PyCharm etc.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
Place your content here
</body>
</html>
• Always declare the document type as the first line in your
document:
• <!DOCTYPE html>
• . HTML Comment Tags
<!-- Write your comments here -->
• comments you can place NOTIFICATIONS and REMINDERS in
your HTML:
HEADINGS
• <p>This is a paragraph.</p>
<p>This is another paragraph.</p>
LINE BREAKS
• A horizontal ruler, denoted using the <hr> tag displays a line to separate
content.
• Also an empty tag
TEXT FORMATTING
• </ul>
THE TYPE PROPERTY IS USED TO DEFINE THE STYLE
OF THE LIST ITEM MARKER
Value Description
disc Sets the list item marker to a bullet
(default)
circle Sets the list item marker to a circle
square Sets the list item marker to a square
none The list items will not be marked
• <ul style="list-style-type:square;">
<li>New York</li>
<li>Havana</li>
<li>Tokyo</li>
</ul
• An ordered list starts with the <ol> tag. Each list item starts with the <li> tag. The list
items will be marked with numbers by default.
• <ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol
THE TYPE ATTRIBUTE OF THE <OL> TAG, DEFINES THE
TYPE OF THE LIST ITEM MARKER:
Type Description
type="1" The list items will be numbered with numbers
(default)
type="A" The list items will be numbered with
uppercase letters
type="a" The list items will be numbered with
lowercase letters
type="I" The list items will be numbered with
uppercase roman numbers
type="i" The list items will be numbered with
lowercase roman numbers
MARQUEE TAG
• The HTML <marquee> tag is used for scrolling a piece of text or image displayed
either horizontally across or vertically down your web site page depending on the
settings.
<body>
<marquee>Web and mobile applications</marquee>
<marquee direction = "up">HTML</marquee>
</body>
CHARACTER ENTITIES
• HTML colors are specified using either their predefined color names, RGB or HEX
values.
• With the RGB notation, each 2-digit section of the code represents the amount, in
sequence, of red, green or blue that forms the color.
• For example, a RGB value with 00 as the first two digits has no red in the color.
BASIC COLORS
PERSONAL WEB PAGE ASSIGNMENT
• Design a web page profile of your self using the Html tags learnt
in lectures.
• Marks will be warded on the content, variety of tags used, design
and creativity
• Time 16:00 hours.
• Late Submissions wont be accepted
• Strictly individual assignment