Introduction To HTML
Introduction To HTML
TO
HTML
5 Presenter: Stanley
• W H AT IS H T M L ? • WHY LEARN H T M L ?
HTML stands for Hyper Text It is essential to learn HTML if you
Markup Language, it is easy and want to build web sites, you can’t
fun to learn. HTML describes the build one if you don’t know HTML
structure of web pages. HTML5 is because it’s one the prerequisites
the fifth and current major version in learning other languages used
of the HTML standard. for web development.
• HTML TAGS
HTML Tags are elements names surrounded by angle brackets. In HTML we start and end
tags. Look at the example below.
<p> H e l l o , w e l c o m e t o L e a r n H T M L . </p>
• HTML Elements
An HTML element is usually composed of an opening tag, Element Content and a closing tag.
• Opening tag: <h1>
• Element content: Learning HTML
• Closing tag: </h1>
<h1> L e a r n i n g H T M L . </h1>
• Nested HTML Elements
There are some cases that an HTML element can contain one or more HTML elements.
Example:
<p><i> I t a l i c i z e d t e x t </i></p>
• Empty Elements
Empty elements are without any element content and an end tag. Some commonly used
empty elements are:
• <meta />
• <link />
• <img />
• <br />
• <hr />
• <input />
HTML ATTRIBUTES <!DOCTYPE html>
HTML attributes are used to add more <html lang=“en-US”>
information to an HTML Element. <a href=“html-class.html”> Go to html class </a>
• HTML attributes are found in <a href=“#link” title=“Click me”> Link </a>
HTML tags. <p style=“font-size: 40px; color: gold”> A text with
font of 40 pixels and golden color </p>
• HTML attributes only appear at
start tags. <div class=“name”>
<!---some content goes here--->
• HTML elements can have multiple
attributes </div>
<div id=“name”>
• HTML attributes are composed of
name/value pairs. Example: <!---some content goes here--->
attributename=“value” </div>
<ol>
<li> Orange </li>
<li> Green </li>
<li> Blue </li>
</ol>
<base> Specifies the base URL/target for all relative URLs in a document
<canvas> Used to draw graphics, on the fly, via scripting (usually JavaScript)
<tt> Not supported in HTML5. Use CSS instead. Defines teletype text
<u> Defines text that should be stylistically different from normal text
<ul> Defines an unordered list
<var> Defines a variable
<video> Defines a video or movie
<wbr> Defines a possible line-break
QUESTIONS
AND
ANSWERS