Formatting Notes
Formatting Notes
LESSON 101
Teacher Kayla
HISTORY OF HTML
VANNEVAR
HTML TAGS
Tags are the objects used to arrange
text or image in an HTML document. HTM
L tags can be divided into two types. They
are paired and empty tags.
Paired Tags
Tags that have starting and ending tags.
Starting tag is also called as opening tag
and ending tag is also called closing tag.
Example: <head> </head>
Empty Tags
Tags that do not have an ending tag
Example: <br>
<HTML> Tag
The
The
<head> Tag
The
TEXT FORMATTING
<html>
<body>
(heading1.html)
TEXT FORMATTING
HTML Headings
HTML headings are defined with the <h1>
to <h6> tags.
Example
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
TEXT FORMATTING.html
Bold
<b>This is a bold text.</b>
Italic
<i>This is an italicized text.</i>
Underlined
<u>This is an underlined text.</u>
TEXT FORMATTING
Paragraph
<p>This is a new paragraph.</p>
Line Break
This is a sentence. <br>
This is a new line. <br>
Alignment.html
Center
<center>This text will be center-aligned.</
center>
<p align=center">This is in the center</p>
Right
<p align="right">This is in the right.</p>
Left
<p align=left">This is in the left.</p>
Try it by yourself!
1.
Hello world!
2. Sura Nari Witthaya School
3. My name is Taylor Swift. I am a
singer and a song writer. I was born in US
A and I am 26 years old.
4. BLANK SPACE
5. Computer
Subject
Color Formatting
Background.html
<HTML>
<BODY BGCOLOR=red>
Page with red background.
</BODY>
</HTML>
Color Formatting
Font colors
color.html
<HTML>
<BODY>
<FONT COLOR=RED>
Font with red color.</font>
</BODY>
</HTML>
Text colors
http://www.w3schools.com/colors/colors_
names.asp
Font Face
font.html
<HTML>
<BODY>
<FONT face= verdana
COLOR=RED>
Font with red color.</font>
</BODY>
</HTML>
Text Marquee
<marquee>This text will scroll from right to left.</
marquee>
<marquee direction="right">This text will scroll from left to
right. </marquee>
<marquee behavior="alternate"> This text will scroll from
alternate sides.</marquee>
<marquee width=50%">This example will take only 50%
width</marquee>
Text Marquee
<marquee scrollamount=20> This is
an example of a fast Marquee </marquee>
<marquee scrolldelay=10> This is an
example of a slow Marquee </marquee>