SlideShare a Scribd company logo
Text formatting
IN A ROCKET
Learn front-end development at rocket speed
HTML HTML FUNDAMENTALS
LET'S LEARN HTML!
IN THIS MODULE YOU'LL LEARN:
HTML FUNDAMENTALS: Text formatting inarocket.com
How to structure your content with headers.

How to organize your ideas with paragraphs.

How to force spaces and preformat text.

How to format quotes with blockquote.

How to tag relevant content with mark.

How to create ordered, unordered and description lists.

How to show/hide additional content with details.

How to document your code with comments.
in a
ROCKET
HEADERS
Use them to define structure and hierarchy of your content
HTML FUNDAMENTALS: Text formatting inarocket.com
<h1>
<h2>
HTML FUNDAMENTALS: Text formatting inarocket.com
<h1> <h2> <h6><h3> <h4> <h5>
Very 

important
Less 

important
HTML FUNDAMENTALS: Text formatting inarocket.com
HEADERS
Editor Browser
<body>
<h1>Tim Berners-Lee</h1>
</body>
READY TO USE CODE
Web page title
index.html
Tim Berners-Lee
CONGRATULATIONS!
YOU'VE LEARNED:
HTML FUNDAMENTALS: Text formatting inarocket.com
How to structure your content with headers.

How to organize your ideas with paragraphs.

How to force spaces and preformat text.

How to format quotes with blockquote.

How to tag relevant content with mark.

How to create ordered, unordered and description lists.

How to show/hide additional content with details.

How to document your code with comments.
in a
ROCKET
PARAGRAPHS
They help you structure the text
HTML FUNDAMENTALS: Text formatting inarocket.com
<p>
HTML FUNDAMENTALS: Text formatting inarocket.com
Web page title
index.html
Tim Berners-Lee
Sir Timothy John "Tim" Berners- Lee is a British computer
scientist, best known as the inventor of the World Wide Web.
PARAGRAPHS
Editor Browser
<body>
<h1>Tim Berners-Lee</h1>
<p>Sir Timothy John "Tim" Berners-
Lee is a British computer
scientist, best known as the
inventor of the World Wide Web.</p>
</body>
READY TO USE CODE
CONGRATULATIONS!
YOU'VE LEARNED:
HTML FUNDAMENTALS: Text formatting inarocket.com
How to structure your content with headers.

How to organize your ideas with paragraphs.

How to force spaces and preformat text.

How to format quotes with blockquote.

How to tag relevant content with mark.

How to create ordered, unordered and description lists.

How to show/hide additional content with details.

How to document your code with comments.
in a
ROCKET
EMPHASIS & IMPORTANCE
Use them to stress and emphasize certain words
HTML FUNDAMENTALS: Text formatting inarocket.com
EMPHASIS
Editor Browser
<body>
<p>Ask not what your country can
do for you; ask what <em>you</em>
can do for your country.</p>
</body>
READY TO USE CODE
The em element marks text that has stress emphasis.
Web page title
index.html
Ask not what your country can do for you; ask what you can
do for your country.
em
HTML FUNDAMENTALS: Text formatting inarocket.com
IMPORTANCE
Editor Browser
<body>
<p>Registration opens
<strong>tomorrow at 10 am</strong>.
</p>
</body>
READY TO USE CODE
The strong element gives text strong importance, and is
typically displayed in bold.
Web page title
index.html
Registration opens tomorrow at 10 am.
in a
ROCKET
SPACES
They help you separate content
HTML FUNDAMENTALS: Text formatting inarocket.com
SPACES: NON BREAKING SPACES
The &nbsp; entity stands for "non breaking space"
&nbsp;
Inserts a single space into your content
HTML FUNDAMENTALS: Text formatting inarocket.com
SPACES: NON BREAKING SPACES
Editor Browser
<body>
<p>Hello&nbsp;&nbsp;&nbsp;world!</p>
</body>
READY TO USE CODE
Web page title
index.html
Hello world!
Three spaces
HTML FUNDAMENTALS: Text formatting inarocket.com
SPACES: LINE BREAKS
HTML elements with no content are called empty elements and
they have no closing tag in HTML5
<br>
Inserts a line break into your content
HTML FUNDAMENTALS: Text formatting inarocket.com
SPACES: LINE BREAKS
Editor Browser
<body>
<p>Sir Timothy John "Tim" Berners-
Lee is a British computer
scientist, <br>best known as the
inventor of the World Wide Web.</p>
</body>
READY TO USE CODE
Web page title
index.html
Sir Timothy John "Tim" Berners- Lee is a British computer
scientist, 

best known as the inventor of the World Wide Web.
line break
HTML FUNDAMENTALS: Text formatting inarocket.com
SPACES: HORIZONTAL LINES
HTML elements with no content are called empty elements and
they have no closing tag in HTML5
<hr>
Inserts a horizontal line and 

