Basic HTML tags
Beginning Web Site Design
Stanford University Continuing Studies CS 03
http://www.stanford.edu/group/csp/cs03/
Structural Tags
<HTML>
These tags enclose the entire Web page document.
</HTML>
<HEAD>
These tags enclose the Head part of the document
</HEAD>
<TITLE>
These tags enclose the title of the document. This text appears in the title bar in
the browser and on the bookmark list if someone bookmarks your web page.
</TITLE>
Sample Structure of a Web Site
<HTML>
<HEAD>
<TITLE> John Q. Public's Web Page </TITLE>
</HEAD>
<BODY>
This is John Public's Webpage!
</BODY>
</HTML>
Header Tags
Header Tags -- Used for marking sections and subsections in a document.
<H1>Header 1 -- Giant-sized and bold </H1>
<H2>Header 2 -- Large and bold </H2>
<H3>Header 3 -- Normal-sized and bold </H3>
<H4>Header 4 -- Small and bold </H4>
<H5>Header 5 -- Very Small and bold </H5>
<H6>Header 6 -- Tiny and bold </H6>
Header Tags (cont.)
H1 = Giant-sized and bold
H2 = Large and bold
H3 = Normal-sized and bold
H4 = Small and bold
H5 = Very Small and bold
H6 = Tiny and bold
Breaking Lines and Paragraphs
• <P> text </P>
– Paragraph tag
– Most browsers render (process) this with blank lines between each
paragraph
• <BR>
– Line break tag
– Used when the webmaster wants a carriage return but doesn't want a blank
line to follow
Example: text a
<p>text a</p>
<p>text b</p> text b
<br>text c
<br>text d text c
text d
Horizontal Rule
The <HR> tag puts a graphical line across the page.
Ex:
Horizontal Rule Attributes:
NOSHADE -- A solid line with no shading
WIDTH="xx%/xx" -- Controls the width of the line. You may specify
either percentage of the width of a page or actual
pixel length
SIZE="xx" -- Controls the height of the line. You need to specify the
dimension in pixels.
ALIGN="left/center/right" -- This allows the line to be aligned to the left,
right, or center of the page
Text Formatting Tags
Some basic text formatting styles:
Tag Result
<I> Italics </I> Italics
<B> Bold </B> Bold
<PRE> Preformatted Text </PRE> Preformatted Text
<STRONG> Strong </STRONG> Strong
<ADDRESS> Address </ADDRESS> Address
<CITE> Citations </CITE> Citations
<CODE> Source Code </CODE> Source Code
Font modifications
Web creators can also change the way text looks by using the <FONT> tag
SIZE="number" - changes size of the font; 1=smallest, 7 = largest
<FONT SIZE="7">Big</FONT> <FONT SIZE="1">Small</FONT>
BigSmall
COLOR="color-name" - changes text color
<FONT COLOR="red">This is red</FONT>
This is red
FACE="font-name" - changes font
<FONT FACE="verdana">This is the verdana font;</FONT> <FONT FACE="chicago">this is the chicago
font.</FONT>
This is the verdana font; this is chicago font.
<Font> modifications (cont.)
One can combine font modifications:
<FONT SIZE="7" FACE="courier" COLOR="red">Big, Courier & Red</FONT>
Big, Courier & Red
<FONT SIZE="7"><FONT FACE="courier">Big & Courier</FONT> - Just Big</FONT>
Big & Courier - Just Big
Lists -- Unordered Lists
Unordered lists:
<UL>
<LI>Item One
<LI>Item Two
<LI>Item Three
<LI>Item Four
</UL>
• Item One
• Item Two
• Item Three
• Item Four
Unordered List Attributes:
type="disc/circle/square"
• Disc (default)  Circle  Square
Lists -- Ordered Lists
<OL>
<LI> Item One
<LI> Item Two
<LI> Item Three
<LI> Item Four
</OL>
1. Item One
2. Item Two
3. Item Three
4. Item Four
type="i/I/a/A/1" (default)
i = i. Item One I = I. Item One a = a. Item One A = A. Item One 1 = 1.Item One
ii. Item Two II. Item Two b. Item Two B. Item Two 2. Item Two
iii. Item Three III. Item Three c. Item Three C. Item Three 3. Item Three
iv. Item Four IV. Item Four d. Item Four D. Item Four 4. Item Four
start="xx"
•
Ordered (Numbered) Lists:
Ordered List Attributes:
Lists -- Definition Lists
Definition Lists:
<DL>
<DT>List Name One
<DD>This is where information about List Name One would go</DD>
</DT>
<DT>List Name Two
<DD>This is where information about List Name Two would go</DD>
</DT>
</DL>
List Name One
This is where information about List Name One
would go
List Name Two
This is where information about List Name Two
would go
Links
The anchor tag <A> is used to link one document to another or from one part of a document
to another part of the same document.
Basic Links:
<A HREF="http://www.stanford.edu/">Stanford University</A>
Inter-document Links:
<A HREF="#spot">Point to 'spot' in this document</A>
Defining a point in a document:
<A NAME="spot">Spot</A>
Email links:
<A HREF="mailto:someone@somehost.com">Email someone@somehost.com</A>
Graphics
To have a graphic appear on a webpage, web designers must to put the <IMG>
tag in with the address where the graphic "lives":
<IMG SRC="http://www.someplace.com/images/fish.gif">
Graphics attributes:
alt="text": insert a description of the graphic for those who are using browsers that cannot
process images (e.g., page readers for the blind)
width="xx/xx%": width in pixels/percentage
height="xx/xx%": height in pixels/percentage
border="xx": pixel length of the border surrounding the image.
hspace="xx": places a buffer of space horizontally around the image
vspace="xx": places a buffer of space vertically around the image
align="top/middle/bottom/right/left": aligns image in relation to the text (see next 2 slides)
Graphics (cont.)
<img src="http://www.someplace.com/images/fish.gif" align="top">All about Fish
<img src="http://www.someplace.com/images/fish.gif" align="middle">All about Fish
<img src="http://www.someplace.com/images/fish.gif" align="bottom">All about Fish
All about Fish
All about Fish
All about Fish
Graphics (cont.)
<img src="http://www.someplace.com/images/fish.gif" align="left">
<img src="http://www.someplace.com/images/fish.gif" align="right">

