SlideShare a Scribd company logo
WEEK 4 
FORMATTING 
HTML 
CONTENT
THE <P> TAG 
• HTML content is very different than working in an application 
like InDesign, MS Word or other word processor 
• By adding a couple of additional tags to our basic HTML 
structure, we can start to build and format content. 
• When adding paragraphs of copy within a web document you 
have to use the opening and closing <p> </p> tags to create 
the separation between sections of copy 
• Example: 
<p>Everything between the opening and closing <p> tags is 
being described to the web browser as a paragraph</p> 
• <p> </p> = Used to create paragraphs, require an opening and 
closing tag
THE <P> TAG 
<!DOCTYPE html> 
<html> 
<head> 
<title>Title of the document</title> 
</head> 
<body> 
<p>Just some random text to make a paragraph. Just some 
random text to make a paragraph.</p> 
<p>Just some random text to make a paragraph. Just some 
random text to make a paragraph</p> 
</body> 
</html>
THE <H1> TO <H6> TAGS 
• HTML has 6 available heading tags <h1> to <h6> 
• They are tag pairs, meaning they have an opening tag and a 
matching closing tag
THE <H1> TO <H6> TAGS 
• Heading tags define the headings and sub-headings in your 
page 
• They enable the user to quickly understand what they're 
reading and how the sections of content relates to each other. 
• Heading tags should be used in descending order as intended 
and only used for headings 
• Headings should not be used to format other content (eg. 
make text larger) 
• The first heading tag <h1> is the biggest and boldest, it should 
only be used once per page 
• The rest of the content uses sub-headings: <h2> - <h6>
THE <H1> TO <H6> TAGS 
<!DOCTYPE html> 
<html> 
<head> 
<title>Title of the document</title> 
</head> 
<body> 
<h1>Here is a heading to my content</h1> 
<p>Just some random text to make a paragraph. Just some 
random text to make a paragraph.</p> 
<h2>Here is a sub heading to my content</h2> 
<p>Just some random text to make a paragraph. Just some 
random text to make a paragraph.</p> 
</body> 
</html>
THE <STRONG> TAG 
• The <strong> tag is used to make portions or single words 
strong, or bold 
• Although there is a bold tag available in HTML <b> the newer 
versions of HTML (HTML 5) requires we use <strong> instead of 
<b> because it is more semantic (descriptive) to the web browser 
• The <strong> tag require pairs - an opening tag and a matching 
closing tag 
Example: 
<strong>This text now become strong or bold</strong> 
• The <strong> tag is usually “nested” inside of another tag and it 
can describe 1 word or multiple words as being strong
THE <STRONG> TAG 
<!DOCTYPE html> 
<html> 
<head> 
<title>Title of the document</title> 
</head> 
<body> 
<p>Just some <strong>random text</strong>to make a 
paragraph. Just some random text to make a paragraph. Just 
some random text to make a paragraph.</p> 
</body> 
</html>
THE <EM> TAG 
• The <em> tag is used to make portions or single words 
emphasized or italicized 
• Although there is a italics tag available in HTML <i> the newer 
versions of HTML (HTML 5) requires we use <em> instead of <i> 
because it is more semantic (descriptive) to the web browser 
• The <strong> tag require pairs - an opening tag and a matching 
closing tag 
Example: 
<em>This text now emphasized</em> 
• The <em> tag is usually “nested” inside of another tag and it can 
describe 1 word or multiple words as being emphasized
THE <EM> TAG 
<!DOCTYPE html> 
<html> 
<head> 
<title>Title of the document</title> 
</head> 
<body> 
<p>Just some <strong>random text</strong>to make a 
paragraph. Just some Just some <em>random text to</em> 
make a paragraph. Just some random text to make a 
paragraph.</p> 
</body> 
</html>
THE <BR /> TAG 
• The <br /> tag is used to insert a lines break in text 
• The <br /> tag is a “self closing” or “self terminating” tag which means it does 
not require a closing tag 
• You may also see it written as <br> (without the /> on the right) 
Example (code): 
<p>This is some text that will be <br />broken to another line with the break <br 
/>tag.</p> 
How it will display: 
This is some text that will be 
broken to another line with the break tag. 
• The <br /> tag is usually “nested” inside of another tag to break paragraph text 
to new lines but can be used on its own to create space between elements
THE <BR /> TAG 
<!DOCTYPE html> 
<html> 
<head> 
<title>Title of the document</title> 
</head> 
<body> 
<p>Just some <strong>random text</strong>to make a 
paragraph. Just some Just some <em>random text to</em> 
make a paragraph. 
<br />Just some random text to make a paragraph.</p> 
</body> 
</html>
THE <HR /> TAG 
• The <hr /> tag is used to insert a horizontal rule usually to indicate a new section 
of text or for visual interest 
• The <hr /> tag is a “self closing” or “self terminating” tag which means it does not 
require a closing tag 
Example (code): 
<h1>This is a heading</h1> 
<hr /> 
<p>This is a paragraph of text</p> 
How it will display: 
This is a heading 
This is a paragraph of text
THE <HR /> TAG 
<!DOCTYPE html> 
<html> 
<head> 
<title>Title of the document</title> 
</head> 
<body> 
<p>Just some <strong>random text</strong>to make a 
paragraph. Just some Just some <em>random text to</em> 
make a paragraph.</p> 
<hr /> 
<p>Just some random text to make a paragraph.</p> 
</body> 
</html>

