HTML Notes
HTML Notes
Link
KG Coding
Some Other One shot Video
Links:
• Complete HTML
• Complete CSS
• Complete JavaScript
• Complete React and Redux
• One shot University Exam
http://www.kgcoding Our Channel
Series KG Coding Android
.in/ App
s
1.
IDE
OR
Code
Editor
1.1 What is IDE
1. IDE stands for
Integrated
Development
Environment.
2. Software suite that
consolidates basic
tools
required for
software
development.
3. Central hub for
coding, finding
problems, and
1.2 Need of IDE
1. Streamlines
development.
2. Increases productivity.
3. Simplifies complex
tasks.
4. Offers a unified
workspace.
5. IDE Features
1. Code Autocomplete
2. Syntax Highlighting
3. Version Control
1.3 IDE Selection
1. Sublime Text
2. Atom
3. VS Code
4. Github
CodeSpaces
1.4 Installation & Setup
1. Search VS
Code
1.5 VsCode Extensions
1. Live
Server
2. Prettier
Level 0
Setup &
Fundamentals
2. Website
Componen
ts
And
Fundamenta
ls
2.1 Client Side vs Server Side
Client Side Server Side
Full Stack
2.3 Role of Browser
1. Structure: Sets up
the layout.
2. Content: Adds
text, images,
links.
3. Tags: Uses
elements like
<p>, <a>.
4. Hierarchy:
2.5 CSS
(Cascading Style
Sheets)
1.
Starti
ng Up
1.1 First file using Text Editor
1. Create a folder with name
First Project on your
Desktop.
2. Open Notepad.
3. Create a file and save
it as index.html
4. Copy Sample code
5. Open Browser and
Check.
1.2 File Extension
HTML
1. Most commonly used.
2. Works across all browsers.
3. Widely recognized and supported.
4. Typically saved as .html.
HTM
1. Less commonly used.
2. Originated for compatibility with older
systems.
3. Works same as .html.
4. Typically saved as .htm.
1.3 Opening project in VsCode
1.4 Importance of index.html
1. Default name of a
website’s homepage.
2. First page users see
when visiting a website
3. Important for SEO
(Search Engine
Optimization)
4. Provides uniform
starting point
across servers
5. Serves as fallback when no
Level
1Basics
HTML
2. Basics
of HTML
2.1 What are Tags
1. Elements that are used
to create a website are
called HTML Tags.
2. Tags can contain
content or other HTML
tags.
3. Define elements like
text, images, links
2.2 Using Emmet ! to generate
code 1. Type ! and wait for
suggestions.
2.3 Basic HTML Page
<!DOCTYPE html> Defines the HTML Version
<html lang="en"> Parent of all HTML tags / Root
<head> element Parent of meta data
tags
<title>My First Webpage</title> Title of the web
page
</head>
<body> Parent of content tags
<h1>Hello World!</h1> Heading tag
</body>
</html>
2.4 MDN Documentation
1. Visit
https://developer.mozilla.org/
2. Official resource for HTML
3. Offers comprehensive guides
and tutorials
4. Includes examples for real-
world use
5. Updated with latest HTML
features
6. Trusted by developers
worldwide
2.5 Comments
1. Used to add notes in
HTML code
2. Not displayed on the
web page
3. Syntax: <!-- Comment
here -->
4. Helpful for code
organization
5. Can be multi-line or
single-line
2.6 Case Sensitivity
1. HTML is case-insensitive for
tag names
2. Attribute names are
also be case-insensitive
3. Best practice: use
lowercase for consistency
Level 1 Revision
HTML
Basics
1. Starting up
1. First File using Text Editor
2. File Extension
3. Opening the project in
VsCode
4. Index.html
2. Basics of HTML
1. What are Tags
2. Using Emmet ! to generate
code
3. Basic HTML Page
4. MDN Documentation
5. Comments
6. Case Sensitivity
Project Level
1
1. Create a new projectHTML Basics
with Index.html
2. Generate boilerplate code
using Emmet
3. Write “I am learning
with Prashant sir”
4. Use comments
5. Also use Case
insensitive tags
KG Coding
Some Other One shot Video
Links:
• Complete HTML
• Complete CSS
• Complete JavaScript
• Complete React and Redux
• One shot University Exam
http://www.kgcoding Our Channel
Series KG Coding Android
.in/ App
s
1. HTML Attributes
1. What are HTML Attributes
2. Id Property
2. HTML Tags
1. Heading Tag
2. Paragraph Tag
3. <BR> <HR> tags
4. Image Tag
5. Video Tag
6. Anchor Tag
7. Bold / Italic / Underline /
Strikethrough
8. Pre Tag
9. Big / Small Tag
10.Superscript / Subscript
3. Character Entity Reference
Level 2
Must-Use HTML Tags
1. HTML
Attributes
1.1 What are HTML Attributes?
1. Provides additional
information about
elements
2. Placed within opening tags
3. Common examples: href,
src, alt
4. Use name=value format
5. Can be single or multiple
1.2 id property
2. HTML
Tags
2.1 Heading Tag
3.Characte
r Entity
Reference
3.1 Character Entity
1.Reference
Used to display reserved or special characters
2. Syntax often starts with & and ends with ; (e.g.,
& for &)
Level 2
1. HTML Attributes
Revision
1. What are HTML AttributesMust-Use HTML Tags
2. Id Property
2. HTML Tags
1. Heading Tag
2. Paragraph Tag
3. <BR> <HR> tags
4. Image Tag
5. Video Tag
6. Anchor Tag
7. Bold / Italic / Underline /
Strikethrough
8. Pre Tag
9. Big / Small Tag
10.Superscript / Subscript
3. Character Entity Reference
Project Level
2
1. Create a page with Must-Use HTML Tags
1.
Browse
r Tools
1.1 View Page Source
1. Displays raw HTML and
CSS
2. Useful for debugging
and learning
3. Shows external files
like JavaScript links
1.2 Inspect Element
1. Allows real-time
editing of HTML/CSS
2. Useful for debugging
and testing
3. Shows element hierarchy
and layout
4. Includes console for
JavaScript
5. Highlights selected
elements on page
1.3 HTML without CSS
Level
3
Browser Tools
2.
Responsiv
e Design
2.1 Different Screen Sizes
1. Adapts layout for
different screen sizes
2. Flexible layouts
3. Optimizes images and
assets
4. Enhances user experience
on mobile and desktop
Level 3
Browser Tools
3. Live
Edit
Code
3.1 Live edit HTML
Changed
Subscriber
count
3.2 Live edit
CSS Changed
Channel
Name color
3.3 Live edit JS
3.4 Changes happening at
Client
1. Changes made are
temporary
2. Affect only the current
session
3. Not saved to the server
4. Reset upon page reload
5. Useful for testing, not
permanent fixes
4.
Validating
WebPages
4.1 Using validator.w3.org
1. Ensures HTML adheres
to standards
2. Minimizes cross-
browser issues
3. Helps in achieving better
SEO results
4. Easier to debug and
maintain
5. Optimizes
performance by
reducing parsing errors
Level 3
Revision
1. Browser Tools Browser Tools
1. View Page Source
2. Inspect Element
3. HTML without CSS
2. Responsive Design
1. Different screen size
3. Live Edit Code
1. Live edit HTML
2. Live edit CSS
3. Live edit JS
4. Changes only happening at
client
4. Validating Web pages
1. Using validator.w3.org
Project Level
3
1. Browser Tools
Save Source of Instagram
in a file and check the
render.
2. Inspect the likes element
on the page and read the
code to understand.
3. Change number of likes on
Your Instagram post
4. Validate the page we
created in last project.
KG Coding
Some Other One shot Video
Links:
• Complete HTML
• Complete CSS
• Complete JavaScript
• Complete React and Redux
• One shot University Exam
http://www.kgcoding Our Channel
Series KG Coding Android
.in/ App
s
1.
Seman
tic Tags
1.1 Semantic/Non-Semantic
Tags
Semantic Non-Semantic
Tags
● Meaningful: Describe
Tags
● Generic: No specific
content. meaning.
● SEO: Good for search ● For Styling: Used for
engines. layout.
● Accessibility: Useful for ● No SEO: Not SEO-friendly.
screen readers. ● Examples: <div>,
● Examples: <header>,
<span>, <i>,
<footer>,
<b>.
<article>, <section>,
<nav>.
Level 4
HTML and Project Structure
2.
Body
Tags
2.1 Header Tag
1. Purpose: Encloses content that stands alone, like a blog post or news
story.
2. Semantic: Provides contextual meaning.
3. Independence: Content should make sense even if taken out of the
page context.
2.2.3 Aside Tag
3. Folder
Structure
3.1 Recommended Folder
Structure 1. Root Directory: Main folder containing all website
files.
2. HTML Files: Store main .html files at the root level
for easy access.
3. CSS Folder: Create a css/ folder for all Cascading
Style Sheets.
4. JS Folder: Use a scripts/ folder for JavaScript
files.
5. Images Folder: Store images in an images/ or
images/ folder.
6. Assets: Other assets like fonts can go in an
assets/ folder.
7. Sub-directories: For multi-page websites, use sub-
folders to categorize content.
Level 4
HTML and Project Structure
4.
More
Tags
4.1 Navigation Tags
Block Inline
Elements
● New Line: Start on a new Elements
● Flow: Stay in line with text.
line. ● Width: Just as wide as the
● Full Width: Take up all content.
horizontal space. ● No Break: No new line
● Styling: Can have margins between elements.
and ● Limited Styling: Can't set
padding. size easily.
● Size: Width and height ● Examples: <span>, <a>,
can be set. <strong>,
● Examples: <div>, <p>, <em>, <img>.
<h1>,
4.3 Div Tags
1.
List
Tag
1.1 Ordered Lists
2.
Table
Tag
2.1 <tr>, <td>, <th> Tags
3.
Forms
3.1 Input Tag
● `name` Property:
○ ID for Data: Identifies form elements when
submitting.
○ Unique: Should be unique to each element for
clarity.
● `value` Property:
○ Default Data: Sets initial value for input
3.4 Label Tag
4.
iFram
e Tag
4.1 Using iFrames
1.
GitHub
1.1 What is Version Control
2.
CodeSpace
Framework
s
3.1 ReactJS
1. Definition: A tool for making
websites interactive.
2. Components: Reusable pieces
for building a webpage.
3. Virtual DOM: Makes websites
faster by updating only what's
needed.
4. JSX: A special way to write code
that looks like HTML.
5. State: Keeps track of changes
on the
webpage.
6. Props: Shares information
3.2 AngularJS
1. Definition: A framework for
building web applications,
developed by Google.
2. Two-Way Data Binding: Updates both the
view and the model simultaneously.
3. Directives: Custom HTML tags for
added functionality.
4. Dependency Injection:
Automatically manages
how parts of the app work together.
5. Controllers: Manages the data for a
specific part of the webpage.
6. SPA Support: Good for Single Page
Applications where the page doesn't
3.3 VueJS
1. Definition: A JavaScript
framework for creating web
interfaces.
2. Components: Small, reusable
parts for building a website.
3. Reactivity: Automatically
updates the webpage when
data changes.
4. Directives: Special tokens in
HTML for added functionality.
5. Vuex: Helps manage shared data
across the
site.
Level Bonus
Revision
1. Github Github Pages & CodeSpace
1. What is Version
Control
2. What is Git and
GitHub
3. Account Creation
4. Creating a Repo
5. Creating a
Codespace
6. Creating a Github
page
7. Publishing our
project
2. FrameWorks
Level Bonus
Project
Github Pages &
CodeSpace