SlideShare une entreprise Scribd logo
1  sur  55
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

Web design in 7 days by waqar
Web design in 7 days by waqarWeb design in 7 days by waqar
Web design in 7 days by waqar
Waqar Chodhry
 
Web pageassignment
Web pageassignmentWeb pageassignment
Web pageassignment
beachtch
 
Xhtml Part1
Xhtml Part1Xhtml Part1
Xhtml Part1
nleesite
 
From a Fireworks Comp to a Genesis Child Theme, Step by Step
From a Fireworks Comp to a Genesis Child Theme, Step by StepFrom a Fireworks Comp to a Genesis Child Theme, Step by Step
From a Fireworks Comp to a Genesis Child Theme, Step by Step
East Bay WordPress Meetup
 

Tendances (20)

Html Tutorial
Html Tutorial Html Tutorial
Html Tutorial
 
Html5 accessibility
Html5 accessibilityHtml5 accessibility
Html5 accessibility
 
Twitter Bootstrap Comprehensive Overview
Twitter Bootstrap Comprehensive OverviewTwitter Bootstrap Comprehensive Overview
Twitter Bootstrap Comprehensive Overview
 
Html basics
Html basicsHtml basics
Html basics
 
belajar HTML 1
belajar HTML 1belajar HTML 1
belajar HTML 1
 
Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]
 
GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1
 
Hyper Text Marup Language
Hyper Text Marup LanguageHyper Text Marup Language
Hyper Text Marup Language
 
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
 
Basic of web design
Basic of web designBasic of web design
Basic of web design
 
Web design in 7 days by waqar
Web design in 7 days by waqarWeb design in 7 days by waqar
Web design in 7 days by waqar
 
Web pageassignment
Web pageassignmentWeb pageassignment
Web pageassignment
 
Xhtml Part1
Xhtml Part1Xhtml Part1
Xhtml Part1
 
Html 5.0
Html 5.0Html 5.0
Html 5.0
 
From a Fireworks Comp to a Genesis Child Theme, Step by Step
From a Fireworks Comp to a Genesis Child Theme, Step by StepFrom a Fireworks Comp to a Genesis Child Theme, Step by Step
From a Fireworks Comp to a Genesis Child Theme, Step by Step
 
HTML Notes And Some Attributes
HTML Notes And Some AttributesHTML Notes And Some Attributes
HTML Notes And Some Attributes
 
Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup Language
 
Basic HTML Tutorial For Beginners
Basic HTML Tutorial For BeginnersBasic HTML Tutorial For Beginners
Basic HTML Tutorial For Beginners
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5
 
10 Steps to Becoming a WordPress Theme Ninja
10 Steps to Becoming a WordPress Theme Ninja10 Steps to Becoming a WordPress Theme Ninja
10 Steps to Becoming a WordPress Theme Ninja
 

Similaire à 2- Learn HTML Fundamentals / Text Formatting

Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
yht4ever
 
Web Page Authoring 1
Web Page Authoring 1Web Page Authoring 1
Web Page Authoring 1
yht4ever
 

Similaire à 2- Learn HTML Fundamentals / Text Formatting (20)

Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Web Page Authoring 1
Web Page Authoring 1Web Page Authoring 1
Web Page Authoring 1
 
Ict html
Ict htmlIct html
Ict html
 
Html basics
Html basicsHtml basics
Html basics
 
Html
HtmlHtml
Html
 
Intro to html revised2
Intro to html revised2Intro to html revised2
Intro to html revised2
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
CreatingWebPages-Part1.ppt
CreatingWebPages-Part1.pptCreatingWebPages-Part1.ppt
CreatingWebPages-Part1.ppt
 
Html.pptx
Html.pptxHtml.pptx
Html.pptx
 
Introduction to html course digital markerters
Introduction to html course digital markertersIntroduction to html course digital markerters
Introduction to html course digital markerters
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html b smart
Html b smartHtml b smart
Html b smart
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introduction
 
Html basics
Html basicsHtml basics
Html basics
 
Web Design-III IT.ppt
Web Design-III IT.pptWeb Design-III IT.ppt
Web Design-III IT.ppt
 
Create your own SharePoint Master Pages and Page Layouts
Create your own SharePoint Master Pages and Page LayoutsCreate your own SharePoint Master Pages and Page Layouts
Create your own SharePoint Master Pages and Page Layouts
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02
 

Plus de In a Rocket

16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background
In a Rocket
 
15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color
In a Rocket
 

Plus de In a Rocket (15)

3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items
 
2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context
 
1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup
 
17- Learn CSS Fundamentals / Units
17- Learn CSS Fundamentals / Units17- Learn CSS Fundamentals / Units
17- Learn CSS Fundamentals / Units
 
16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background
 
15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color15- Learn CSS Fundamentals / Color
15- Learn CSS Fundamentals / Color
 
14- Learn CSS Fundamentals / Inheritance
14- Learn CSS Fundamentals / Inheritance14- Learn CSS Fundamentals / Inheritance
14- Learn CSS Fundamentals / Inheritance
 
13- Learn CSS Fundamentals / Specificity
13- Learn CSS Fundamentals / Specificity13- Learn CSS Fundamentals / Specificity
13- Learn CSS Fundamentals / Specificity
 
12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group12- Learn CSS Fundamentals / Mix & group
12- Learn CSS Fundamentals / Mix & group
 
11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators11- Learn CSS Fundamentals / Combinators
11- Learn CSS Fundamentals / Combinators
 
10- Learn CSS Fundamentals / Pseudo-elements
10- Learn CSS Fundamentals / Pseudo-elements10- Learn CSS Fundamentals / Pseudo-elements
10- Learn CSS Fundamentals / Pseudo-elements
 
9- Learn CSS Fundamentals / Pseudo-classes
9- Learn CSS Fundamentals / Pseudo-classes9- Learn CSS Fundamentals / Pseudo-classes
9- Learn CSS Fundamentals / Pseudo-classes
 
8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors8- Learn CSS Fundamentals / Attribute selectors
8- Learn CSS Fundamentals / Attribute selectors
 
Learn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming ConventionLearn SUIT: CSS Naming Convention
Learn SUIT: CSS Naming Convention
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming Convention
 

Dernier

Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Monica Sydney
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
ayvbos
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Monica Sydney
 
PowerDirector Explination Process...pptx
PowerDirector Explination Process...pptxPowerDirector Explination Process...pptx
PowerDirector Explination Process...pptx
galaxypingy
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
ayvbos
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
pxcywzqs
 
75539-Cyber Security Challenges PPT.pptx
75539-Cyber Security Challenges PPT.pptx75539-Cyber Security Challenges PPT.pptx
75539-Cyber Security Challenges PPT.pptx
Asmae Rabhi
 
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
ydyuyu
 

Dernier (20)

Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
 
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime NagercoilNagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
 
Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency Dallas
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
 
Power point inglese - educazione civica di Nuria Iuzzolino
Power point inglese - educazione civica di Nuria IuzzolinoPower point inglese - educazione civica di Nuria Iuzzolino
Power point inglese - educazione civica di Nuria Iuzzolino
 
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
 
PowerDirector Explination Process...pptx
PowerDirector Explination Process...pptxPowerDirector Explination Process...pptx
PowerDirector Explination Process...pptx
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
 
75539-Cyber Security Challenges PPT.pptx
75539-Cyber Security Challenges PPT.pptx75539-Cyber Security Challenges PPT.pptx
75539-Cyber Security Challenges PPT.pptx
 
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 

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