SlideShare a Scribd company logo
Positioning Text in HTML
Presented by Nobel Mujuji
(BSc Hons Information Systems )(WUA)
<p></p> tag
• When using text, you always need to break text into paragraphs to make it look better and easier to read. The <p></p> tag is used
to break text between the tags into paragraphs. This tag will group text together and leave a space making paragraphs.
• The <p></p> has attributes which when added to it can perform more formatting. The first attribute you will learn here is the align
attribute. Like in a word processing tool, using the align attribute, you can align text to either right, left or center. The following
show pieces of code for the three align types.
<p align="right">Your Text Here</p>
<p align="left">Your Text Here</p>
<p align="center">Your Text Here</p>
Note:
You can use either the <center></center> or <p align="center"></p> tags if you wish to center a web item on a web page.
<br/> tag
• Another formatting you can do to text is leaving a single line space
also known as leaving a break. You can do this by using the <br/> tag.
This tag is very useful when writing long texts and even when
designing your web page layout.
• To create a new line without a space use a <br/> tag and to create a
line break use <br/><br/> . Unlike other tags you have learnt upto
now, it has no end tag so you can use it by only typing <br/>.
• The following shows some implementations of the <br/> tag.
CHALLENGE
<title>My Home Page</title>
</head>
<body>
This text is on a line.<br />
This text is on the next line.<br /><br />
This is text after a line break.<br /><br /><br />
This is text after 3 &lt;br/&gt; tags.
</body>
</html>
<hr/> tag
• Another way to break you page or text is by using a horizontal line. The
<hr/> tag creates a horizontal rule under the place you put the tag like this.
• Like the <br/> tag, the <hr/> tag has also got no end tag. The <hr/> tag also
has a few attributes which can be used to change the look of the horizontal
line. These attributes allows you to change the height (pixels), the width (%
of window or pixels) and color (only in IE).
• The following shows a piece of code on how to create a horizontal line with
20 pixels of height, 20% of the window size and blue in color.
<hr width="50%" size="30" color="#0000FF">
Comment tags
• As a best practice when coding it is always good to leave bread
crumbs on how you did it. This is done by using comment tags.
• Comments in the HTML code will not be shown in the webpage, but is
still there as the browser will ignore anything within the comment
tags. Comments are usually used to describe the code, for copyright
notices, etc.
• Many servers use comments to point their servers to insert banners.
The following is a sample code for a comment.
<!-- Your Comment Here -->
<html>
<body>
<!-- This is a comment -->
<p>This is a paragraph.</p>
<!-- Comments are not displayed in the browser -->
</body>
</html>
HTML Headings
• Headings are defined with the <h1> to <h6> tags.
• <h1> defines the most important heading. <h6> defines the least
important heading.
Headings Are Important
• Use HTML headings for headings only. Don't use headings to make text BIG
or bold.
• Search engines use your headings to index the structure and content of
your web pages.
• Users skim your pages by its headings. It is important to use headings to
show the document structure.
• h1 headings should be main headings, followed by h2 headings, then the
less important h3, and so on.
CHALLENGE
<html>
<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
</body>
</html>

More Related Content

What's hot

HTML Lesson 5
HTML Lesson 5HTML Lesson 5
HTML Lesson 5
Danny Ambrosio
 
GFGC CHIKKABASUR(HTML)
GFGC CHIKKABASUR(HTML)GFGC CHIKKABASUR(HTML)
GFGC CHIKKABASUR(HTML)
GOVT FIRST GRADE COLLEGE CHIKKABASUR
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
Slides4Victor
 
Presentation
PresentationPresentation
Presentation
Xolani Madlopha
 
Lesson plan: HTML Formatting Texts and Paragraphs
Lesson plan: HTML Formatting Texts and ParagraphsLesson plan: HTML Formatting Texts and Paragraphs
Lesson plan: HTML Formatting Texts and Paragraphs
Keith Borgonia Manatad
 
Facebookcamp Toronto FBML
Facebookcamp Toronto FBMLFacebookcamp Toronto FBML
Facebookcamp Toronto FBML
sboodram
 
Bs Typography
Bs TypographyBs Typography
Bs Typography
Webtech Learning
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
Md. Sirajus Salayhin
 