represents a thematic break between paragraph-level elements
HTML FUNDAMENTALS: Text formatting inarocket.com
SPACES: HORIZONTAL LINES
Editor Browser
<body>
<h1>Tim Berners-Lee</h1>
<p>Sir Timothy John "Tim" Berners-Lee
is the inventor of the World Wide Web.
</p>
<hr>
<h1>Vinton Cerf</h1>
<p>Is an American Internet pioneer, who
is recognized as one of "the fathers of
the Internet".</p>
</body>
READY TO USE CODE
Web page title
index.html
Tim Berners-Lee
Sir Timothy John "Tim" Berners- Lee is the inventor of the
World Wide Web.
Vinton Cerf
Is an American Internet pioneer, who is recognized as one of
"the fathers of the Internet".
in a
ROCKET
PREFORMATTED TEXT
Text is rendered using a fixed font and
whitespace characters are treated literally
HTML FUNDAMENTALS: Text formatting inarocket.com
PREFORMATTED TEXT
Editor Browser
<body>
<pre>Preformatted text is displayed in
a fixed-width font, and it preserves
both
spaces and line
breaks.</pre>
</body>
READY TO USE CODE
The pre element represents a block of preformatted 

text, in which structure is represented by typographic 

conventions rather than by elements.
Web page title
index.html
Performed text is displayed in 

a fixed-width font, and it preserves 

both 

spaces and line 

breaks.
CONGRATULATIONS!
YOU'VE LEARNED:
HTML FUNDAMENTALS: Text formatting inarocket.com
How to structure your content with headers.

How to organize your ideas with paragraphs.

How to force spaces and preformat text.

How to format quotes with blockquote.

How to tag relevant content with mark.

How to create ordered, unordered and description lists.

How to show/hide additional content with details.

How to document your code with comments.
in a
ROCKET
CODE
Use it to represent fragments of computer code
HTML FUNDAMENTALS: Text formatting inarocket.com
CODE
Editor Browser
<body>
<p>To add a header you can use the
following code:<br>
<code>function hello()
{alert("Hello world!");}</code>
</p>
</body>
READY TO USE CODE
The code element represents a fragment of computer code.
Web page title
index.html
To add a header you can use the following code:

function hello() {alert("Hello world!");}
in a
ROCKET
FIGURE
Used to represent self-contained content, frequently with a caption
HTML FUNDAMENTALS: Text formatting inarocket.com
FIGURE
Editor Browser
<body>
<figure>
<code>var i=0;</code>
<figcaption>A JavaScript variable 

declaration.</figcaption>
</figure>
</body>
READY TO USE CODE
The figure element represents some flow content, 

optionally with a caption, that is self-contained and is 

typically referenced as a single unit from the main flow 

of the document.
Web page title
index.html
var i=0;
A Javascript variable declaration.
in a
ROCKET
BLOCKQUOTE
It indicates that the enclosed text is an extended quotation
HTML FUNDAMENTALS: Text formatting inarocket.com
BLOCKQUOTE
Editor Browser
<body>
<blockquote>What's the worst that could
happen? - <cite><a href=“https://
en.wikipedia.org/wiki/Tim_Ferriss">Tim
Ferriss</a></cite>
</blockquote>
</body>
READY TO USE CODE
The blockquote element represents content that is 

quoted from another source, optionally with a citation 

which must be within a footer or cite element.
Web page title
index.html
What's the worst that could happen? - Tim Ferriss
CONGRATULATIONS!
YOU'VE LEARNED:
HTML FUNDAMENTALS: Text formatting inarocket.com
How to structure your content with headers.

How to organize your ideas with paragraphs.

How to force spaces and preformat text.

How to format quotes with blockquote.

How to tag relevant content with mark.

How to create ordered, unordered and description lists.

How to show/hide additional content with details.

How to document your code with comments.
in a
ROCKET
MARK
Use it to represent highlighted text due to its relevance in a particular context
HTML FUNDAMENTALS: Text formatting inarocket.com
<mark>
HTML FUNDAMENTALS: Text formatting inarocket.com
MARK
Editor Browser
<body>
<h1>Tim Berners-Lee</h1>
<p>Sir Timothy John "Tim" Berners-
Lee is a British computer scientist,
best known as <mark>the inventor of
the World Wide Web</mark>.</p>
</body>
READY TO USE CODE
Mark element is used to tag content that has relevance.
Web page title
index.html
Tim Berners-Lee
Sir Timothy John "Tim" Berners- Lee is a British computer
scientist, best known as the inventor of the World Wide Web.
CONGRATULATIONS!
YOU'VE LEARNED:
HTML FUNDAMENTALS: Text formatting inarocket.com
How to structure your content with headers.

How to organize your ideas with paragraphs.

How to force spaces and preformat text.

How to format quotes with blockquote.

How to tag relevant content with mark.

How to create ordered, unordered and description lists.

How to show/hide additional content with details.

How to document your code with comments.
in a
ROCKET
LISTS
Use them to mark up lists of items
HTML FUNDAMENTALS: Text formatting inarocket.com
LISTS: UNORDERED
Editor Browser
<body>
<ul>
<li>Spielberg</li>
<li>Coppola</li>
<li>Scorsese</li>
</ul>
</body>
READY TO USE CODE
ul = unordered list.

li = list item.
Web page title
index.html
• Spielberg

• Coppola

• Scorsese
HTML FUNDAMENTALS: Text formatting inarocket.com
LISTS: ORDERED
Editor Browser
<body>
<ol>
<li>Usain Bolt - Gold</li>
<li>Yohan Blake - Silver</li>
<li>Justin Gatlin - Bronze</li>
</ol>
</body>
READY TO USE CODE
ol = ordered list.