More Related Content

PPTX
Eusbsikebsklsksnsjjdjndjsolsnshskskksosksjsj
PPT
basic-tags.PPT
PPT
Beginning a web site design, basic html tags
PPT
Basic tags
PPT
Basic tags
PPT
Basic HTML Tags.PPT
PPT
Basic HTML Tag For beginner(std-8)CBSC.PPT
PPT
Web technologies-basic-tags a to z (1).PPT
Eusbsikebsklsksnsjjdjndjsolsnshskskksosksjsj
basic-tags.PPT
Beginning a web site design, basic html tags
Basic tags
Basic tags
Basic HTML Tags.PPT
Basic HTML Tag For beginner(std-8)CBSC.PPT
Web technologies-basic-tags a to z (1).PPT

Similar to basic-tags ppt for better understanding from beginning (20)

PPT
PPT on Basic HTML Tags
PPT
html-basic-tags.PPT.pppppppppppppppppppppp
PPT
basic-tags.PPT
PPTX
Tech Winter Break'24 Workshop A hands-o
PPTX
1-24-24 INFO 3205.pptx
PPT
PPTX
Lab1_HTML.pptx
PPT
Introduction to HTML
PDF
Class Intro / HTML Basics
PPTX
DOC
Html, xml and java script
PPTX
Html basics-auro skills
PPT
Deepshikha html
PPTX
Basics of Front End Web Dev PowerPoint
PPT on Basic HTML Tags
html-basic-tags.PPT.pppppppppppppppppppppp
basic-tags.PPT
Tech Winter Break'24 Workshop A hands-o
1-24-24 INFO 3205.pptx
Lab1_HTML.pptx
Introduction to HTML
Class Intro / HTML Basics
Html, xml and java script
Html basics-auro skills
Deepshikha html
Basics of Front End Web Dev PowerPoint
Ad

Recently uploaded (20)

