0% found this document useful (0 votes)
5 views35 pages

Introduction to HTML Basics

The document provides an overview of HTML, including its definition as Hypertext Markup Language and its role in web development. It covers the history of HTML, the structure of HTML elements and tags, and the use of attributes. Additionally, it discusses various HTML components such as headings, text formatting, and paragraphs.

Uploaded by

23-34981
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views35 pages

Introduction to HTML Basics

The document provides an overview of HTML, including its definition as Hypertext Markup Language and its role in web development. It covers the history of HTML, the structure of HTML elements and tags, and the use of attributes. Additionally, it discusses various HTML components such as headings, text formatting, and paragraphs.

Uploaded by

23-34981
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Introducti

1
0
1
0
0

on to Web
1
0
1
1 0
0 1

Developm
0 0
1 0
0 1
1 0
0

ent
1
1 0
0
1 Hello World
0
1
0
1
0
0
INSTALL
1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
1
0
1
0
0

Hypertext
1
0
1
1 0
0 1

Markup
0 0
1 0
0 1
1 0
0

Language
1
1 0
0
1 Hello World
0
1
0
1
0
0
What is HTML? 1
0
1
0
● HTML stands for Hyper Text Markup Language. 0
1
● HTML is the standard markup language for 0
creating Web pages. 1
1 0
0 1
0 ● HTML describes the structure of a Web page 0
1 0
0 1
1 ● HTML consists of a series of element 0
0 1
1 0
0
● HTML elements tell the browser how to display
1 the content
0
1
0
● HTML elements label pieces of content such as
1 "this is heading", "this is a paragraph", "this is
0 a link", etc
0
History of HTML
WHATWG HTML5 First Public
2008
Draft
YEAR Version WHATWG HTML5 Living The WHATWG (Web
2012 Hypertext Application
Standard
1 Tim Berners-Lee invented Technology Working
01989 www 2014 W3C Recommendation: HTML5 Group) and W3C (World
0
1
Wide Web Consortium)
Tim Berners-Lee invented W3C Candidate have both influenced HTML's1
01991 2016
HTML Recommendation: HTML 5.1
1 development, with 0
0 W3C Recommendation: 1
2017
11993 Dave Raggett drafted HTML+ HTML5.1 2nd Edition WHATWG's "Living Standard"0
0 0
0 W3C Recommendation: approach continuously 1
HTML Working Group defined 2017 HTML5.2 updating HTML. 0
11995
0 HTML 2.0 0
WHATWG HTML Living
1 2018 W3C recommendations 1
W3C Recommendation: HTML Standard (Ongoing Updates)
01997
3.2 continue to maintain HTML 0
1 W3C and WHATWG signed 1
0
versions for stability and 1
agreement → WHATWG
1999
W3C Recommendation: HTML consistency. 0
2019 Living Standard became the
4.01 1
single official HTML
1
W3C Recommendation: standard 1
2000 HTML maintained only as
XHTML 1.0 2020–
WHATWG HTML Living
Present
Standard (ongoing updates)
HTML Elements
An HTML element is defined by a start tag, some content, and an end tag: 1
1
0
<tagname>Content goes here...</tagname> 0
1 1
The
0 HTML element is everything from the start tag to the end tag as shown in 0
1 1
the screenshot below 0
0
1 1
0 0
1 1
1 0
1 1
0 1
0 1
0 0
1
1
1
0
HTML Elements

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML tags

HTML tags are the hidden keywords 1


1
0

1
within a web page that define how your 0
1
0
1
web browser must format and display the 0
1
0
0
1 content. Most tags must have two parts, 1
0
0
1
1
an opening and a closing part. 1
0
1 1
0 1
0 1
0
1
Note that the closing tag has the same 0