li = list item.
Web page title
index.html
1. Usain Bolt - Gold

2. Yohan Blake - Silver

3. Justin Gatlin - Bronze
HTML FUNDAMENTALS: Text formatting inarocket.com
LISTS: NESTED
Editor Browser
<body>
<ul>
<li>Red
<ul>
<li>Light</li>
<li>Dark</li>
</ul>
</li>
<li>Green</li>
<li>Blue</li>
</ul>
</body>
READY TO USE CODE
Web page title
index.html
• Red

• Light

• Dark

• Green

• Blue
HTML FUNDAMENTALS: Text formatting inarocket.com
LISTS: DESCRIPTION
Editor Browser
<body>
<dl>
<dt>W3C</dt>
<dd>Is the main international
standards organization for the World
Wide Web.</dd>
<dt>HTML</dt>
<dd>Is the standard markup language
used to create web pages.</dd>
</dl>
</body>
READY TO USE CODE
dl = definition list.

dt = definition term.

dd = definition definition.
Web page title
index.html
W3C

Is the main international standards organization 

for the World Wide Web.

HTML

Is the standard markup language used to create 

web pages.
CONGRATULATIONS!
YOU'VE LEARNED:
HTML FUNDAMENTALS: Text formatting inarocket.com
How to structure your content with headers.

How to organize your ideas with paragraphs.

How to force spaces and preformat text.

How to format quotes with blockquote.

How to tag relevant content with mark.

How to create ordered, unordered and description lists.

How to show/hide additional content with details.

How to document your code with comments.
in a
ROCKET
DETAILS
A disclosure widget from which the user can retrieve additional information
HTML FUNDAMENTALS: Text formatting inarocket.com
DETAILS
Editor Browser
<body>
<details>
<summary>What is HTML</summary>
<p>Hypertext Markup Language</p>
</details>
<details>
<summary>What is CSS</summary>
<p>Cascading Style Sheets.</p>
</details>
</body>
READY TO USE CODE
Web page title
index.html
What is HTML

Hypertext Markup Language.

What is CSS
HTML FUNDAMENTALS: Text formatting inarocket.com
Editor Browser
<body>
<details>
<summary>What is HTML</summary>
<p>Hypertext Markup Language</p>
<details>
<summary>HTML5</summary>
<p>Latest HTML recommendation by the
W3C.</p>
</details>
</details>
</body>
READY TO USE CODE
DETAILS: NESTED
Web page title
index.html
What is HTML

Hypertext Markup Language.

HTML5

Latest HTML recommendation by the W3C.
CONGRATULATIONS!
YOU'VE LEARNED:
HTML FUNDAMENTALS: Text formatting inarocket.com
How to structure your content with headers.

How to organize your ideas with paragraphs.

How to force spaces and preformat text.

How to format quotes with blockquote.

How to tag relevant content with mark.

How to create ordered, unordered and description lists.

How to show/hide additional content with details.

How to document your code with comments.
in a
ROCKET
COMMENTS
Include them in your code to say how it works
HTML FUNDAMENTALS: Text formatting inarocket.com
COMMENTS
Editor Browser
<body>
<!-- Main paragraph starts -->
<p>Carl Edward Sagan was an American
astronomer, cosmologist, astrophysicist,
astrobiologist, author, science
popularizer, and science communicator in
astronomy and other natural sciences.</p>
</body>
READY TO USE CODE
A comment can be useful for documenting your code and is
ignored by the browser.
Web page title
index.html
Carl Edward Sagan was an American astronomer,
cosmologist, astrophysicist, astrobiologist, author, science
popularizer, and science communicator in astronomy and
other natural sciences.
HTML FUNDAMENTALS: Text formatting inarocket.com
"Any fool can write code that a computer can understand.
Good programmers write code that humans can understand."
- Martin Fowler
British software developer, author and international public speaker on software development.
in a
ROCKET
HTML ENTITIES
Used to display reserved and invisible characters
HTML FUNDAMENTALS: Text formatting inarocket.com
RECOMMENDED REFERENCE
HTML FUNDAMENTALS: Text formatting inarocket.com
Editor BrowserREADY TO USE CODE
HTML ENTITIES
Web page title
index.html
<body>
<p>Total price: 4.000 &euro;.</p>
<p>&copy; All rights reserved.</p>
</body>
Total price: 4.000 €.

© All rights reserved.
&euro;
&copy;
CONGRATULATIONS!
YOU'VE LEARNED:
HTML FUNDAMENTALS: Text formatting inarocket.com
How to structure your content with headers.

How to organize your ideas with paragraphs.

How to force spaces and preformat text.

How to format quotes with blockquote.

How to tag relevant content with mark.

How to create ordered, unordered and description lists.

How to show/hide additional content with details.

How to document your code with comments.
Learn front-end development at rocket speed
inarocket.com
by miguelsanchez.com
YOU CAN CONTINUE THIS COURSE FOR FREE ON
+ READY TO USE CODE
+ QUIZZES
+ FREE UPDATES
We respect your time

