HTML Slides All
HTML Slides All
Basic to Advance
Web Development
What is HTML?
HTML is the standard markup language for creating Web pages.
What is HTML?
HTML stands for Hyper Text Markup Language
HTML is the standard markup language for creating Web pages
HTML describes the structure of a Web page
HTML consists of a series of elements
HTML elements tell the browser how to display the content
HTML elements label pieces of content such as "this is a heading", "this is a
paragraph", "this is a link", etc.
Why Learn HTML
Easy Learning with HTML
Try it Yourself
Website/web pages
Career as web Designer & Developer
Free to use.
What is web?
Web Page: A web page or webpage is a document,
commonly written in HTML, that is viewed in an Internet
browser.
Website: A collection of related web pages is know as
website.
Software Requirements
HTML Editor
Browser
HTML Editor
Notepad
Notepad ++
VS Code
Dreamweaver
Sublime Text
Web Browsers
The purpose of a web
browser(Chrome, Edge,
Firefox, Safari) is to read
HTML documents and
display them correctly.
A browser does not
display the HTML tags,
but uses them to
determine how to display
the document:
What is an HTML Element?
An HTML element is defined by a start tag, some content,
and an end tag:
EXAMPLES OF TAGS
Note: Some HTML elements have no content (like the <br> element). These elements
are called empty elements. Empty elements do not have an end tag!
HMTL Page Structure
Example Explained
Basic Syntax
Save HTML File
Filename.html
File Extention
HTML Text Formatting Elements
Headings <strong> - Important text
Un order List
Order List
Unordered HTML List
An unordered list starts with the <ul> tag. Each list item
starts with the <li> tag.
The list items will be marked with bullets (small black
circles) by default:
Unordered HTML List - Choose List Item Marker
<ul style="list-style-type:disc;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Ordered HTML List
An ordered list starts with the <ol> tag. Each list item starts
with the <li> tag.
The list items will be marked with numbers by default:
Ordered HTML List - The Type Attribute
Example:
<ol type="1">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
HTML Image Tag
Images can improve the design and the appearance of a
web page.
Img Tag
HTML Image Tag Properties
Src
Width
Height
alt
title
Images on Another Server/Website
Some web sites point to an image on another server.
HTML Links - Hyperlinks
Button as a Link
•To use an HTML button as a link, you have to add some
JavaScript code.
•JavaScript allows you to specify what happens at certain events,
such as a click of a button:
Link to an Email Address
Use mailto: inside the href attribute to create a link that opens the user's email
program (to let them send a new email):
HTML Links - Hyperlinks
HTML Links - The target Attribute
The target attribute specifies where to open the linked document.
The target attribute can have one of the following values:
_self - Default. Opens the document in the same window/tab as it
was clicked
_blank - Opens the document in a new window or tab
_parent - Opens the document in the parent frame
_top - Opens the document in the full body of the window
Define an HTML Table
•A table in HTML consists of table cells inside rows and
columns.
Each table row starts with a <tr> and ends with a </tr> tag.
tr stands for table row.
Table Headers
Sometimes you want your cells to be table header cells. In those
cases use the <th> tag instead of the <td> tag:
•The short hint is displayed in the input field before the user
enters a value.