Hyper Text Markup Language
.html extension
index.html file within a folder named html-practice.
, an "end tag" , some content in between them, and multiple types of attributes.
<tagname attribute="value">
content
</tagname>
<a href="http://www.google.com">
Google
</a>
<section id="about" class="f-didot">
<h2>About Me</h2>
</section>
<html><!doctype html>
<html>
</html>
doctype:
doctype).
html tag.
html: the root of the page.
<head> element<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>The title of your page goes here</title>
</head>
</html>
<meta /> tags self-close.
<link> tags that tell the browser WHERE to locate CSS stylesheets.
<body> Element<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Title of your page goes here</title>
</head>
<body>
Content goes in here.
</body>
</html>
<body>
/* questions? */<body> Tags
inline elements, since block elements have width and height properties that you can change.
Inline elements have a width, but are contingent on the size of the inline object itself.
<img> element is actually an inline-block element, so you can modify the dimensional and position properties.
float: left;position: absolute;position: fixed;/* questions? */<html>
(Navigate back to your index.html file.)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My Practice DataStory</title>
</head>
<body>
<header>
</header>
<article id="datastory">
<section id="personal-digital">
</section>
<section id="social-digital">
</section>
</article>
<footer id="resources">
</footer>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My DataStory</title>
</head>
<body>
<header>
<h1>Title of Page</h1>
</header>
<article id="datastory">
<section id="personal-digital">
<h2>Personal Digital Data</h2>
<p>Here is a placeholder paragraph.</p>
</section>
<section id="social-digital">
<h2>Social Digital Data</h2>
<p>Here is a placeholder paragraph.</p>
</section>
</article>
<footer id="resources">
<ul>
<li>Resource 1</li>
<li>Resource 2</li>
</ul>
</footer>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My DataStory</title>
</head>
<body>
<header>
<h1>Title of Page</h1>
</header>
<article id="datastory">
<section id="personal-digital">
<h2>Personal Digital Data</h2>
<p>
Here is a placeholder paragraph, and I should <em>emphasize
something</em>.
</p>
</section>
<section id="social-digital">
<h2>Social Digital Data</h2>
<p>
Here is a placeholder paragraph.
</p>
</section>
</article>
<footer id="resources">
<ul>
<li>
<a href="http://www.resourceurl.info/useful-info.html" target="_blank">
Resource 1</a>
</li>
<li>Resource 2</li>
</ul>
</footer>
</body>
</html>
<a> Links<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My DataStory</title>
</head>
<body>
<header>
<h1>Title of Page</h1>
</header>
<article id="datastory">
<section id="personal-digital">
<h2>Personal Digital Data</h2>
<p>
Here is a placeholder paragraph, and I should <em>emphasize
something</em>.
</p>
</section>
<section id="social-digital">
<h2>Social Digital Data</h2>
<p>
Here is a placeholder paragraph. Here is an example of an internal
link, where I reference <a href="#personal-data">something else</a>
on the page by using an ID attribute to navigate to that particular
element located on the page.
</p>
</section>
</article>
<footer id="resources">
<ul>
<li>
<a href="http://www.resourceurl.info/useful-info.html" target="_blank">
Resource 1</a>
</li>
<li>Resource 2</li>
</ul>
</footer>
</body>
</html>
<img> Element<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My DataStory</title>
</head>
<body>
<header>
<h1>Title of Page</h1>
</header>
<article id="datastory">
<section id="personal-digital">
<h2>Personal Digital Data</h2>
<!-- What kind of element is an img: block or inline? -->
<img src="http://via.placeholder.com/350x150" alt="A placeholder image." />
<p>
Here is a placeholder paragraph, and I should <em>emphasize</em>.
</p>
</section>
<section id="social-digital">
<h2>Social Digital Data</h2>
<p>
Here is a placeholder paragraph.
</p>
</section>
</article>
<footer id="resources">
<ul>
<li>
<a href="http://www.resourceurl.info/useful-info.html" target="_blank">
Resource 1</a>
</li>
<li>Resource 2</li>
</ul>
</footer>
</body>
</html>
practice-css with the following structure:
/practice-css
├── index.html
└── /assets
└── /css
└── style.css
<link> the external CSS stylesheet to your HTML document, as per Duckett.
<header>, <article>, and 2 <section> elements. Then, be sure to note the paragraphs, other textual elements, and images.