1
1
text as the opening tag, but has an
0
additional forward-slash ( / ) character
Simple HTML Document

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
Simple HTML Document

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
Example Explained

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
Your first HTML Program

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
1
1
0
0
1 1
0 0
1 1
0 0
1 1
0 0
1 1
1 0
1 Semantic and Non-Semantic 1
0 1
0 1
0 0
1
1
1
0
1
1
0
0
1 1
0 0
1 1
0 0
1 1
0 0
1 1
1 0
1 1
0 1
0 1
0 0
1
1
1
0
1
1
0
0
1 1
0 0
1 1
0 0
1 1
0 0
1 1
1 0
1 HTML Block and Inline Element 1
0 1
0 1
0 0
1
1
1
0
TML Block and Inline Element

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML Block Element

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML Block Element

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML Inline Element

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML Attributes
HTML attributes provide additional information about HTML
elements.
1
0
0
• All HTML elements can have attributes
1• Attributes provide additional information about elements
0• 1
Attributes are always specified in the start tag 0
1
0• Attributes usually come in name/value pairs like: name="value" 1
1 0
0 0
0 1
The href Attribute
1 0
0 0
1 1
The <a> tag defines a hyperlink. The href attribute specifies the URL of the page
0 0
1
the link goes to:
1
0 1
0
1
<a href="[Link] 1
1
Facebook</a>
The src Attribute
The <img> tag is used to embed an image in an HTML page. The src attribute
specifies the path to the image to be displayed:
1
0
0
1
<img src="img_flower.jpg">
0
1
1
0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
There are two ways to specify the URL in the src
attribute
Absolute URL - Links to an external image that is hosted on
another website.
1
0
0
Example:
1
0 1
src="[Link]
1 0
0 1
1 0
0 0
0 1
1 0
Notes: External images might be under copyright. If you do
0 0
1 1
not get permission to use it, you may be in violation of
0 0
1 1
copyright laws. In addition, you cannot control external images;
0 1
0
it can suddenly be removed or changed. 1
1
1
HTML Attributes
Relative URL - Links to an image that is hosted within the
1
website. Here, the URL does not include the domain name. If
0the URL begins without a slash, it will be relative to the
0
1current page.
0 1
1 0
0 1
1
0
Example: 0
0
0
1
src="img_girl.jpg". If the URL begins with a slash, it will be 1
0
0
1
relative to the domain. Example: 0
1
0
1
src="/images/img_flower.jpg". 0
1
0 1
0
1
1
1

Tip: It is almost always best to use relative URLs. They will


HTML Headings
HTML headings are titles or subtitles that you want to
display on a webpage.
1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML Text Formatting

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML Paragraphs
A paragraph always starts on a new line, and is usually a block of
text.
1
The
0 HTML <p> element defines a paragraph.
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML Styles
The HTML style attribute is used to add styles to an element, such as color,
font, size, and more.
1
0
0
1
<tagname style="property:value;
0
1
"> 1
0
0 1
1 0
0• Use the style attribute for styling HTML 0
0 1
1 elements 0
0• Use background-color for background color 0
1 1
0• Use color for text colors 0
1• 1
0
Use font-family for text fonts 1
• Use font-size for text sizes 0
1
• Use text-align for text alignment 1
1
HTML Styles

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML Lists

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML unordered lists

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML ordered lists

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML table
HTML tables allow web developers to arrange data into rows and columns.

1
0
Table
0
Cells
Each
1 table cell is defined by a <td> and a </td> tag.
td stands for table data.
0 1
1 0
0 1
1 0
0 Table Rows 0
0 Each table row starts with a <tr> and ends with a </tr> tag. 1
1 0
0
tr stands for table row. 0
1 1
0 0
1 Table Headers 1
0 Sometimes you want your cells to be table header cells. In those cases 1
0
use the <th> tag instead of the <td> tag: 1
th stands for table header. 1
1
HTML table

1
0
0
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML Table -
Colspan
HTML Table - Colspan
1 To make a cell span over multiple columns, use the
0
0
colspan attribute:
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1
HTML Table -
rowspan
HTML Table - Rowspan
1
To make a cell span over multiple rows, use
0
0
the rowspan attribute:
1
0 1
1 0
0 1
1 0
0 0
0 1
1 0
0 0
1 1
0 0
1 1
0 1
0
1
1
1

You might also like