<!DOCTYPE html> <!-- start of document -->
</html> <!-- end of document -->
<tagname>I now show up! Yay!</tagname><head> <title> Welcome to My Website! This will show up in the browser's window/tab, but not on the page itself </title></head><head> <link rel="stylesheet" type="text/css" href="mystylesheet.css"> <script src="myjavascriptfile.js"></script></head><body> <p>Here is my first paragraph.</p> <p>Here is my second paragraph.</p> <img src="myimage.jpg" alt="Here's an image"></body><h1>Header One - I'm the biggest!</h1><h2>Header Two - I'm a little bit smaller than Header One</h2>...<h6>Header Six - I'm the smallest!</h6><p>These tags are used to indicate paragraphs.</p>
<p>These tags are used to indicate paragraphs.</p>
<img src="myimage.jpg" alt="this is a picture" />
<a href="http://www.website.com/somethingsomething.html">Something!</a>
<a href="newpage.com" target="_blank"></a> <!-- open in a new window or tab -->
<a href="google.com"><img ... /></a>
<a href="pagename.org/mypage" title="follow this link to my page!">My Page</a>
<q>short quote</q>
<blockquote>paragraph quote</blockquote>
<link rel="stylesheet" href="spreadsheet_name.css"><style>attribute: style;</style> <!-- in header -->
<span style="color: green;">This text is now green.</span>
/* This is a single line comment */
/* This is a multi-line comment
which uses the same syntax as above */
<div id="sub-section"> <p>This is a sub-section of the document</p></div>One popular search engine is <a href="http://www.google.com">Google</a>.h1 { color: red;}p { font-family: Arial, Sans-serif; color: #000000; /* hexadecimal value for black */}<!-- HTML5 code --><div id="article-content"> <p class="large-text">Have you ever wanted to make your own website? It's surprisingly easy to do! </p> <p class="normal-text">The first thing you need to know is that HTML and CSS are used to make simple websites, like those we'll be building today. </p></div>/* CSS code */
/* Defining the div with id "main-article" Use id selector '#', followed by the div id ex: #div-id, #main-column*/#article-content { font-family: "Times New Roman", Times, serif; font-size: normal;}
/* Defining the paragraphs with classes "large-text" and "normal-text" Use class selector '.', followed by the class name ex: .class-name, .subsection*/p.large-text { font-size: large; font-weight: bold;}
p.normal-text { color: #000000; font-weight: normal;}