Professional Documents
Culture Documents
Chapter 3
Introduction to web page designing using HTML: create and save an HTML document, access a
web page using a web browser.
HTML tags: html, head, title, body and its attributes,
br (break), hr(horizontal rule), h1..h6 (heading), p (paragraph), b (bold), i (italics), u (underline)
Inserting comments
HTML List: ul (unordered list), ol (ordered list), and li (list item), Description lists: dl, dt and dd.
Attributes of ol (start, type), ul (type).
Font tags (attributes: face, size, color).
Or
Version:
HTML (Version 1)
HTML (Version 2)
HTML (Version 3)
HTML (Version 4)
HTML (Version 5)
1. WYSIWYG (What You See Is What You Get): - Example: Adobe Dreamweaver.
2. Text Editor: - Example: Notepad.
1. Container Tags:- The elements that include both ON tag and OFF tag are called container tag.
Ex: <b> This makes the text bold </b>
2. Empty Tags: Empty tag contain only ON tag.
Ex: <br>, <hr > and <img>
Q7: What is Attribute in HTML Tag?
Ans: An attribute is a property that provides additional information about an HTML tag. Attribute
always specified in ON tag.
Syntax: <tagname attrname=”Value”> text </tagname>
<body bgcolor=”red”> text </body>
2. <P> Tag:
Marks a block of text as a paragraph.
Ex: <p> Text </p>
3. <Center> Tag:
Align text to the center of the page.
Ex: <center> text </center>
Q 10: What is empty tag? Write about some common empty tag.
Ans:
These tags having only the ON tag and perform some specific functions on their own. Ex: <br>,
<hr>,<img>.
<br> tag: It stands for Breaking Rule. This tag is used to break a line and displays the proceeding text
in next line.
Ex: <BR>
<hr> tag: It stands for Horizontal rule. This tag is used to separate block of text by creating Horizontal
line.
1. Face: The face attribute is used to change the font type or name of font.
Ex: <font face=”Arial”> Text <font>
2. Size: This is used to change size of the font to be displayed.
Ex: <font size=”7”> Text <font>
3. Color: The color attribute changes the color of the text.
Ex: <font color=”red”> Text <font>
Background: This attribute is used to set background image of page by specifying the path.
Ex: <body background=”flower.jpg”>
Bgcolor: This attribute is used to change background color of the page.
Ex: <body bgcolor=”red”>
Text: This attribute is used to change the color of webpage.
Ex: <body text=”red”>
Link: This attribute is used to specify the color of the unvisited links in the web pages.
Ex: <body link=”red”>
Alink: This attribute specifies the color of active link in the webpage.
Ex: <body alink=”Red”>
Vlink: This attribute specifies the color of the link after it has visited.
Ex: <body vlink=”red”>
Topmargin: This attribute is used to set top margin from the top side of a webpage.
Ex: <body topmargin=”20”>
Leftmargin: This attribute is used to set left margin from the left side of a webpage.
Ex: <body leftmargin=”20”>
1. Unordered List: It is used to display items without any order. It is also known as Bulleted List.
It has one Attribute:
Type: - To change the bullet style.
Ex:
<ul type= “Disc” | “Circle” | “Square” >
<li> Pen </li>
<li> Eraser </li>
<li> Pencil </li>
</ul>
2. Ordered List: It is used to display items in any specific order. It is also known as Numbered list.
It has two Attribute:
Type: - To change the numbering style.
Start: - To specifies starting value of the first item.
Ex:
<ol type=”1” | “A” | “a” | “I” | “I” Start = “3”>
<li> Pen </li>
<li> Eraser </li>
<li> Pencil </li>
</ol>
3. Definition/Description list: It shows list items in the form of a term and its description. It uses
<DL> tag, <DT> and <DD>.
<ul >
<li> Pen
<ol >
<li> Pen </li>
<li> Eraser </li>
<li> Pencil </li>
</ol>
</li>
<li> Eraser </li>
<li> Pencil </li>
</ul>