Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions templates/body_template.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
<!DOCTYPE HTML>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="A page for exploring basic HTML documents">
<head>
<meta charset="utf-8" />
<meta
name="description"
content="A page for exploring basic HTML documents"
/>
<title>Basic HTML document</title>
</head>
<body>
Page content
The main page content appears inside the body tag. HTML contains several elements that allow you to properly structure and format your content, which we'll cover later.
</body>
</html>
</head>
<body>
<h1>Page content</h1>
<p>
The main page content appears inside the <strong>body</strong> tag. HTML
contains several elements that allow you to properly structure and format
your content, which we'll cover later.
</p>
</body>
</html>
58 changes: 41 additions & 17 deletions templates/headings_template.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,44 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<head>
<meta charset="utf-8" />
<title>Formatting page content</title>
</head>
<body>
HTML Essential Training
Formatting page content
In this series of exercises, we'll explore how to use HTML elements to format basic page content.
Adding headings
Headings help define the structure of the page and control the hierarchy of the content. You can use heading values ranging from a top-level heading of h1 all the way down to an h6. While there are several competing theories on the exact strategy to use when choosing headings, what really matters is that you are using them in an intelligent manner, to accurately reflect the importance of your content. It's also important to be consistent in how you use headings across your site, so deciding on when and how to use headings is an important part of planning your site.
Using paragraphs
The paragraph tag (&lang;p&rang;) is one of the most basic formatting tags, and one that you'll use often. It indicates a paragraph of text, and should be used for each individual paragraph.
Line breaks
Occasionally you'll need to perform a "soft return," that is, create a new line without using a new paragraph. To do that in HTML, you use the line break tag (&lang;br&rang;). Line break tags are inline, meaning you can use them within headers and paragraphs, and don't require a closing tag.
Let's say you were formatting an address, for example. You could use line breaks to make sure each line of the address appeared on a separate line, but still remained within the same paragraph.
lynda.com 6410 Via Real Carpinteria, CA 93103.
</body>
</head>
<body>
<h1>HTML Essential Training</h1>
<h2>Formatting page content</h2>
<p>
In this series of exercises, we'll explore how to use HTML elements to
format basic page content.In this series of exercises, we'll explore how
to use HTML elements to format basic page content.
</p>
<h2>Adding headings</h2>
<p>
Headings help define the structure of the page and control the hierarchy
of the content. You can use heading values ranging from a top-level
heading of h1 all the way down to an h6. While there are several competing
theories on the exact strategy to use when choosing headings, what really
matters is that you are using them in an intelligent manner, to accurately
reflect the importance of your content. It's also important to be
consistent in how you use headings across your site, so deciding on when
and how to use headings is an important part of planning your site.
</p>
<h2>Using paragraphs</h2>
<p>
The paragraph tag (&lang;p&rang;) is one of the most basic formatting
tags, and one that you'll use often. It indicates a paragraph of text, and
should be used for each individual paragraph.
</p>
<h2>Line breaks</h2>
<p>
Occasionally you'll need to perform a "soft return," that is, create a new
line without using a new paragraph. To do that in HTML, you use the line
break tag (&lang;br&rang;). Line break tags are inline, meaning you can
use them within headers and paragraphs, and don't require a closing tag.
Let's say you were formatting an address, for example. You could use line
breaks to make sure each line of the address appeared on a separate line,
but still remained within the same paragraph. lynda.com 6410 Via Real
Carpinteria, CA 93103.
</p>
</body>
</html>
48 changes: 36 additions & 12 deletions templates/models_template.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="A page for exploring HTML content models">
<head>
<meta charset="utf-8" />
<meta
name="description"
content="A page for exploring HTML content models"
/>
<title>Content models</title>
</head>
<body>
Content models
In HTML 4 there were only two main content models, block and inline level elements. Block level elements would stack on top of each other in normal document flow while inline level elements typically appear within the flow of text content.
In this example the heading 1 and the paragraphs are block level items, while the bold tags and the link below are examples of inline level elements.
In HTML5 new content models have been created to expand the structure and semantic capabilities of HTML. There are seven main models: Flow, Metadata, Embedded, Interactive, Heading, Phrasing, and Sectioning. To learn more about them, visit the interactive graphic contained in the W3C HTML5 specfication.
</body>
</head>
<body>
<h1>Content models</h1>
<p>
In HTML 4 there were only two main content models, block and inline level
elements. <strong>Block level</strong> elements would stack on top of each
other in normal document flow while
<strong>inline level </strong> typically appear within the flow of text
content.
</p>
<p>
In this example the <strong>heading 1</strong> and the
<strong>paragraphs</strong> are block level items, while the bold tags and
the link below are examples of inline level elements.
</p>
<p>
In HTML5 new content models have been created to expand the structure and
semantic capabilities of HTML. There are seven main models:
<strong
>Flow, Metadata, Embedded, Interactive, Heading, Phrasing, and
Sectioning.</strong
>
To learn more about them, visit the
<a href="https://www.w3.org/TR/html51/single-page.html" target="_blank"
>interactive graphic</a
>
contained in the W3C HTML5 specfication.
</p>
</body>
</html>

11 changes: 10 additions & 1 deletion templates/syntax_template.html
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
HTML uses tags to identify page content. This text, for example, is a paragraph.
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p>HTML uses tags to identify page content. <i>This text, for example, is a <strong>paragraph</strong></i></p>
</body>
</html>