SlideShare a Scribd company logo
1 of 14
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

What's hot

Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLOlivia Moran
 
Introduction to PHP - Slide 1
Introduction to PHP - Slide 1 Introduction to PHP - Slide 1
Introduction to PHP - Slide 1 pctechnology
 
HTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifitsHTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifitsPro Guide
 
3. tutorial html web desain
3. tutorial html web desain3. tutorial html web desain
3. tutorial html web desainfaizibra
 
HTML email design and usability
HTML email design and usabilityHTML email design and usability
HTML email design and usabilityKeith Kmett
 
HTML_Slideshow1
HTML_Slideshow1HTML_Slideshow1
HTML_Slideshow1ldehn
 
Summary of-xhtml-basics
Summary of-xhtml-basicsSummary of-xhtml-basics
Summary of-xhtml-basicsstarlanter
 
Lesson 2: Getting To Know HTML
Lesson 2: Getting To Know HTMLLesson 2: Getting To Know HTML
Lesson 2: Getting To Know HTMLOlivia Moran
 
Html introduction by ikram niaz
Html introduction by ikram niazHtml introduction by ikram niaz
Html introduction by ikram niazikram niaz
 
Basic HTML
Basic HTMLBasic HTML
Basic HTMLSayan De
 
Introduction To HTML
Introduction To HTMLIntroduction To HTML
Introduction To HTMLMehul Patel
 
How to create basic webpage
How to create basic webpageHow to create basic webpage
How to create basic webpageJames Erro
 
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
 

What's hot (20)

Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
 
Introduction to PHP - Slide 1
Introduction to PHP - Slide 1 Introduction to PHP - Slide 1
Introduction to PHP - Slide 1
 
HTML Lesson 1
HTML Lesson 1HTML Lesson 1
HTML Lesson 1
 
HTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifitsHTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifits
 
3. tutorial html web desain
3. tutorial html web desain3. tutorial html web desain
3. tutorial html web desain
 
HTML email design and usability
HTML email design and usabilityHTML email design and usability
HTML email design and usability
 
HTML_Slideshow1
HTML_Slideshow1HTML_Slideshow1
HTML_Slideshow1
 
Summary of-xhtml-basics
Summary of-xhtml-basicsSummary of-xhtml-basics
Summary of-xhtml-basics
 
Lesson 2: Getting To Know HTML
Lesson 2: Getting To Know HTMLLesson 2: Getting To Know HTML
Lesson 2: Getting To Know HTML
 
Html introduction by ikram niaz
Html introduction by ikram niazHtml introduction by ikram niaz
Html introduction by ikram niaz
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Learning Html
Learning HtmlLearning Html
Learning Html
 
Html.ppt
Html.pptHtml.ppt
Html.ppt
 
1. html introduction
1. html introduction1. html introduction
1. html introduction
 
Html
HtmlHtml
Html
 
A109 base code html
A109 base code   htmlA109 base code   html
A109 base code html
 
Introduction To HTML
Introduction To HTMLIntroduction To HTML
Introduction To HTML
 
How to create basic webpage
How to create basic webpageHow to create basic webpage
How to create basic webpage
 
Links - IntraPage
Links - IntraPageLinks - IntraPage
Links - IntraPage
 
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)
 

Viewers also liked

บทที่ 3 html editors
บทที่ 3 html editorsบทที่ 3 html editors
บทที่ 3 html editorsNattipong Siangyen
 
Html text and formatting
Html text and formattingHtml text and formatting
Html text and formattingeShikshak
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginnersjeroenvdmeer
 

Viewers also liked (6)

HTML STYLES
HTML STYLESHTML STYLES
HTML STYLES
 
Html editor v3
Html editor v3Html editor v3
Html editor v3
 
บทที่ 3 html editors
บทที่ 3 html editorsบทที่ 3 html editors
บทที่ 3 html editors
 
Html text and formatting
Html text and formattingHtml text and formatting
Html text and formatting
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 

Similar to Week 4 Lecture Part 2

Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for studentsvethics
 
Best HTML Training &Coaching in Ambala
Best HTML Training &Coaching in AmbalaBest HTML Training &Coaching in Ambala
Best HTML Training &Coaching in Ambalajatin batra
 
