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
4 changes: 2 additions & 2 deletions templates/body_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<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.
<b><h1>Page content</h1></b>
<p> The main page content appears inside the <b>body</b> tag. HTML contains several elements that allow you to properly structure and format your<BR> content, which we'll cover later.</p>
</body>
</html>
20 changes: 10 additions & 10 deletions templates/headings_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
<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.
<h1>HTML Essential Training</h1><BR>
<h2>Formatting page content</h2>
<p> In this series of exercises, we'll explore how to use HTML elements to format basic page content.</p>
<h3>Adding headings</h3>
<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<BR> 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,<BR> 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<BR> 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>
<h3>Using paragraphs</h3>
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<BR> used for each individual paragraph.
<h3>Line breaks</h3>
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<BR> 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.<BR>
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<BR> line, but still remained within the same paragraph.
lynda.com 6410 Via Real Carpinteria, CA 93103.
</body>
</html>
10 changes: 5 additions & 5 deletions templates/models_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<head>
<meta charset="utf-8">
<meta name="description" content="A page for exploring HTML content models">
<title>Content models</title>
<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.
<h1><b>Content models</b><BR></h1>
<p>In HTML 4 there were only two main content models, block and <b>inline level </b>elements. <b>Block level</b> elements would stack on top of each other<BR> in normal document flow while <b>inline level</b> elements typically appear within the flow of text content.<BR>
<p> In this example the <b>heading1</b> and the <b>paragraphs</b> are block level items, while the bold tags and the link below are examples of inline level elements.</p>
In HTML5 new content models have been created to expand the structure and semantic capabilities of HTML. There are seven main models:<BR><b>Flow, Metadata, Embedded, Interactive, Heading, Phrasing, and Sectioning.</b> To learn more about them, visit the <a href="https://www.w3schools.com"> interactive graphic</a> contained in the W3C HTML5 specfication.</p>
</body>
</html>

7 changes: 6 additions & 1 deletion templates/syntax_template.html
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
HTML uses tags to identify page content. This text, for example, is a paragraph.
<!DOCTYPE html>
<html>
<body>
HTML uses tags to identify page content.<i>This text, for example, is a <b>paragraph. <i></b>
</body>
</html>