No more blah blah videos. Just straight to
the point slides with relevant information.
Ready to use code

Real code you can just copy and paste into
your real projects.
Step by step guides

Clear and concise steps to build real use
solutions. No missed points.
Learn front-end development at rocket speed
inarocket.com
Text formatting
IN A ROCKET
Learn front-end development at rocket speed
HTML HTML FUNDAMENTALS

More Related Content

What's hot (20)

PDF
Html Tutorial
DenMas Hengky
 
PPT
Html5 accessibility
Virginia DeBolt
 
PPSX
Twitter Bootstrap Comprehensive Overview
Mohamed Loey
 
PPTX
Html basics
Veronica Alejandro
 
PPTX
Introduction to basic HTML [Librarian edition]
Kosie Eloff
 
PDF
GDI Seattle Intro to HTML and CSS - Class 1
Heather Rock
 
PPTX
Hyper Text Marup Language
AniketPujari
 
DOCX
Lesson plan: HTML Formatting Texts and Paragraphs
Keith Borgonia Manatad
 
PPTX
Basic of web design
Singsys Pte Ltd
 
PDF
Web design in 7 days by waqar
Waqar Chodhry
 
PPT
Web pageassignment
beachtch
 
PPT
Xhtml Part1
nleesite
 
PPTX
Html 5.0
Kristof Degrave
 
PDF
From a Fireworks Comp to a Genesis Child Theme, Step by Step
East Bay WordPress Meetup
 
DOCX
HTML Notes And Some Attributes
HIFZUR RAHMAN
 
PPTX
Hyper text markup Language
Naveeth Babu
 
PDF
Basic HTML Tutorial For Beginners
DHTMLExtreme
 
PDF
Introduction to html 5
Nir Elbaz
 
PPTX
10 Steps to Becoming a WordPress Theme Ninja
Tony Cecala, Ph.D.
 
Html Tutorial
DenMas Hengky
 
Html5 accessibility
Virginia DeBolt
 
Twitter Bootstrap Comprehensive Overview
Mohamed Loey
 
Html basics
Veronica Alejandro
 
Introduction to basic HTML [Librarian edition]
Kosie Eloff
 
GDI Seattle Intro to HTML and CSS - Class 1
Heather Rock
 
Hyper Text Marup Language
AniketPujari
 
Lesson plan: HTML Formatting Texts and Paragraphs
Keith Borgonia Manatad
 
Basic of web design
Singsys Pte Ltd
 
Web design in 7 days by waqar
Waqar Chodhry
 
Web pageassignment
beachtch
 
Xhtml Part1
nleesite
 
Html 5.0
Kristof Degrave
 
From a Fireworks Comp to a Genesis Child Theme, Step by Step
East Bay WordPress Meetup
 
HTML Notes And Some Attributes
HIFZUR RAHMAN
 
Hyper text markup Language
Naveeth Babu
 
Basic HTML Tutorial For Beginners
DHTMLExtreme
 
Introduction to html 5
Nir Elbaz
 
10 Steps to Becoming a WordPress Theme Ninja
Tony Cecala, Ph.D.
 

Similar to 2- Learn HTML Fundamentals / Text Formatting (20)

PPT
Castro Chapter 4
Jeff Byrnes
 
PPTX
BSC notes of _HTML_Easyto understand lease see.pptx
VikasTuwar1
 
PDF
03 HTML #burningkeyboards
Denis Ristic
 
PPTX
Semantic markup language
Partnered Health
 
PPT
Hyper text markup language with examples
matiasbahiru1
 
PPTX
Frontend Devlopment internship batch 2024-2.pptx
bankheleom
 
PPTX
Frontend Devlopment internship batch 2024.pptx
bankheleom
 
PDF
Internet Programming
FkdiMl
 
DOCX
Lesson A.1 - Introduction to Web Development.docx
MarlonMagtibay3
 
PDF
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
Aaron Gustafson
 
PPTX
Basic HTML
Sayan De
 
PPTX
HTML Basics, Web Development Part-1 .pptx
Farzana Younas
 
DOCX
HTML
poonamBhalla5
 
PPTX
HTMLHTML HTML ghdgsahdaHTML HTML ghdgsahda.pptx
SadiaBaig6
 
PPTX
HTML (Web) basics for a beginner
Jayapal Reddy Nimmakayala
 
PPTX
Web development ppt used to design web applocation
Indu32
 
PPTX
WEBSITE DEVELOPMENT,HTML is the standard markup language for creating Web pag...
johnmngoya1
 
PPTX
Html 5
DanellaPatrick
 
PDF
Basic Html Notes
NextGenr
 
KEY
Lecture 1
barryavery
 
Castro Chapter 4
Jeff Byrnes
 
BSC notes of _HTML_Easyto understand lease see.pptx
VikasTuwar1
 
03 HTML #burningkeyboards
Denis Ristic
 
Semantic markup language
Partnered Health
 
Hyper text markup language with examples
matiasbahiru1
 
Frontend Devlopment internship batch 2024-2.pptx
bankheleom
 
Frontend Devlopment internship batch 2024.pptx
bankheleom
 
Internet Programming
FkdiMl
 
Lesson A.1 - Introduction to Web Development.docx
MarlonMagtibay3
 
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
Aaron Gustafson
 