Html tutorial
Html tutorialHtml tutorial
Html tutorialShankar D
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLAmeer Khan
 
Learning html. (Part- 1)
Learning html. (Part- 1)Learning html. (Part- 1)
Learning html. (Part- 1)manya abrol
 
Html basics-auro skills
Html basics-auro skillsHtml basics-auro skills
Html basics-auro skillsBoneyGawande
 
SEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSky Infotech
 
SDP_HTML.pptx
SDP_HTML.pptxSDP_HTML.pptx
SDP_HTML.pptxVani011
 
215077679 introduction to HTML
215077679  introduction to HTML215077679  introduction to HTML
215077679 introduction to HTMLXolani Madlopha
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html NotesNextGenr
 
Chapter 6 html
Chapter 6 htmlChapter 6 html
Chapter 6 htmlhome
 

Similar to Week 4 Lecture Part 2 (20)

TagsL1.pptx
TagsL1.pptxTagsL1.pptx
TagsL1.pptx
 
html.pdf
html.pdfhtml.pdf
html.pdf
 
Html
HtmlHtml
Html
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
Best HTML Training &Coaching in Ambala
Best HTML Training &Coaching in AmbalaBest HTML Training &Coaching in Ambala
Best HTML Training &Coaching in Ambala
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Learning html. (Part- 1)
Learning html. (Part- 1)Learning html. (Part- 1)
Learning html. (Part- 1)
 
Html basics-auro skills
Html basics-auro skillsHtml basics-auro skills
Html basics-auro skills
 
SEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.in
 
SDP_HTML.pptx
SDP_HTML.pptxSDP_HTML.pptx
SDP_HTML.pptx
 
Html and its tags
Html and its tagsHtml and its tags
Html and its tags
 
Learn HTML Easier
Learn HTML EasierLearn HTML Easier
Learn HTML Easier
 
Html1
Html1Html1
Html1
 
Html2
Html2Html2
Html2
 
215077679 introduction to HTML
215077679  introduction to HTML215077679  introduction to HTML
215077679 introduction to HTML
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
 
Chapter 6 html
Chapter 6 htmlChapter 6 html
Chapter 6 html
 
Html
HtmlHtml
Html
 

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

Module 5 - WCM system comparison
Module 5 - WCM system comparison Module 5 - WCM system comparison
Module 5 - WCM system comparison
 
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
 
Module 3 - Intro to Bootstrap
Module 3 - Intro to BootstrapModule 3 - Intro to Bootstrap
Module 3 - Intro to Bootstrap
 
Week 4 - tablet app design
Week 4 - tablet app designWeek 4 - tablet app design
Week 4 - tablet app design
 
Week 3 Lecture: Accessibility
Week 3 Lecture: AccessibilityWeek 3 Lecture: Accessibility
Week 3 Lecture: Accessibility
 
Interactive Web Design 5 - Week 2 - Introduction
Interactive Web Design 5 - Week 2 -  IntroductionInteractive Web Design 5 - Week 2 -  Introduction
Interactive Web Design 5 - Week 2 - Introduction
 
Week 12 CSS - Review from last week
Week 12 CSS - Review from last weekWeek 12 CSS - Review from last week
Week 12 CSS - Review from last week
 
Week 12 CSS Font - size
Week 12 CSS Font - sizeWeek 12 CSS Font - size
Week 12 CSS Font - size
 
Week 12 CSS Font - family
Week 12 CSS Font - familyWeek 12 CSS Font - family
Week 12 CSS Font - family
 
Week11 Lecture: CSS
Week11 Lecture: CSSWeek11 Lecture: CSS
Week11 Lecture: CSS
 
Week 4 Lecture Accessibility
Week 4 Lecture AccessibilityWeek 4 Lecture Accessibility
Week 4 Lecture Accessibility
 
Week2 lecture-whatiswebdesign-part1
Week2 lecture-whatiswebdesign-part1Week2 lecture-whatiswebdesign-part1
Week2 lecture-whatiswebdesign-part1
 
LecWeek2 lecture-whatiswebdesign-part2
LecWeek2 lecture-whatiswebdesign-part2LecWeek2 lecture-whatiswebdesign-part2
LecWeek2 lecture-whatiswebdesign-part2
 

Recently uploaded

Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 

Recently uploaded (20)

OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 

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>