More Related Content

PPTX
Artistic Web Applications - Week3 - Part 2
PPTX
Week 4 Lecture Part 1
PPTX
Artistic Web Applications - Week3 - Part 3
PPTX
Artistic Web Applications - Week3 - Part 1
PPTX
HTML 5 Tutorial
PDF
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Artistic Web Applications - Week3 - Part 2
Week 4 Lecture Part 1
Artistic Web Applications - Week3 - Part 3
Artistic Web Applications - Week3 - Part 1
HTML 5 Tutorial
What is HTML - An Introduction to HTML (Hypertext Markup Language)

What's hot (20)

PDF
Lesson 1: Introduction to HTML
POTX
Introduction to PHP - Slide 1
PPTX
HTML Lesson 1
PPTX
HTML Introduction, HTML History, HTML Uses, HTML benifits
PDF
3. tutorial html web desain
PPT
HTML email design and usability
PPT
HTML_Slideshow1
DOCX
Summary of-xhtml-basics
PPT
Lesson 2: Getting To Know HTML
PPTX
Html introduction by ikram niaz
PPTX
Basic HTML
PPT
Learning Html
PPTX
Html.ppt
PPT
1. html introduction
PPTX
Html
PPTX
A109 base code html
PPT
Introduction To HTML
PPTX
How to create basic webpage
PPTX
Links - IntraPage
PDF
Intro to HTML (Kid's Class at TIY)
Lesson 1: Introduction to HTML
Introduction to PHP - Slide 1
HTML Lesson 1
HTML Introduction, HTML History, HTML Uses, HTML benifits
3. tutorial html web desain
HTML email design and usability
HTML_Slideshow1
Summary of-xhtml-basics
Lesson 2: Getting To Know HTML
Html introduction by ikram niaz
Basic HTML
Learning Html
Html.ppt
1. html introduction
Html
A109 base code html
Introduction To HTML
How to create basic webpage
Links - IntraPage
Intro to HTML (Kid's Class at TIY)
Ad

Viewers also liked (6)

PPTX
HTML STYLES
PDF
Html editor v3
PDF
บทที่ 3 html editors
PDF
Html text and formatting
KEY
HTML presentation for beginners
PPT
Html Ppt
HTML STYLES
Html editor v3
บทที่ 3 html editors
Html text and formatting
HTML presentation for beginners
Html Ppt
Ad

Similar to Week 4 Lecture Part 2 (20)

PPTX
TagsL1.pptx
PPTX
Web technologies Clent server communication
PPTX
Web_Technologies_Entire_topic_with Code.pptx
PDF
html.pdf
PPTX
PPTX
Basic Html Knowledge for students
PDF
Best HTML Training &Coaching in Ambala
PDF
Html tutorial
PPTX
Internet Technology UNIT 2 FINAL NOTES.pptx
PPTX
html-161127061626.pptx vnvntdtdxbcj fffffffffff fffd
PPTX
Introduction to HTML
PPTX
EBRE TABOR UNIVERSITY Gafat Institute of Technology Department of Information...
PPTX
dfgg.pptx dfvdrf rfgegver dfversdv efdwsfw efdsxc
PPTX
Html introduction
PPTX
Learning html. (Part- 1)
PPTX
Html basics-auro skills
PDF
SEO Training in Noida- Skyinfotech.in
PPTX
SDP_HTML.pptx
PPTX
Html and its tags
PPTX
Learn HTML Easier
TagsL1.pptx
Web technologies Clent server communication
Web_Technologies_Entire_topic_with Code.pptx
html.pdf
Basic Html Knowledge for students
Best HTML Training &Coaching in Ambala
Html tutorial
Internet Technology UNIT 2 FINAL NOTES.pptx
html-161127061626.pptx vnvntdtdxbcj fffffffffff fffd
Introduction to HTML
EBRE TABOR UNIVERSITY Gafat Institute of Technology Department of Information...
dfgg.pptx dfvdrf rfgegver dfversdv efdwsfw efdsxc
Html introduction
Learning html. (Part- 1)
Html basics-auro skills
SEO Training in Noida- Skyinfotech.in
SDP_HTML.pptx
Html and its tags
Learn HTML Easier

More from Katherine McCurdy-Lapierre, R.G.D. (13)

PPTX
Module 5 - WCM system comparison
PPTX
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
PPTX
Module 3 - Intro to Bootstrap
PPTX
Week 4 - tablet app design
PPTX
Week 3 Lecture: Accessibility
PPTX
Interactive Web Design 5 - Week 2 - Introduction
PPTX
Week 12 CSS - Review from last week
PPTX
Week 12 CSS Font - size
PPTX
Week 12 CSS Font - family
PPTX
PPTX
Week 4 Lecture Accessibility
PPTX
Week2 lecture-whatiswebdesign-part1
PPTX
LecWeek2 lecture-whatiswebdesign-part2
Module 5 - WCM system comparison
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 3 - Intro to Bootstrap
Week 4 - tablet app design
Week 3 Lecture: Accessibility
Interactive Web Design 5 - Week 2 - Introduction
Week 12 CSS - Review from last week
Week 12 CSS Font - size
Week 12 CSS Font - family
Week 4 Lecture Accessibility
Week2 lecture-whatiswebdesign-part1
LecWeek2 lecture-whatiswebdesign-part2

Recently uploaded (20)

PDF
Complications of Minimal Access Surgery at WLH
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Classroom Observation Tools for Teachers
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
master seminar digital applications in india
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
Institutional Correction lecture only . . .
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
Complications of Minimal Access Surgery at WLH
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Classroom Observation Tools for Teachers
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
master seminar digital applications in india
Final Presentation General Medicine 03-08-2024.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
O5-L3 Freight Transport Ops (International) V1.pdf
A systematic review of self-coping strategies used by university students to ...
Institutional Correction lecture only . . .
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
VCE English Exam - Section C Student Revision Booklet
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Computing-Curriculum for Schools in Ghana
Module 4: Burden of Disease Tutorial Slides S2 2025
human mycosis Human fungal infections are called human mycosis..pptx

Week 4 Lecture Part 2

  • 1. WEEK 4 FORMATTING HTML CONTENT
  • 2. THE <P> TAG • HTML content is very different than working in an application like InDesign, MS Word or other word processor • By adding a couple of additional tags to our basic HTML structure, we can start to build and format content. • When adding paragraphs of copy within a web document you have to use the opening and closing <p> </p> tags to create the separation between sections of copy • Example: <p>Everything between the opening and closing <p> tags is being described to the web browser as a paragraph</p> • <p> </p> = Used to create paragraphs, require an opening and closing tag
  • 3. THE <P> TAG <!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <p>Just some random text to make a paragraph. Just some random text to make a paragraph.</p> <p>Just some random text to make a paragraph. Just some random text to make a paragraph</p> </body> </html>
  • 4. THE <H1> TO <H6> TAGS • HTML has 6 available heading tags <h1> to <h6> • They are tag pairs, meaning they have an opening tag and a matching closing tag
  • 5. THE <H1> TO <H6> TAGS • Heading tags define the headings and sub-headings in your page • They enable the user to quickly understand what they're reading and how the sections of content relates to each other. • Heading tags should be used in descending order as intended and only used for headings • Headings should not be used to format other content (eg. make text larger) • The first heading tag <h1> is the biggest and boldest, it should only be used once per page • The rest of the content uses sub-headings: <h2> - <h6>
  • 6. THE <H1> TO <H6> TAGS <!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <h1>Here is a heading to my content</h1> <p>Just some random text to make a paragraph. Just some random text to make a paragraph.</p> <h2>Here is a sub heading to my content</h2> <p>Just some random text to make a paragraph. Just some random text to make a paragraph.</p> </body> </html>
  • 7. THE <STRONG> TAG • The <strong> tag is used to make portions or single words strong, or bold • Although there is a bold tag available in HTML <b> the newer versions of HTML (HTML 5) requires we use <strong> instead of <b> because it is more semantic (descriptive) to the web browser • The <strong> tag require pairs - an opening tag and a matching closing tag Example: <strong>This text now become strong or bold</strong> • The <strong> tag is usually “nested” inside of another tag and it can describe 1 word or multiple words as being strong
  • 8. THE <STRONG> TAG <!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <p>Just some <strong>random text</strong>to make a paragraph. Just some random text to make a paragraph. Just some random text to make a paragraph.</p> </body> </html>
  • 9. THE <EM> TAG • The <em> tag is used to make portions or single words emphasized or italicized • Although there is a italics tag available in HTML <i> the newer versions of HTML (HTML 5) requires we use <em> instead of <i> because it is more semantic (descriptive) to the web browser • The <strong> tag require pairs - an opening tag and a matching closing tag Example: <em>This text now emphasized</em> • The <em> tag is usually “nested” inside of another tag and it can describe 1 word or multiple words as being emphasized
  • 10. THE <EM> TAG <!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <p>Just some <strong>random text</strong>to make a paragraph. Just some Just some <em>random text to</em> make a paragraph. Just some random text to make a paragraph.</p> </body> </html>
  • 11. THE <BR /> TAG • The <br /> tag is used to insert a lines break in text • The <br /> tag is a “self closing” or “self terminating” tag which means it does not require a closing tag • You may also see it written as <br> (without the /> on the right) Example (code): <p>This is some text that will be <br />broken to another line with the break <br />tag.</p> How it will display: This is some text that will be broken to another line with the break tag. • The <br /> tag is usually “nested” inside of another tag to break paragraph text to new lines but can be used on its own to create space between elements
  • 12. THE <BR /> TAG <!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <p>Just some <strong>random text</strong>to make a paragraph. Just some Just some <em>random text to</em> make a paragraph. <br />Just some random text to make a paragraph.</p> </body> </html>
  • 13. THE <HR /> TAG • The <hr /> tag is used to insert a horizontal rule usually to indicate a new section of text or for visual interest • The <hr /> tag is a “self closing” or “self terminating” tag which means it does not require a closing tag Example (code): <h1>This is a heading</h1> <hr /> <p>This is a paragraph of text</p> How it will display: This is a heading This is a paragraph of text
  • 14. THE <HR /> TAG <!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <p>Just some <strong>random text</strong>to make a paragraph. Just some Just some <em>random text to</em> make a paragraph.</p> <hr /> <p>Just some random text to make a paragraph.</p> </body> </html>