Intro to HTML (Kid's Class at TIY)
Intro to HTML (Kid's Class at TIY)Intro to HTML (Kid's Class at TIY)
Intro to HTML (Kid's Class at TIY)
Marjorie Sample
 
Html review with notes
Html review with notesHtml review with notes
Html review with notesTina Abbott
 
Basic html
Basic htmlBasic html
Basic html
Drew Eric Noftle
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
shabab shihan
 
Basic of web design
Basic of web designBasic of web design
Basic of web design
Singsys Pte Ltd
 
Html tags
Html tagsHtml tags
Html tags
Noble Anshu
 
SEO Tips from the Experts at LiveEdit
SEO Tips from the Experts at LiveEditSEO Tips from the Experts at LiveEdit
SEO Tips from the Experts at LiveEdit
LiveEdit
 

What's hot (19)

HTML Lesson 5
HTML Lesson 5HTML Lesson 5
HTML Lesson 5
 
GFGC CHIKKABASUR(HTML)
GFGC CHIKKABASUR(HTML)GFGC CHIKKABASUR(HTML)
GFGC CHIKKABASUR(HTML)
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
 
Presentation
PresentationPresentation
Presentation
 
Lesson plan: HTML Formatting Texts and Paragraphs
Lesson plan: HTML Formatting Texts and ParagraphsLesson plan: HTML Formatting Texts and Paragraphs
Lesson plan: HTML Formatting Texts and Paragraphs
 
Adding Space
Adding SpaceAdding Space
Adding Space
 
Facebookcamp Toronto FBML
Facebookcamp Toronto FBMLFacebookcamp Toronto FBML
Facebookcamp Toronto FBML
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Bs Typography
Bs TypographyBs Typography
Bs Typography
 
Html
HtmlHtml
Html
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
Intro to HTML (Kid's Class at TIY)
Intro to HTML (Kid's Class at TIY)Intro to HTML (Kid's Class at TIY)
Intro to HTML (Kid's Class at TIY)
 
Html review with notes
Html review with notesHtml review with notes
Html review with notes
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
Basic html
Basic htmlBasic html
Basic html
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
 
Basic of web design
Basic of web designBasic of web design
Basic of web design
 
Html tags
Html tagsHtml tags
Html tags
 
SEO Tips from the Experts at LiveEdit
SEO Tips from the Experts at LiveEditSEO Tips from the Experts at LiveEdit
SEO Tips from the Experts at LiveEdit
 

Similar to Positioning text

Html basic
Html basicHtml basic
Html basicAvi Nash
 
Unit2_2024.pptx are related to PHP HTML CSS
Unit2_2024.pptx are related to PHP HTML CSSUnit2_2024.pptx are related to PHP HTML CSS
Unit2_2024.pptx are related to PHP HTML CSS
abhinandankondekar2
 
Html introduction
Html introductionHtml introduction
Html introduction
vishnu murthy
 
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptxHTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
TEJASARGADE5
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
Himanshu Pathak
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
vardanyan99
 
Web topic 3 html format tags
Web topic 3  html format tagsWeb topic 3  html format tags
Web topic 3 html format tagsCK Yang
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
NextGenr
 
html
htmlhtml
html
htmlhtml
html
tumetr1
 
Web fundamental concept and tags
Web fundamental concept and tags Web fundamental concept and tags
Web fundamental concept and tags
shameen khan
 
Hypertext_markup_language
Hypertext_markup_languageHypertext_markup_language
Hypertext_markup_language
Ishaq Shinwari
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
Ameer Khan
 
HTML-INTRO.pptx
HTML-INTRO.pptxHTML-INTRO.pptx
HTML-INTRO.pptx
SanjayKumarBahuguna1
 
Html1
Html1Html1
Html1
learnt
 
Web technologies-course 02.pptx
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptx
Stefan Oprea
 
Best HTML Training &Coaching in Ambala
Best HTML Training &Coaching in AmbalaBest HTML Training &Coaching in Ambala
Best HTML Training &Coaching in Ambala
jatin batra
 

Similar to Positioning text (20)

Html tutorials
Html tutorialsHtml tutorials
Html tutorials
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
 
Html basic
Html basicHtml basic
Html basic
 
Unit2_2024.pptx are related to PHP HTML CSS
Unit2_2024.pptx are related to PHP HTML CSSUnit2_2024.pptx are related to PHP HTML CSS
Unit2_2024.pptx are related to PHP HTML CSS
 
Html introduction
Html introductionHtml introduction
Html introduction
 
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptxHTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Web topic 3 html format tags
Web topic 3  html format tagsWeb topic 3  html format tags
Web topic 3 html format tags
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
 
html
htmlhtml
html
 
html
htmlhtml
html
 
Web fundamental concept and tags
Web fundamental concept and tags Web fundamental concept and tags
Web fundamental concept and tags
 
Hypertext_markup_language
Hypertext_markup_languageHypertext_markup_language
Hypertext_markup_language
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html
HtmlHtml
Html
 
HTML-INTRO.pptx
HTML-INTRO.pptxHTML-INTRO.pptx
HTML-INTRO.pptx
 
Html1
Html1Html1
Html1
 
Web technologies-course 02.pptx
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptx
 
Best HTML Training &Coaching in Ambala
Best HTML Training &Coaching in AmbalaBest HTML Training &Coaching in Ambala
Best HTML Training &Coaching in Ambala
 

More from nobel mujuji

Table structure introduction
Table structure introductionTable structure introduction
Table structure introduction
nobel mujuji
 
Inserting imagesin html
Inserting imagesin htmlInserting imagesin html
Inserting imagesin html
nobel mujuji
 
Html images and html backgrounds
Html images and html backgroundsHtml images and html backgrounds
Html images and html backgrounds
nobel mujuji
 
Html hyperlinks
Html hyperlinksHtml hyperlinks
Html hyperlinks
nobel mujuji
 
Html frames
Html framesHtml frames
Html frames
nobel mujuji
 
Html forms
Html formsHtml forms
Html forms
nobel mujuji
 
Html character entities
Html character entitiesHtml character entities
Html character entities
nobel mujuji
 
Horizontal lines!
Horizontal lines!Horizontal lines!
Horizontal lines!
nobel mujuji
 
Frames tables forms
Frames tables formsFrames tables forms
Frames tables forms
nobel mujuji
 
Creating lists
Creating listsCreating lists
Creating lists
nobel mujuji
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5
nobel mujuji
 
Chapter 1 one html
Chapter 1 one htmlChapter 1 one html
Chapter 1 one html
nobel mujuji
 
Chapter 1 html
Chapter 1 htmlChapter 1 html
Chapter 1 html
nobel mujuji
 
Adding text in html
Adding text in htmlAdding text in html
Adding text in html
nobel mujuji
 
Javascript conditional statements
Javascript conditional statementsJavascript conditional statements
Javascript conditional statements
nobel mujuji
 

More from nobel mujuji (15)

Table structure introduction
Table structure introductionTable structure introduction
Table structure introduction
 
Inserting imagesin html
Inserting imagesin htmlInserting imagesin html
Inserting imagesin html
 
Html images and html backgrounds
Html images and html backgroundsHtml images and html backgrounds
Html images and html backgrounds
 
Html hyperlinks
Html hyperlinksHtml hyperlinks
Html hyperlinks
 
Html frames
Html framesHtml frames
Html frames
 
Html forms
Html formsHtml forms
Html forms
 
Html character entities
Html character entitiesHtml character entities
Html character entities
 
Horizontal lines!
Horizontal lines!Horizontal lines!
Horizontal lines!
 
Frames tables forms
Frames tables formsFrames tables forms
Frames tables forms
 
Creating lists
Creating listsCreating lists
Creating lists
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5
 
Chapter 1 one html
Chapter 1 one htmlChapter 1 one html
Chapter 1 one html
 
Chapter 1 html
Chapter 1 htmlChapter 1 html
Chapter 1 html
 
Adding text in html
Adding text in htmlAdding text in html
Adding text in html
 
Javascript conditional statements
Javascript conditional statementsJavascript conditional statements
Javascript conditional statements
 

Recently uploaded

一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
708pb191
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
PlanitIsrael
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
Confidence Ago
 
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
ameli25062005
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
n0tivyq
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
smpc3nvg
 
projectreportnew-170307082323 nnnnnn(1).pdf
projectreportnew-170307082323 nnnnnn(1).pdfprojectreportnew-170307082323 nnnnnn(1).pdf
projectreportnew-170307082323 nnnnnn(1).pdf
farazahmadas6
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
garcese
 
Expert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting ServicesExpert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting Services
ResDraft
 
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
taqyed
 
Can AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI preludeCan AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI prelude
Alan Dix
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
smpc3nvg
 
Let's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons ShirtLet's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons Shirt
TeeFusion
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
9a93xvy
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
gpffo76j
 
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
h7j5io0
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
fastfixgaragedoor
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
cy0krjxt
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
7sd8fier
 

Recently uploaded (20)

一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
 
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
 
projectreportnew-170307082323 nnnnnn(1).pdf
projectreportnew-170307082323 nnnnnn(1).pdfprojectreportnew-170307082323 nnnnnn(1).pdf
projectreportnew-170307082323 nnnnnn(1).pdf
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
 
Expert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting ServicesExpert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting Services
 
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
 
Can AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI preludeCan AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI prelude
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
 
Let's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons ShirtLet's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons Shirt
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
 
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
 

Positioning text

  • 1. Positioning Text in HTML Presented by Nobel Mujuji (BSc Hons Information Systems )(WUA)
  • 2. <p></p> tag • When using text, you always need to break text into paragraphs to make it look better and easier to read. The <p></p> tag is used to break text between the tags into paragraphs. This tag will group text together and leave a space making paragraphs. • The <p></p> has attributes which when added to it can perform more formatting. The first attribute you will learn here is the align attribute. Like in a word processing tool, using the align attribute, you can align text to either right, left or center. The following show pieces of code for the three align types. <p align="right">Your Text Here</p> <p align="left">Your Text Here</p> <p align="center">Your Text Here</p> Note: You can use either the <center></center> or <p align="center"></p> tags if you wish to center a web item on a web page.
  • 3. <br/> tag • Another formatting you can do to text is leaving a single line space also known as leaving a break. You can do this by using the <br/> tag. This tag is very useful when writing long texts and even when designing your web page layout. • To create a new line without a space use a <br/> tag and to create a line break use <br/><br/> . Unlike other tags you have learnt upto now, it has no end tag so you can use it by only typing <br/>. • The following shows some implementations of the <br/> tag.
  • 4. CHALLENGE <title>My Home Page</title> </head> <body> This text is on a line.<br /> This text is on the next line.<br /><br /> This is text after a line break.<br /><br /><br /> This is text after 3 &lt;br/&gt; tags. </body> </html>
  • 5. <hr/> tag • Another way to break you page or text is by using a horizontal line. The <hr/> tag creates a horizontal rule under the place you put the tag like this. • Like the <br/> tag, the <hr/> tag has also got no end tag. The <hr/> tag also has a few attributes which can be used to change the look of the horizontal line. These attributes allows you to change the height (pixels), the width (% of window or pixels) and color (only in IE). • The following shows a piece of code on how to create a horizontal line with 20 pixels of height, 20% of the window size and blue in color. <hr width="50%" size="30" color="#0000FF">
  • 6. Comment tags • As a best practice when coding it is always good to leave bread crumbs on how you did it. This is done by using comment tags. • Comments in the HTML code will not be shown in the webpage, but is still there as the browser will ignore anything within the comment tags. Comments are usually used to describe the code, for copyright notices, etc. • Many servers use comments to point their servers to insert banners. The following is a sample code for a comment. <!-- Your Comment Here -->
  • 7. <html> <body> <!-- This is a comment --> <p>This is a paragraph.</p> <!-- Comments are not displayed in the browser --> </body> </html>
  • 8. HTML Headings • Headings are defined with the <h1> to <h6> tags. • <h1> defines the most important heading. <h6> defines the least important heading.
  • 9. Headings Are Important • Use HTML headings for headings only. Don't use headings to make text BIG or bold. • Search engines use your headings to index the structure and content of your web pages. • Users skim your pages by its headings. It is important to use headings to show the document structure. • h1 headings should be main headings, followed by h2 headings, then the less important h3, and so on.
  • 10. CHALLENGE <html> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html>