PPTX
Tìm hiểu về dịch vụ FTTH - Fiber Optic Access Node
PPTX
module 1-Part 1.pptxdddddddddddddddddddddddddddddddddddd
PPTX
Partner to Customer - Sales Presentation_V23.01.pptx
PPTX
Edit gdasgdkhagfhgfgfasdghhdgfhdgfj.pptx
PPTX
10.2981-wlb.2004.021Figurewlb3bf00068fig0001.pptx
PDF
KEY COB2 UNIT 1: The Business of businessĐH KInh tế TP.HCM
PPTX
KSS ON CYBERSECURITY INCIDENT RESPONSE AND PLANNING MANAGEMENT.pptx
PPTX
Networking2-LECTURE2 this is our lessons
PDF
healthwealthtech4all-blogspot-com-2025-08-top-5-tech-innovations-that-will-ht...
PPTX
Artificial_Intelligence_Basics use in our daily life
PPSX
AI AppSec Threats and Defenses 20250822.ppsx
PPTX
Digital Project Mastery using Autodesk Docs Workshops
PPTX
Basic understanding of cloud computing one need
DOCX
Memecoinist Update: Best Meme Coins 2025, Trump Meme Coin Predictions, and th...
PPTX
Reading as a good Form of Recreation
PPTX
Powerpoint slides: Eco Economic Epochs.pptx
PDF
Paper PDF The World Game (s) Great Redesign.pdf
PPTX
在线订购名古屋艺术大学毕业证, buy NUA diploma学历认证失败怎么办
DOCX
Powerful Ways AIRCONNECT INFOSYSTEMS Pvt Ltd Enhances IT Infrastructure in In...
PDF
Alethe Consulting Corporate Profile and Solution Aproach
Tìm hiểu về dịch vụ FTTH - Fiber Optic Access Node
module 1-Part 1.pptxdddddddddddddddddddddddddddddddddddd
Partner to Customer - Sales Presentation_V23.01.pptx
Edit gdasgdkhagfhgfgfasdghhdgfhdgfj.pptx
10.2981-wlb.2004.021Figurewlb3bf00068fig0001.pptx
KEY COB2 UNIT 1: The Business of businessĐH KInh tế TP.HCM
KSS ON CYBERSECURITY INCIDENT RESPONSE AND PLANNING MANAGEMENT.pptx
Networking2-LECTURE2 this is our lessons
healthwealthtech4all-blogspot-com-2025-08-top-5-tech-innovations-that-will-ht...
Artificial_Intelligence_Basics use in our daily life
AI AppSec Threats and Defenses 20250822.ppsx
Digital Project Mastery using Autodesk Docs Workshops
Basic understanding of cloud computing one need
Memecoinist Update: Best Meme Coins 2025, Trump Meme Coin Predictions, and th...
Reading as a good Form of Recreation
Powerpoint slides: Eco Economic Epochs.pptx
Paper PDF The World Game (s) Great Redesign.pdf
在线订购名古屋艺术大学毕业证, buy NUA diploma学历认证失败怎么办
Powerful Ways AIRCONNECT INFOSYSTEMS Pvt Ltd Enhances IT Infrastructure in In...
Alethe Consulting Corporate Profile and Solution Aproach
Ad

