Chapter 1 Introduction To HTML5
Chapter 1 Introduction To HTML5
Introduction to HTML 5
Objectives:
At the end of this module, the students will be able to
understand:
What is Hypertext Markup Language?
The different HTML 5 structure, semantics and elements.
How to write the tags?
Correct and Incorrect Nesting of tags
Comments
The main folder, also called the root folder, contains all files
and other folders for the website
4
File Management
<br><br/> <hr><hr/>
<body> The text between the<body>tags is the text that will be displayed in
</body> your browser.
</html> The last tag in your document, It tells your browser that
this is the end Of the HTML document.
University of Technology and Applied Sciences 10
Sample Document Structure
Source: https://www.developer.com/lang/understanding-the-proper-way-to-lay-out-a-page-with-html5.html
<tag1> <tag1>
<tag2> <tag2>
</tag2> </tag1>
</tag1> </tag2>
HTML5 Summary
Details
Elements Aside
Mark
Footer
Heading
Paragraph
University of Technology and Applied Sciences 16
The Head Element
The HTML <head> element has nothing to do with HTML headings.
The <head> element can include a title for the document, scripts, styles, meta
information (metadata) and more
HTML metadata is data about the HTML document.
Metadata is not displayed.
The <head> element is placed between the <html> tag and the <body> tag.
The following elements can go inside the <head> element are:
<title> (this element is required in an HTML document)
<style>
<link>
<meta>
<script>
Used to specify page description, keywords, author of the document, last modified and
other metadata.
Examples:
<h1>This is a heading</h1>
This is a Heading
<h2>This is a heading</h2>
This is a heading
<h3>This is a heading</h3>
This is a heading
<h4>This is a heading</h4>
This is a heading
Example:
Output:
Output:
Example:
Output:
Example:
Example:
Output:
Output:
Example:
Output:
Output
Example: Output:
Example 2
Tags Description
<b> ... </b> Defines bold text
<i> ... </i> Defines italic text
<sub> ... </sub> Defines subscripted text
<sup> ... </sup> Defines super scripted text
<small>…</small> Defines smaller text
<strong> </strong> It defines important text (bold)
OUTPUT: OUTPUT:
© ©
® ®
$ $
€ €
☎ ☎
https://www.w3schools.com/
https://www.tutorialrepublic.com/html-tutorial/
https://www.tutorialspoint.com/html5/