Basic HTML
Sayan De
 
HTML Basics, Web Development Part-1 .pptx
Farzana Younas
 
HTMLHTML HTML ghdgsahdaHTML HTML ghdgsahda.pptx
SadiaBaig6
 
HTML (Web) basics for a beginner
Jayapal Reddy Nimmakayala
 
Web development ppt used to design web applocation
Indu32
 
WEBSITE DEVELOPMENT,HTML is the standard markup language for creating Web pag...
johnmngoya1
 
Basic Html Notes
NextGenr
 
Lecture 1
barryavery
 
Ad

More from In a Rocket (15)

PDF
3- Learn Flexbox & CSS Grid / Container & items
In a Rocket
 
PDF
2- Learn Flexbox & CSS Grid / Context
In a Rocket
 
PDF
1- Learn Flexbox & CSS Grid / Environment setup
In a Rocket
 
PDF
17- Learn CSS Fundamentals / Units
In a Rocket
 
PDF
16- Learn CSS Fundamentals / Background
In a Rocket
 
PDF
15- Learn CSS Fundamentals / Color
In a Rocket
 
PDF
14- Learn CSS Fundamentals / Inheritance
In a Rocket
 
PDF
13- Learn CSS Fundamentals / Specificity
In a Rocket
 
PDF
12- Learn CSS Fundamentals / Mix & group
In a Rocket
 
PDF
11- Learn CSS Fundamentals / Combinators
In a Rocket
 
PDF
10- Learn CSS Fundamentals / Pseudo-elements
In a Rocket
 
PDF
9- Learn CSS Fundamentals / Pseudo-classes
In a Rocket
 
PDF
8- Learn CSS Fundamentals / Attribute selectors
In a Rocket
 
PDF
Learn SUIT: CSS Naming Convention
In a Rocket
 
PDF
Learn BEM: CSS Naming Convention
In a Rocket
 
3- Learn Flexbox & CSS Grid / Container & items
In a Rocket
 
2- Learn Flexbox & CSS Grid / Context
In a Rocket
 
1- Learn Flexbox & CSS Grid / Environment setup
In a Rocket
 
17- Learn CSS Fundamentals / Units
In a Rocket
 
16- Learn CSS Fundamentals / Background
In a Rocket
 
15- Learn CSS Fundamentals / Color
In a Rocket
 
14- Learn CSS Fundamentals / Inheritance
In a Rocket
 
13- Learn CSS Fundamentals / Specificity
In a Rocket
 
12- Learn CSS Fundamentals / Mix & group
In a Rocket
 
11- Learn CSS Fundamentals / Combinators
In a Rocket
 
10- Learn CSS Fundamentals / Pseudo-elements
In a Rocket
 
9- Learn CSS Fundamentals / Pseudo-classes
In a Rocket
 
8- Learn CSS Fundamentals / Attribute selectors
In a Rocket
 
Learn SUIT: CSS Naming Convention
In a Rocket
 
Learn BEM: CSS Naming Convention
In a Rocket
 
Ad

Recently uploaded (20)

PPT
introductio to computers by arthur janry
RamananMuthukrishnan
 
PDF
The-Hidden-Dangers-of-Skipping-Penetration-Testing.pdf.pdf
naksh4thra
 
PPT
introduction to networking with basics coverage
RamananMuthukrishnan
 
PPT
Agilent Optoelectronic Solutions for Mobile Application
andreashenniger2
 
PPTX
一比一原版(LaTech毕业证)路易斯安那理工大学毕业证如何办理
Taqyea
 
PPTX
Orchestrating things in Angular application
Peter Abraham
 
PDF
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
PDF
Azure_DevOps introduction for CI/CD and Agile
henrymails
 
PPT
Computer Securityyyyyyyy - Chapter 2.ppt
SolomonSB
 
PPTX
PE introd.pptxfrgfgfdgfdgfgrtretrt44t444
nepmithibai2024
 
PPTX
L1A Season 1 ENGLISH made by A hegy fixed
toszolder91
 
PDF
AI_MOD_1.pdf artificial intelligence notes
shreyarrce
 
PPTX
L1A Season 1 Guide made by A hegy Eng Grammar fixed
toszolder91
 
PPTX
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
PPTX
04 Output 1 Instruments & Tools (3).pptx
GEDYIONGebre
 
DOCX
Custom vs. Off-the-Shelf Banking Software
KristenCarter35
 
PPTX
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
PDF
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
PPTX
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
PPTX
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
introductio to computers by arthur janry
RamananMuthukrishnan
 
The-Hidden-Dangers-of-Skipping-Penetration-Testing.pdf.pdf
naksh4thra
 
introduction to networking with basics coverage
RamananMuthukrishnan
 
Agilent Optoelectronic Solutions for Mobile Application
andreashenniger2
 
一比一原版(LaTech毕业证)路易斯安那理工大学毕业证如何办理
Taqyea
 
Orchestrating things in Angular application
Peter Abraham
 
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
Azure_DevOps introduction for CI/CD and Agile
henrymails
 
Computer Securityyyyyyyy - Chapter 2.ppt
SolomonSB
 
