HTML Tags
HTML Tags
Find the
html_tags/htmlTagsDemo.html
file to follow along.
Full path:
April2015HTMLCSSworkshop/slides/html_tags/htmlTagsDemo.html
To uncomment lines in Sublime use:
cmd+/
<head>
<link rel="stylesheet" type="text/css" href="theme.css" />
</head>
HTML Tags
<br>
<embed>
<hr>
<img>
<input>
<link>
<meta>
<param>
<source>
<wbr>
HTML Tags
<head>
<title>My Awesome Webpage!</title>
</head>
HTML Tags
<script type="text/javascript" src="someJavascript.js"></script>
<script type="text/javascript">
console.log('This is javascript!');
</script>
HTML Tags
<head>
<meta name="description" content="HTML Slides" />
<meta name="keywords" content="HTML,CSS" />
<meta name="author" content="Eric Wainaina" />
</head>
HTML Tags
<head>
<meta name="description" content="HTML Slides" />
<meta name="keywords" content="HTML,CSS" />
<meta name="author" content="Eric Wainaina" />
</head>
Metadata and SEO:
Use Metadata for keywords and descriptions that will urge a user to click on the link. Limit to 150/160 characters. Otherwise, the search engine will just grab some of the first text it finds on your site. Look at Google for some examples!
HTML Tags
<img src="puppy.jpg" alt="a dog." width="640" height="480"/>
HTML Tags
<p>This is a paragraph.</p>
HTML Tags
<ul>
<li>Item One</li>
<li>Item Two</li>
</ul>
HTML Tags
<ol start="20" type="i">
<li>Item One</li>
<li>Item Two</li>
</ol>
HTML Tags
<p>
The word <span style="color:blue">blue</span> is blue.
</p>
HTML Tags
<div>
<image src="cats.jpg" alt="a bunch of cats" />
<p>Some paragraph about cats</p>
</div>
HTML Tags
<a href="http://www.moringaschool.com">
Visit Moringa School!
</a>
HTML Tags
<object width="400" height="400" data="helloworld.swf">
</object>
HTML Tags
<!-- This is a comment -->
<!-- This is a
multi-line
comment! -->
HTML Tags