Topic 2 - HTML Basics
Topic 2 - HTML Basics
TRAINING AND
CONSULTING LIMITED
PRESENTS
HTML BASICS
LifeSkills Computer Training and Consulting Limited. Get Skill Get Life
HTML TAGS
HTML tags are formatting instructions that tell a browser how
to transform ordinary text into something visually appealing. If
you were to take all the tags out of an HTML document, the
resulting page would consist of nothing more than plain,
unformatted text.
On its own, the <b> tag isn’t quite good enough; it’s known as a
start tag, which means it switches on some effect (in this case,
bold lettering). Most start tags are paired with a matching end
tag that switches off the effect. You can easily recognize an end
tag. They look the same as start tags, except that they begin
with a forward slash. They look like this </ instead of like this <.
LifeSkills Computer Training and Consulting Limited. Get Skill Get Life
HTML TAGS
So the end tag for bold formatting is </b>. Here’s an example:
LifeSkills Computer Training and Consulting Limited. Get Skill Get Life
OTHER HTML ELEMENTS
(a) Basic Block Level Elements
(1)
(2)
LifeSkills Computer Training and Consulting Limited. Get Skill Get Life
OTHER HTML ELEMENTS
(a) Block Level Elements (continued)
(3)
(4)
LifeSkills Computer Training and Consulting Limited. Get Skill Get Life
OTHER HTML ELEMENTS
(b) Basic Inline Elements
(1)
(2)
LifeSkills Computer Training and Consulting Limited. Get Skill Get Life
OTHER HTML ELEMENTS
(b) Basic Inline Elements (continued)
(3)
(4)
LifeSkills Computer Training and Consulting Limited. Get Skill Get Life
NESTING ELEMENTS
You can also nest one element inside another. In fact, nesting
elements is one of the basic building block techniques of web pages.
The question is, what happens if you want to make a piece of text
bold and italicized? HTML doesn’t include a single element for this
purpose, so you need to combine the two. Here’s an example:
This <b><i>word</i></b> has italic and bold formatting.
When a browser see these tags, it produces text that looks like
this:
This word has italic and bold formatting.
<!DOCTYPE html>
LifeSkills Computer Training and Consulting Limited. Get Skill Get Life
The Basic Skeleton of HTML Page
<html>
This element wraps everything (other than the doctype) in your
web page.
<head>
This element designates the header portion of your document.
The header can include some optional information about your
web page, including the required title (which your browser
displays in its title bar), optional search keywords, and an
optional style sheet
<body>
This element holds the meat of your web page, including the
actual content you want to display to the world.
LifeSkills Computer Training and Consulting Limited. Get Skill Get Life
An Example HTML Page
<!DOCTYPE html>
<html>
<head>
<title>Everything I Know About Web Design</title>
</head>
<body>
<p></p>
</body>
</html>
LifeSkills Computer Training and Consulting Limited. Get Skill Get Life
The Basic Skeleton of HTML Page
<title>
This element sets the title for your web page. The title plays several roles.
First, web browsers display the title at the top of the browser window.
Second, when a web visitor bookmarks your page, the browser uses the
title to label the bookmark in your Bookmark (or Favorites) menu. Third,
when your page turns up in a web search, the search engine usually
displays this title as the first line in the search results, followed by a
snippet of content from the page.
<p>
This indicates a paragraph. Web browsers don’t indent paragraphs, but
they do add a little space between consecutive paragraphs to keep them
separated.
LifeSkills Computer Training and Consulting Limited. Get Skill Get Life
IN THE NEXT VIDEO…..
LifeSkills Computer Training and Consulting Limited. Get Skill Get Life