PE introd.pptxfrgfgfdgfdgfgrtretrt44t444
nepmithibai2024
 
L1A Season 1 ENGLISH made by A hegy fixed
toszolder91
 
AI_MOD_1.pdf artificial intelligence notes
shreyarrce
 
L1A Season 1 Guide made by A hegy Eng Grammar fixed
toszolder91
 
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
04 Output 1 Instruments & Tools (3).pptx
GEDYIONGebre
 
Custom vs. Off-the-Shelf Banking Software
KristenCarter35
 
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 

2- Learn HTML Fundamentals / Text Formatting

  • 1. Text formatting IN A ROCKET Learn front-end development at rocket speed HTML HTML FUNDAMENTALS
  • 2. LET'S LEARN HTML! IN THIS MODULE YOU'LL LEARN: HTML FUNDAMENTALS: Text formatting inarocket.com How to structure your content with headers. How to organize your ideas with paragraphs. How to force spaces and preformat text. How to format quotes with blockquote. How to tag relevant content with mark. How to create ordered, unordered and description lists. How to show/hide additional content with details. How to document your code with comments.
  • 3. in a ROCKET HEADERS Use them to define structure and hierarchy of your content
  • 4. HTML FUNDAMENTALS: Text formatting inarocket.com <h1> <h2>
  • 5. HTML FUNDAMENTALS: Text formatting inarocket.com <h1> <h2> <h6><h3> <h4> <h5> Very important Less important
  • 6. HTML FUNDAMENTALS: Text formatting inarocket.com HEADERS Editor Browser <body> <h1>Tim Berners-Lee</h1> </body> READY TO USE CODE Web page title index.html Tim Berners-Lee
  • 7. CONGRATULATIONS! YOU'VE LEARNED: HTML FUNDAMENTALS: Text formatting inarocket.com How to structure your content with headers. How to organize your ideas with paragraphs. How to force spaces and preformat text. How to format quotes with blockquote. How to tag relevant content with mark. How to create ordered, unordered and description lists. How to show/hide additional content with details. How to document your code with comments.
  • 8. in a ROCKET PARAGRAPHS They help you structure the text
  • 9. HTML FUNDAMENTALS: Text formatting inarocket.com <p>
  • 10. HTML FUNDAMENTALS: Text formatting inarocket.com Web page title index.html Tim Berners-Lee Sir Timothy John "Tim" Berners- Lee is a British computer scientist, best known as the inventor of the World Wide Web. PARAGRAPHS Editor Browser <body> <h1>Tim Berners-Lee</h1> <p>Sir Timothy John "Tim" Berners- Lee is a British computer scientist, best known as the inventor of the World Wide Web.</p> </body> READY TO USE CODE
  • 11. CONGRATULATIONS! YOU'VE LEARNED: HTML FUNDAMENTALS: Text formatting inarocket.com How to structure your content with headers. How to organize your ideas with paragraphs. How to force spaces and preformat text. How to format quotes with blockquote. How to tag relevant content with mark. How to create ordered, unordered and description lists. How to show/hide additional content with details. How to document your code with comments.
  • 12. in a ROCKET EMPHASIS & IMPORTANCE Use them to stress and emphasize certain words
  • 13. HTML FUNDAMENTALS: Text formatting inarocket.com EMPHASIS Editor Browser <body> <p>Ask not what your country can do for you; ask what <em>you</em> can do for your country.</p> </body> READY TO USE CODE The em element marks text that has stress emphasis. Web page title index.html Ask not what your country can do for you; ask what you can do for your country. em
  • 14. HTML FUNDAMENTALS: Text formatting inarocket.com IMPORTANCE Editor Browser <body> <p>Registration opens <strong>tomorrow at 10 am</strong>. </p> </body> READY TO USE CODE The strong element gives text strong importance, and is typically displayed in bold. Web page title index.html Registration opens tomorrow at 10 am.
  • 15. in a ROCKET SPACES They help you separate content
  • 16. HTML FUNDAMENTALS: Text formatting inarocket.com SPACES: NON BREAKING SPACES The &nbsp; entity stands for "non breaking space" &nbsp; Inserts a single space into your content
  • 17. HTML FUNDAMENTALS: Text formatting inarocket.com SPACES: NON BREAKING SPACES Editor Browser <body> <p>Hello&nbsp;&nbsp;&nbsp;world!</p> </body> READY TO USE CODE Web page title index.html Hello world! Three spaces
  • 18. HTML FUNDAMENTALS: Text formatting inarocket.com SPACES: LINE BREAKS HTML elements with no content are called empty elements and they have no closing tag in HTML5 <br> Inserts a line break into your content
  • 19. HTML FUNDAMENTALS: Text formatting inarocket.com SPACES: LINE BREAKS Editor Browser <body> <p>Sir Timothy John "Tim" Berners- Lee is a British computer scientist, <br>best known as the inventor of the World Wide Web.</p> </body> READY TO USE CODE Web page title index.html Sir Timothy John "Tim" Berners- Lee is a British computer scientist, best known as the inventor of the World Wide Web. line break
  • 20. HTML FUNDAMENTALS: Text formatting inarocket.com SPACES: HORIZONTAL LINES HTML elements with no content are called empty elements and they have no closing tag in HTML5 <hr> Inserts a horizontal line and represents a thematic break between paragraph-level elements
  • 21. HTML FUNDAMENTALS: Text formatting inarocket.com SPACES: HORIZONTAL LINES Editor Browser <body> <h1>Tim Berners-Lee</h1> <p>Sir Timothy John "Tim" Berners-Lee is the inventor of the World Wide Web. </p> <hr> <h1>Vinton Cerf</h1> <p>Is an American Internet pioneer, who is recognized as one of "the fathers of the Internet".</p> </body> READY TO USE CODE Web page title index.html Tim Berners-Lee Sir Timothy John "Tim" Berners- Lee is the inventor of the World Wide Web. Vinton Cerf Is an American Internet pioneer, who is recognized as one of "the fathers of the Internet".
  • 22. in a ROCKET PREFORMATTED TEXT Text is rendered using a fixed font and whitespace characters are treated literally
  • 23. HTML FUNDAMENTALS: Text formatting inarocket.com PREFORMATTED TEXT Editor Browser <body> <pre>Preformatted text is displayed in a fixed-width font, and it preserves both spaces and line breaks.</pre> </body> READY TO USE CODE The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements. Web page title index.html Performed text is displayed in a fixed-width font, and it preserves both spaces and line breaks.
  • 24. CONGRATULATIONS! YOU'VE LEARNED: HTML FUNDAMENTALS: Text formatting inarocket.com How to structure your content with headers. How to organize your ideas with paragraphs. How to force spaces and preformat text. How to format quotes with blockquote. How to tag relevant content with mark. How to create ordered, unordered and description lists. How to show/hide additional content with details. How to document your code with comments.
  • 25. in a ROCKET CODE Use it to represent fragments of computer code
  • 26. HTML FUNDAMENTALS: Text formatting inarocket.com CODE Editor Browser <body> <p>To add a header you can use the following code:<br> <code>function hello() {alert("Hello world!");}</code> </p> </body> READY TO USE CODE The code element represents a fragment of computer code. Web page title index.html To add a header you can use the following code: function hello() {alert("Hello world!");}
  • 27. in a ROCKET FIGURE Used to represent self-contained content, frequently with a caption
  • 28. HTML FUNDAMENTALS: Text formatting inarocket.com FIGURE Editor Browser <body> <figure> <code>var i=0;</code> <figcaption>A JavaScript variable 
 declaration.</figcaption> </figure> </body> READY TO USE CODE The figure element represents some flow content, optionally with a caption, that is self-contained and is typically referenced as a single unit from the main flow of the document. Web page title index.html var i=0; A Javascript variable declaration.
  • 29. in a ROCKET BLOCKQUOTE It indicates that the enclosed text is an extended quotation
  • 30. HTML FUNDAMENTALS: Text formatting inarocket.com BLOCKQUOTE Editor Browser <body> <blockquote>What's the worst that could happen? - <cite><a href=“https:// en.wikipedia.org/wiki/Tim_Ferriss">Tim Ferriss</a></cite> </blockquote> </body> READY TO USE CODE The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element. Web page title index.html What's the worst that could happen? - Tim Ferriss
  • 31. CONGRATULATIONS! YOU'VE LEARNED: HTML FUNDAMENTALS: Text formatting inarocket.com How to structure your content with headers. How to organize your ideas with paragraphs. How to force spaces and preformat text. How to format quotes with blockquote. How to tag relevant content with mark. How to create ordered, unordered and description lists. How to show/hide additional content with details. How to document your code with comments.
  • 32. in a ROCKET MARK Use it to represent highlighted text due to its relevance in a particular context
  • 33. HTML FUNDAMENTALS: Text formatting inarocket.com <mark>
  • 34. HTML FUNDAMENTALS: Text formatting inarocket.com MARK Editor Browser <body> <h1>Tim Berners-Lee</h1> <p>Sir Timothy John "Tim" Berners- Lee is a British computer scientist, best known as <mark>the inventor of the World Wide Web</mark>.</p> </body> READY TO USE CODE Mark element is used to tag content that has relevance. Web page title index.html Tim Berners-Lee Sir Timothy John "Tim" Berners- Lee is a British computer scientist, best known as the inventor of the World Wide Web.
  • 35. CONGRATULATIONS! YOU'VE LEARNED: HTML FUNDAMENTALS: Text formatting inarocket.com How to structure your content with headers. How to organize your ideas with paragraphs. How to force spaces and preformat text. How to format quotes with blockquote. How to tag relevant content with mark. How to create ordered, unordered and description lists. How to show/hide additional content with details. How to document your code with comments.
  • 36. in a ROCKET LISTS Use them to mark up lists of items
  • 37. HTML FUNDAMENTALS: Text formatting inarocket.com LISTS: UNORDERED Editor Browser <body> <ul> <li>Spielberg</li> <li>Coppola</li> <li>Scorsese</li> </ul> </body> READY TO USE CODE ul = unordered list. li = list item. Web page title index.html • Spielberg • Coppola • Scorsese
  • 38. HTML FUNDAMENTALS: Text formatting inarocket.com LISTS: ORDERED Editor Browser <body> <ol> <li>Usain Bolt - Gold</li> <li>Yohan Blake - Silver</li> <li>Justin Gatlin - Bronze</li> </ol> </body> READY TO USE CODE ol = ordered list. li = list item. Web page title index.html 1. Usain Bolt - Gold 2. Yohan Blake - Silver 3. Justin Gatlin - Bronze
  • 39. HTML FUNDAMENTALS: Text formatting inarocket.com LISTS: NESTED Editor Browser <body> <ul> <li>Red <ul> <li>Light</li> <li>Dark</li> </ul> </li> <li>Green</li> <li>Blue</li> </ul> </body> READY TO USE CODE Web page title index.html • Red • Light • Dark • Green • Blue
  • 40. HTML FUNDAMENTALS: Text formatting inarocket.com LISTS: DESCRIPTION Editor Browser <body> <dl> <dt>W3C</dt> <dd>Is the main international standards organization for the World Wide Web.</dd> <dt>HTML</dt> <dd>Is the standard markup language used to create web pages.</dd> </dl> </body> READY TO USE CODE dl = definition list. dt = definition term. dd = definition definition. Web page title index.html W3C Is the main international standards organization for the World Wide Web. HTML Is the standard markup language used to create web pages.
  • 41. CONGRATULATIONS! YOU'VE LEARNED: HTML FUNDAMENTALS: Text formatting inarocket.com How to structure your content with headers. How to organize your ideas with paragraphs. How to force spaces and preformat text. How to format quotes with blockquote. How to tag relevant content with mark. How to create ordered, unordered and description lists. How to show/hide additional content with details. How to document your code with comments.
  • 42. in a ROCKET DETAILS A disclosure widget from which the user can retrieve additional information
  • 43. HTML FUNDAMENTALS: Text formatting inarocket.com DETAILS Editor Browser <body> <details> <summary>What is HTML</summary> <p>Hypertext Markup Language</p> </details> <details> <summary>What is CSS</summary> <p>Cascading Style Sheets.</p> </details> </body> READY TO USE CODE Web page title index.html What is HTML
 Hypertext Markup Language. What is CSS
  • 44. HTML FUNDAMENTALS: Text formatting inarocket.com Editor Browser <body> <details> <summary>What is HTML</summary> <p>Hypertext Markup Language</p> <details> <summary>HTML5</summary> <p>Latest HTML recommendation by the W3C.</p> </details> </details> </body> READY TO USE CODE DETAILS: NESTED Web page title index.html What is HTML
 Hypertext Markup Language. HTML5
 Latest HTML recommendation by the W3C.
  • 45. CONGRATULATIONS! YOU'VE LEARNED: HTML FUNDAMENTALS: Text formatting inarocket.com How to structure your content with headers. How to organize your ideas with paragraphs. How to force spaces and preformat text. How to format quotes with blockquote. How to tag relevant content with mark. How to create ordered, unordered and description lists. How to show/hide additional content with details. How to document your code with comments.
  • 46. in a ROCKET COMMENTS Include them in your code to say how it works
  • 47. HTML FUNDAMENTALS: Text formatting inarocket.com COMMENTS Editor Browser <body> <!-- Main paragraph starts --> <p>Carl Edward Sagan was an American astronomer, cosmologist, astrophysicist, astrobiologist, author, science popularizer, and science communicator in astronomy and other natural sciences.</p> </body> READY TO USE CODE A comment can be useful for documenting your code and is ignored by the browser. Web page title index.html Carl Edward Sagan was an American astronomer, cosmologist, astrophysicist, astrobiologist, author, science popularizer, and science communicator in astronomy and other natural sciences.
  • 48. HTML FUNDAMENTALS: Text formatting inarocket.com "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler British software developer, author and international public speaker on software development.
  • 49. in a ROCKET HTML ENTITIES Used to display reserved and invisible characters
  • 50. HTML FUNDAMENTALS: Text formatting inarocket.com RECOMMENDED REFERENCE
  • 51. HTML FUNDAMENTALS: Text formatting inarocket.com Editor BrowserREADY TO USE CODE HTML ENTITIES Web page title index.html <body> <p>Total price: 4.000 &euro;.</p> <p>&copy; All rights reserved.</p> </body> Total price: 4.000 €. © All rights reserved. &euro; &copy;
  • 52. CONGRATULATIONS! YOU'VE LEARNED: HTML FUNDAMENTALS: Text formatting inarocket.com How to structure your content with headers. How to organize your ideas with paragraphs. How to force spaces and preformat text. How to format quotes with blockquote. How to tag relevant content with mark. How to create ordered, unordered and description lists. How to show/hide additional content with details. How to document your code with comments.
  • 53. Learn front-end development at rocket speed inarocket.com by miguelsanchez.com YOU CAN CONTINUE THIS COURSE FOR FREE ON + READY TO USE CODE + QUIZZES + FREE UPDATES
  • 54. We respect your time
 No more blah blah videos. Just straight to the point slides with relevant information. Ready to use code
 Real code you can just copy and paste into your real projects. Step by step guides
 Clear and concise steps to build real use solutions. No missed points. Learn front-end development at rocket speed inarocket.com
  • 55. Text formatting IN A ROCKET Learn front-end development at rocket speed HTML HTML FUNDAMENTALS