basic-tags ppt for better understanding from beginning

  • 1. Basic HTML tags Beginning Web Site Design Stanford University Continuing Studies CS 03 http://www.stanford.edu/group/csp/cs03/
  • 2. Structural Tags <HTML> These tags enclose the entire Web page document. </HTML> <HEAD> These tags enclose the Head part of the document </HEAD> <TITLE> These tags enclose the title of the document. This text appears in the title bar in the browser and on the bookmark list if someone bookmarks your web page. </TITLE>
  • 3. Sample Structure of a Web Site <HTML> <HEAD> <TITLE> John Q. Public's Web Page </TITLE> </HEAD> <BODY> This is John Public's Webpage! </BODY> </HTML>
  • 4. Header Tags Header Tags -- Used for marking sections and subsections in a document. <H1>Header 1 -- Giant-sized and bold </H1> <H2>Header 2 -- Large and bold </H2> <H3>Header 3 -- Normal-sized and bold </H3> <H4>Header 4 -- Small and bold </H4> <H5>Header 5 -- Very Small and bold </H5> <H6>Header 6 -- Tiny and bold </H6>
  • 5. Header Tags (cont.) H1 = Giant-sized and bold H2 = Large and bold H3 = Normal-sized and bold H4 = Small and bold H5 = Very Small and bold H6 = Tiny and bold
  • 6. Breaking Lines and Paragraphs • <P> text </P> – Paragraph tag – Most browsers render (process) this with blank lines between each paragraph • <BR> – Line break tag – Used when the webmaster wants a carriage return but doesn't want a blank line to follow Example: text a <p>text a</p> <p>text b</p> text b <br>text c <br>text d text c text d
  • 7. Horizontal Rule The <HR> tag puts a graphical line across the page. Ex: Horizontal Rule Attributes: NOSHADE -- A solid line with no shading WIDTH="xx%/xx" -- Controls the width of the line. You may specify either percentage of the width of a page or actual pixel length SIZE="xx" -- Controls the height of the line. You need to specify the dimension in pixels. ALIGN="left/center/right" -- This allows the line to be aligned to the left, right, or center of the page
  • 8. Text Formatting Tags Some basic text formatting styles: Tag Result <I> Italics </I> Italics <B> Bold </B> Bold <PRE> Preformatted Text </PRE> Preformatted Text <STRONG> Strong </STRONG> Strong <ADDRESS> Address </ADDRESS> Address <CITE> Citations </CITE> Citations <CODE> Source Code </CODE> Source Code
  • 9. Font modifications Web creators can also change the way text looks by using the <FONT> tag SIZE="number" - changes size of the font; 1=smallest, 7 = largest <FONT SIZE="7">Big</FONT> <FONT SIZE="1">Small</FONT> BigSmall COLOR="color-name" - changes text color <FONT COLOR="red">This is red</FONT> This is red FACE="font-name" - changes font <FONT FACE="verdana">This is the verdana font;</FONT> <FONT FACE="chicago">this is the chicago font.</FONT> This is the verdana font; this is chicago font.
  • 10. <Font> modifications (cont.) One can combine font modifications: <FONT SIZE="7" FACE="courier" COLOR="red">Big, Courier & Red</FONT> Big, Courier & Red <FONT SIZE="7"><FONT FACE="courier">Big & Courier</FONT> - Just Big</FONT> Big & Courier - Just Big
  • 11. Lists -- Unordered Lists Unordered lists: <UL> <LI>Item One <LI>Item Two <LI>Item Three <LI>Item Four </UL> • Item One • Item Two • Item Three • Item Four Unordered List Attributes: type="disc/circle/square" • Disc (default)  Circle  Square
  • 12. Lists -- Ordered Lists <OL> <LI> Item One <LI> Item Two <LI> Item Three <LI> Item Four </OL> 1. Item One 2. Item Two 3. Item Three 4. Item Four type="i/I/a/A/1" (default) i = i. Item One I = I. Item One a = a. Item One A = A. Item One 1 = 1.Item One ii. Item Two II. Item Two b. Item Two B. Item Two 2. Item Two iii. Item Three III. Item Three c. Item Three C. Item Three 3. Item Three iv. Item Four IV. Item Four d. Item Four D. Item Four 4. Item Four start="xx" • Ordered (Numbered) Lists: Ordered List Attributes:
  • 13. Lists -- Definition Lists Definition Lists: <DL> <DT>List Name One <DD>This is where information about List Name One would go</DD> </DT> <DT>List Name Two <DD>This is where information about List Name Two would go</DD> </DT> </DL> List Name One This is where information about List Name One would go List Name Two This is where information about List Name Two would go
  • 14. Links The anchor tag <A> is used to link one document to another or from one part of a document to another part of the same document. Basic Links: <A HREF="http://www.stanford.edu/">Stanford University</A> Inter-document Links: <A HREF="#spot">Point to 'spot' in this document</A> Defining a point in a document: <A NAME="spot">Spot</A> Email links: <A HREF="mailto:[email protected]">Email [email protected]</A>
  • 15. Graphics To have a graphic appear on a webpage, web designers must to put the <IMG> tag in with the address where the graphic "lives": <IMG SRC="http://www.someplace.com/images/fish.gif"> Graphics attributes: alt="text": insert a description of the graphic for those who are using browsers that cannot process images (e.g., page readers for the blind) width="xx/xx%": width in pixels/percentage height="xx/xx%": height in pixels/percentage border="xx": pixel length of the border surrounding the image. hspace="xx": places a buffer of space horizontally around the image vspace="xx": places a buffer of space vertically around the image align="top/middle/bottom/right/left": aligns image in relation to the text (see next 2 slides)
  • 16. Graphics (cont.) <img src="http://www.someplace.com/images/fish.gif" align="top">All about Fish <img src="http://www.someplace.com/images/fish.gif" align="middle">All about Fish <img src="http://www.someplace.com/images/fish.gif" align="bottom">All about Fish All about Fish All about Fish All about Fish
  • 17. Graphics (cont.) <img src="http://www.someplace.com/images/fish.gif" align="left"> <img src="http://www.someplace.com/images/fish.gif" align="right">