HTML
HTML
------------------------------
What is a Network?
------------------
A Network is a group of Interconnected (Linked Together) devices, such as computers, Servers,
Routers, and other hardware (Switches, IOT Devices like Smart Camera, Smart Lights, Smart
fans), that communicate and share resources.
A network can exist locally (within a small area like home, office, or school). global : hdfc bank
Internet (global)
Intranet (private: home, office, schools, banking, hospitals)
It retrieves webpages from servers and displays them on devices like computers or
smartphones (browsers)
Webpage
-------
A webpage is a single document or file that contains text, images, videos, and so on.
Website
-------
Collection of webpages
[Link]
email : sdfsdf@[Link]
password: sivasoft -->hackers(sivasoft) --> server (databases)
HTTPS ([Link] :
HTTPS(Hypertext Transfer Protocol Secure)
email: sdfsdf@[Link]
password: sivasoft -->hackers(dsfsdf345sdkldjgkjd3456dglkdjfgkl) --> server (databases)
Web Development
---------------
It is the process of creating, building, and maintaining websites that run on the internet.
It involves designing, coding, and deploying websites that users can access using a web
browser
building: Coding and Developing (front end or client side or ui: react or angular, backend:
python, nodejs, java, .net)
maintaining websites :
HTML
--------
[Link] stands for Hyper Text Markup Language
2. Tag
--------
Text placed in between the left angle brace '<' and right angle brace '>' is called a tag.
Syntax(set of rules)
--------------------
Start(Open) tag Close(end) tag
------------------------------------------------------
<table>-----------------------------------</table>
<body>------------------------------------</body>
NOTE: Closing tag will be represented with Forward Slash(/)
3. Hyper Text = Hyperlink = Navigation (Moving from one page to another page)
[Link] = It means using tags(<table>, <img>, <a>,....) to define the structure of a document.
[Link] Web Browsers began development in the late 1980s and early 1990s by Tim Berner's
Lee while working at CERN(Conseil Européen pour la Recherche Nucléaire, which is French for
the European Organization for Nuclear Research).
7. In 1990, Tim Berner's Lee created the first web browser (World Wide Web, later renamed
Nexus).
[Link] 1.0 Initial Version: 1991 (Basic Structure, Hyperlinks, Text formatting)
[Link] 3.2: 1997 (CSS Support, JavaScript, Improved Tables and Forms)
13.HTML5: 2014 (Semantic Elements, Multimedia, APIs (Drag and Drop, localStorage,
sessionStorage, Web Workers.....))
14. The W3C(World Wide Web Consortium) is an international Organization that creates rules
and guidelines for Web Development. Tim Berner's founded W3C in 1994.
15. Purpose of W3C: HTML should work the same on all devices and browsers.
NOTE: Before W3C, Different Web Browsers (Like Internet Explorer and Netscape) displayed
websites differently, causing many problems. Tim Berners-Lee created W3C to set Web
standards so that all websites work the same way everywhere(available browsers).
[Link] is a global language i.e, it can be understood by all the available browsers.
[Link]
--------
[Link]: Notepad, Notepad++, Editplus, Sublime Text, Netbeans, Visual Studio (VS) Code......
[Link]: Google Chrome, Mozilla Firefox, Microsoft Edge, Safari and Opera.
[Link] of Tags
----------------
[Link] or Paired tag : Tags which consists both opening and closing
------------------------------------------------------------------------
ex : <html></html>, <p></p>, <a></a>,.....
NOTE
----
HTML, Angular : <br>, <hr>, <img>
XHTML, React : <br/>, <hr/>, <img/> - Self-Closed Tags
Structure of html
-----------------
26 : A,B,C....Z
Formatting tags
--------------------
b
strong
Deprecated Attributes
---------------------
align - caption, iframe, img, input, legend, table, hr, div, h1, h2, h3, h4, h5, h6, p, td, th, and tr.
hspace - img
vspace - img
width - hr, table, td, th, pre, img.
height - table, td, th, pre, img.
background - body
bgcolor - table, tr, td, th and body.
rules - table
border - table, img
cellpadding - table
cellspacing - table
type - li, ol and ul
noshade - hr
char
charoff
color, face - font
marginwidth, marginheight - iframe, body
nowrap - td,th
size - font,hr
start - ol
valign - td, th, tr
Tag: Text placed in between left angle brace '<' and right angle brace '>'
ex : <strong> - open(start) tag
</strong> - close(end) tag
Element : An HTML element is defined by a start tag, some content, and an end tag.
syntax : <tagname>some content</tagname>
<strong>Siva Soft</strong>
<p> : tag
<ul><li></li></ul> : element
<li>List Item</li> : li element
HTML : Attribute
CSS : Property
JS : Key or name
Syntax
------
<tag attribute="parameter">
ex
---
Tag Attribute Parameter
-----------------------
<p align="center">
<font color="red" size="7" face="verdana">
align(key or name or attribute) - fixed, Value or Parameter(center, right, left, justify) - varies
align="center"
align="right"
align="left"
align="justify"
Dhoni - Cricket
Siva - Training, Developer, director
Types of Lists
--------------
[Link] List
[Link] List
[Link] List
[Link] List
<blockquote>
<abbr>
<address>
<bdo>
Comments
// - single
/**/ - multi-line
Colors
------
Color Mode
----------
R (Red: 0-255 = 1-256)
G (Green: 0-255 = 1-256)
B (Blue: 0-255 = 1-256)
Hexa-Decimal Codes
------------------
#9c1a1a
# - id(unique)
9c - red
1a - green
1a - blue
Red
---
Color Range(R) Hexa Decimal
-----------------------------------------------------
0 00
1 01
2 02
. .
. .
9 09
10 0a
11 0b
. .
. .
15 0f
16 10
17 11
. .
. .
25 19
26 1a
27 1b
. .
. .
31 1f
. .
. .
255 ff
table
1px
Unit
----
Distance : cm, m, km,.....
Milk : 1lt
px
1366px * 768px
1920px * 1080px : Full HD
2560 * 1440px : 2K
3840 x 2160 : 4K
Smartphones
-----------
50MP, 64MP, 108MP, 200MP - clarity, file size will be more
iframe tag
----------
Iframe tag is used to add or embed external sources like google map, youtube, website, html,
images......
NOTE
----
It is a good practice to always include a title attribute for the <iframe>. This used by screen
readers to react out what the content of the frame is.
To: sivasoft@[Link];sdfdsf@[Link]
CC : Carbon Copy
BCC : Blind Carbon Copy
To
--
This is for main recipients.
manager@[Link]
CC - Carbon Copy
----------------
used to inform others (team mates)
BCC
---
inform to my hr(hr@[Link])
HTML Entities
-------------
Entity names look like : &entity_name; ex : <
Entity numbers look like : &#entity)number; ex : <
[Link]
⌛
⌚ ⌚
⏰
⌛ ⌛
☔
⏰ ⏰
☕
☔ ☔
♿
☕ ☕
⚓
♿ ♿
⚡
⚓ ⚓
⚡ ⚡
⛱
⛳
⛱ ⛱
⛵
⛳ ⛳
⛽
⛵ ⛵
⛽ ⛽
✅
✂ ✂ ✂
✅ ✅
✈ ✈ ✈
✋
✉ ✉ ✉
✋ ✋
✔ ✔ ✔
✨
✖ ✖ ✖
✨ ✨
✳ ✳ ✳
✴ ✴ ✴
❄ ❄ ❄
❌
❇ ❇ ❇
❎
❌ ❌
❓
❎ ❎
❔
❓ ❓
❕
❔ ❔
❗
❕ ❕
❗ ❗
➕
❤ ❤ ❤
➖
➕ ➕
➗
➖ ➖
➗ ➗
🆗
🌙
🆗 🆗
🌛
🌙 🌙
🌜
🌛 🌛
🌝
🌜 🌜
🌞
🌝 🌝
🌟
🌞 🌞
🌡
🌟 🌟
🌤
🌡 🌡
🌥
🌤 🌤
🌦
🌥 🌥
🌧
🌦 🌦
🌨
🌧 🌧
🌩
🌨 🌨
🌪
🌩 🌩
🌲
🌪 🌪
🌳
🌲 🌲
🌴
🌳 🌳
🌵
🌴 🌴
🌶
🌵 🌵
🌷
🌶 🌶
🌸
🌷 🌷
🌹
🌸 🌸
🌺
🌹 🌹
🌻
🌺 🌺
🌼
🌻 🌻
🌽
🌼 🌼
🌾
🌽 🌽
🌿
🌾 🌾
🍀
🌿 🌿
🍁
🍀 🍀
🍂
🍁 🍁
🍃
🍂 🍂
🍄
🍃 🍃
🍅
🍄 🍄
🍆
🍅 🍅
🍇
🍆 🍆
🍈
🍇 🍇
🍉
🍈 🍈
🍊
🍉 🍉
🍋
🍊 🍊
🍌
🍋 🍋
🍍
🍌 🍌
🍎
🍍 🍍
🍎 🍎
🍏
🍐
🍏 🍏
🍑
🍐 🍐
🍒
🍑 🍑
🍓
🍒 🍒
🍴
🍓 🍓
🍵
🍴 🍴
🍷
🍵 🍵
🍸
🍷 🍷
🍽
🍸 🍸
🎁
🍽 🍽
🎂
🎁 🎁
🎃
🎂 🎂
🎄
🎃 🎃
🎗
🎄 🎄
🎧
🎗 🎗
🎨
🎧 🎧
🎵
🎨 🎨
🎶
🎵 🎵
🎷
🎶 🎶
🎸
🎷 🎷
🎺
🎸 🎸
🎻
🎺 🎺
🎼
🎻 🎻
🎽
🎼 🎼
🎾
🎽 🎽
🏁
🎾 🎾
🏂
🏁 🏁
🏃
🏂 🏂
🏄
🏃 🏃
🏅
🏄 🏄
🏆
🏅 🏅
🏇
🏆 🏆
🏉
🏇 🏇
🏊
🏉 🏉
🏋
🏊 🏊
🏌
🏋 🏋
🏍
🏌 🏌
🏎
🏍 🏍
🏏
🏎 🏎
🏐
🏏 🏏
🏑
🏐 🏐
🏒
🏑 🏑
🏓
🏒 🏒
🏓 🏓
🏠
🏴
🏠 🏠
🐁
🏴 🏴
🐂
🐁 🐁
🐃
🐂 🐂
🐄
🐃 🐃
🐆
🐄 🐄
🐇
🐆 🐆
🐈
🐇 🐇
🐉
🐈 🐈
🐊
🐉 🐉
🐋
🐊 🐊
🐌
🐋 🐋
🐍
🐌 🐌
🐎
🐍 🐍
🐏
🐎 🐎
🐐
🐏 🐏
🐒
🐐 🐐
🐓
🐒 🐒
🐔
🐓 🐓
🐕
🐔 🐔
🐖
🐕 🐕
🐗
🐖 🐖
🐘
🐗 🐗
🐙
🐘 🐘
🐚
🐙 🐙
🐛
🐚 🐚
🐜
🐛 🐛
🐝
🐜 🐜
🐞
🐝 🐝
🐟
🐞 🐞
🐢
🐟 🐟
🐤
🐢 🐢
🐦
🐤 🐤
🐪
🐦 🐦
🐫
🐪 🐪
🐬
🐫 🐫
🐭
🐬 🐬
🐮
🐭 🐭
🐯
🐮 🐮
🐰
🐯 🐯
🐱
🐰 🐰
🐲
🐱 🐱
🐳
🐲 🐲
🐳 🐳
🐴
🐵
🐴 🐴
🐶
🐵 🐵
🐷
🐶 🐶
🐸
🐷 🐷
🐹
🐸 🐸
🐺
🐹 🐹
🐻
🐺 🐺
🐼
🐻 🐻
🐽
🐼 🐼
👀
🐽 🐽
👂
👀 👀
👆
👂 👂
👇
👆 👆
👈
👇 👇
👉
👈 👈
👊
👉 👉
👋
👊 👊
👌
👋 👋
👍
👌 👌
👎
👍 👍
👏
👎 👎
👐
👏 👏
👑
👐 👐
👒
👑 👑
👓
👒 👒
👔
👓 👓
👕
👔 👔
👖
👕 👕
👗
👖 👖
👘
👗 👗
👙
👘 👘
👚
👙 👙
👛
👚 👚
👜
👛 👛
👝
👜 👜
👞
👝 👝
👟
👞 👞
👠
👟 👟
👡
👠 👠
👢
👡 👡
👣
👢 👢
👤
👣 👣
👥
👤 👤
👥 👥
👦
👧
👦 👦
👨
👧 👧
👩
👨 👨
👪
👩 👩
👫
👪 👪
👬
👫 👫
👭
👬 👬
👮
👭 👭
👰
👮 👮
👱
👰 👰
👲
👱 👱
👳
👲 👲
👴
👳 👳
👵
👴 👴
👶
👵 👵
👷
👶 👶
👸
👷 👷
👹
👸 👸
👻
👹 👹
👽
👻 👻
👾
👽 👽
👿
👾 👾
💀
👿 👿
💉
💀 💀
💊
💉 💉
💌
💊 💊
💎
💌 💌
💑
💎 💎
💓
💑 💑
💔
💓 💓
💕
💔 💔
💖
💕 💕
💗
💖 💖
💘
💗 💗
💙
💘 💘
💚
💙 💙
💛
💚 💚
💜
💛 💛
💝
💜 💜
💞
💝 💝
💟
💞 💞
💤
💟 💟
💥
💤 💤
💥 💥
💩
💪
💩 💩
💬
💪 💪
💭
💬 💬
💮
💭 💭
💯
💮 💮
💰
💯 💯
💲
💰 💰
💳
💲 💲
💼
💳 💳
💽
💼 💼
💾
💽 💽
📂
💾 💾
📄
📂 📂
📅
📄 📄
📈
📅 📅
📉
📈 📈
📊
📉 📉
📋
📊 📊
📌
📋 📋
📍
📌 📌
📎
📍 📍
📏
📎 📎
📐
📏 📏
📜
📐 📐
📝
📜 📜
📞
📝 📝
📡
📞 📞
📢
📡 📡
📣
📢 📢
📵
📣 📣
📶
📵 📵
📷
📶 📶
📹
📷 📷
📺
📹 📹
📻
📺 📺
🔅
📻 📻
🔆
🔅 🔅
🔇
🔆 🔆
🔈
🔇 🔇
🔉
🔈 🔈
🔊
🔉 🔉
🔋
🔊 🔊
🔌
🔋 🔋
🔌 🔌
🔍
🔎
🔍 🔍
🔐
🔎 🔎
🔑
🔐 🔐
🔒
🔑 🔑
🔓
🔒 🔒
🔔
🔓 🔓
🔕
🔔 🔔
🔗
🔕 🔕
🔘
🔗 🔗
🔞
🔘 🔘
🔥
🔞 🔞
🔦
🔥 🔥
🔧
🔦 🔦
🔨
🔧 🔧
🔪
🔨 🔨
🔫
🔪 🔪
🔬
🔫 🔫
🔭
🔬 🔬
🔯
🔭 🔭
🔺
🔯 🔯
🔻
🔺 🔺
🔼
🔻 🔻
🔽
🔼 🔼
🕶
🔽 🔽
🕷
🕶 🕶
🕸
🕷 🕷
🖊
🕸 🕸
🖤
🖊 🖊
🖱
🖤 🖤
🗣
🖱 🖱
🗨
🗣 🗣
🗯
🗨 🗨
🗳
🗯 🗯
🗼
🗳 🗳
🗽
🗼 🗼
😀
🗽 🗽
😁
😀 😀
😂
😁 😁
😃
😂 😂
😄
😃 😃
😅
😄 😄
😆
😅 😅
😇
😆 😆
😇 😇
😈
😉
😈 😈
😊
😉 😉
😋
😊 😊
😌
😋 😋
😍
😌 😌
😎
😍 😍
😏
😎 😎
😐
😏 😏
😑
😐 😐
😒
😑 😑
😓
😒 😒
😔
😓 😓
😕
😔 😔
😖
😕 😕
😗
😖 😖
😘
😗 😗
😙
😘 😘
😚
😙 😙
😛
😚 😚
😜
😛 😛
😝
😜 😜
😞
😝 😝
😟
😞 😞
😠
😟 😟
😡
😠 😠
😢
😡 😡
😣
😢 😢
😤
😣 😣
😥
😤 😤
😦
😥 😥
😧
😦 😦
😨
😧 😧
😩
😨 😨
😪
😩 😩
😫
😪 😪
😬
😫 😫
😭
😬 😬
😮
😭 😭
😯
😮 😮
😰
😯 😯
😱
😰 😰
😲
😱 😱
😳
😲 😲
😳 😳
😴
😵
😴 😴
😶
😵 😵
😷
😶 😶
😸
😷 😷
😹
😸 😸
😺
😹 😹
😻
😺 😺
😼
😻 😻
😽
😼 😼
😾
😽 😽
😿
😾 😾
🙀
😿 😿
🙁
🙀 🙀
🙂
🙁 🙁
🙃
🙂 🙂
🙄
🙃 🙃
🙅
🙄 🙄
🙆
🙅 🙅
🙇
🙆 🙆
🙈
🙇 🙇
🙉
🙈 🙈
🙊
🙉 🙉
🙋
🙊 🙊
🙌
🙋 🙋
🙍
🙌 🙌
🙎
🙍 🙍
🙏
🙎 🙎
🚀
🙏 🙏
🚁
🚀 🚀
🚂
🚁 🚁
🚃
🚂 🚂
🚄
🚃 🚃
🚅
🚄 🚄
🚆
🚅 🚅
🚇
🚆 🚆
🚈
🚇 🚇
🚉
🚈 🚈
🚊
🚉 🚉
🚋
🚊 🚊
🚌
🚋 🚋
🚍
🚌 🚌
🚎
🚍 🚍
🚐
🚎 🚎
🚐 🚐
🚑
🚒
🚑 🚑
🚓
🚒 🚒
🚔
🚓 🚓
🚕
🚔 🚔
🚖
🚕 🚕
🚗
🚖 🚖
🚘
🚗 🚗
🚙
🚘 🚘
🚚
🚙 🚙
🚛
🚚 🚚
🚩
🚛 🚛
🚪
🚩 🚩
🚫
🚪 🚪
🚬
🚫 🚫
🚭
🚬 🚬
🚮
🚭 🚭
🚯
🚮 🚮
🚰
🚯 🚯
🚱
🚰 🚰
🚲
🚱 🚱
🚳
🚲 🚲
🚴
🚳 🚳
🚵
🚴 🚴
🚶
🚵 🚵
🚷
🚶 🚶
🚸
🚷 🚷
🚹
🚸 🚸
🚺
🚹 🚹
🚽
🚺 🚺
🚿
🚽 🚽
🛁
🚿 🚿
🛌
🛁 🛁
🛒
🛌 🛌
🛠
🛒 🛒
🤐
🛠 🛠
🤑
🤐 🤐
🤒
🤑 🤑
🤓
🤒 🤒
🤔
🤓 🤓
🤕
🤔 🤔
🤖
🤕 🤕
🤗
🤖 🤖
🤘
🤗 🤗
🤘 🤘
🤙
🤚
🤙 🤙
🤟
🤚 🤚
🤠
🤟 🤟
🤡
🤠 🤠
🤢
🤡 🤡
🤣
🤢 🤢
🤤
🤣 🤣
🤥
🤤 🤤
🤦
🤥 🤥
🤧
🤦 🤦
🤨
🤧 🤧
🤩
🤨 🤨
🤪
🤩 🤩
🤫
🤪 🤪
🤬
🤫 🤫
🤭
🤬 🤬
🤮
🤭 🤭
🤯
🤮 🤮
🤰
🤯 🤯
🤱
🤰 🤰
🤲
🤱 🤱
🤴
🤲 🤲
🤵
🤴 🤴
🤶
🤵 🤵
🥇
🤶 🤶
🥈
🥇 🥇
🥉
🥈 🥈
🥎
🥉 🥉
🥕
🥎 🥎
🥣
🥕 🥕
🧐
🥣 🥣
🧑
🧐 🧐
🧒
🧑 🧑
🧓
🧒 🧒
🧔
🧓 🧓
🧕
🧔 🧔
🧖
🧕 🧕
🧘
🧖 🧖
🧙
🧘 🧘
🧚
🧙 🧙
🧛
🧚 🧚
🧝
🧛 🧛
🧞
🧝 🧝
🧞 🧞
🧟
🧡
🧟 🧟
🧡 🧡
NOTE: default font is times new roman but in case of code, kbd, samp and pre monospace
NOTE: Consistent, clean, and tidy HTML code makes it easier for others to read and
understand our code.
13. Setting the Viewport (Bootstrap - responsive website - screen sizes like smartphones, Tabs,
Laptop / Desktops)
[Link] Comments
[Link]
------------
[Link], [Link], [Link] (Landing or home is [Link])
To make sure the browser shows all this text correctly, we must tell the browser which character
set(encoding) to use.
Think of a character set like a language dictionary for the browser. It helps the browser know
how to read and display each letter or symbol
What is a Charset?
--------------------------
charset is short for "character set"
In HTML, we use <meta> tag to tell the browser which character set to use.
- Basic ASCII characters (A-Z, a-z, 0-9, punctuation) use 1 byte (8 bits).
- Extended Latin characters (like é, ü) use 2 bytes.
- Most common Unicode characters (like Chinese, Hindi, Arabic symbols) use 3
bytes.
- Rare symbols & emojis use 4 bytes.
ASCII Character set
-------------------
Before UTF-8, the internet used something called ASCII (American Standard Code for
Information Interchange)
it supports
-----------
English Letters (A-Z, a-z)
Numbers (0-9)
Some special characters : !, $, @, <, >
windows-1252
------------
Used in old Windows Systems
Supports Western European Languages
iso-8859-1
----------
similar to windows-1252
Also used for Western Europe
These are older encodings. Today we mostly use UTF-8
<!DOCTYPE html>
<html>
<head>
<title>Encoding Test</title>
<meta charset="UTF-8">
</head>
<body>
😀
<h1>Encoding Example</h1>
<p>This is a test: ©, €, , नमस्ते, こんにちは</p>
ers (e.g., ™, ₹, or even Arabic or Chinese scripts) to showcase the versatility of UTF-8.
</body>
</html>
meta
------
[Link] (Character Encoding)
------------------------------
<meta charset="UTF-8">
[Link]
-------------
<meta name="description" content="A brief description of the webpage content.140-160
characters">
[Link]
----------
<meta name="keywords" content="python, training, in, course, india, Ameerpet, Hyderabad, full
stack, online">
30 - 40 unique keywords
[Link]
--------
<meta name="author" content="sivasoft">
[Link](Page Auto-Refresh)
----------------------------
<meta http-equiv="refresh" content="30">
[Link]
--------
<meta name="robots" content="index, follow">
<meta name="robots" content="noindex, nofollow">
Crawl:
Search engines use automated programs called "crawlers" (or spiders/bots) to "crawl" the
internet.
This means they systematically visit websites, read their content, and follow links to discover
new or updated pages to potentially add to their index.
NOTE:
-----
"Follow any links on this page" means search engine crawlers are permitted to navigate to other
web pages by clicking on the hyperlinks found on the current page.
This allows them to discover and index additional content across the internet.
Forms
-----
An HTML form is section on a webpage that allows users to enter data (like name, email,
password, select........) and submit it to a server page(php, java .net,....)
GET
---
html10112603/[Link]?firstname=Siva&lastname=Soft&password=123@asdsA
POST
----
[Link] the form data (the submitted form data is not show in in the URL)
[Link] has no size limitations, and can be used to send large amounts of data.
[Link] submissions with POST cannot be bookmarked
[Link] use POST if the form data contains sensitive or personal information.
button
checkbox
BLOB
HTML5
-----
Forms
email
url
tel
number
range
date
time
datetime
datetime-local
month
week
color
Form Elements
-------------
datalist
output
progress
meter
fieldset
10+20 = 30
"siva"+"soft" = sivasoft
"10"+"20" = 1020
<input
type="text" <!-- HTML4: Specifies a single-line text input -->
name="firstname" <!-- HTML4: Name of the input field -->
value="Siva" <!-- HTML4: Default value for the input -->
id="firstname" <!-- HTML4: Unique identifier for the input -->
maxlength="30" <!-- HTML4: Maximum number of characters allowed -->
readonly <!-- HTML4: Makes the input field non-editable -->
disabled <!-- HTML4: Disables the input field -->
size="10" <!-- HTML4: The size attribute is set to 10, meaning the input field will
be wide enough to display 10 characters in the input box. -->
placeholder="Enter your first name" <!-- HTML5: Placeholder text shown when input is empty
-->
required <!-- HTML5: Specifies that the field must be filled before submitting the form
-->
minlength="2" <!-- HTML5: Minimum number of characters required -->
pattern="[A-Za-z]+" <!-- HTML5: Regular expression for validating input -->
autocomplete="given-name" <!-- HTML5: Autocompletion based on the type of input -->
><br>
<input
type="password" <!-- HTML4: Specifies a password input field, the entered text is hidden
-->
name="password" <!-- HTML4: Name of the input field -->
value="Soft123" <!-- HTML4: Default password value -->
id="password" <!-- HTML4: Unique identifier for the input -->
maxlength="20" <!-- HTML4: Maximum number of characters allowed -->
readonly <!-- HTML4: Makes the input field non-editable, but the value can be copied
-->
disabled <!-- HTML4: Disables the input field, making it unselectable -->
size="10" <!-- HTML4: The size attribute is set to 10, meaning the input field will
be wide enough to display 10 characters in the input box. -->
placeholder="Enter your password" <!-- HTML5: Placeholder text shown when input is empty
-->
required <!-- HTML5: Specifies that the field must be filled before submitting the form
-->
minlength="6" <!-- HTML5: Minimum number of characters required -->
pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}" <!-- HTML5: Regular expression to enforce strong
password requirements -->
autocomplete="current-password" <!-- HTML5: Autocompletion for the current password -->
><br>
<textarea
name="message" <!-- HTML4: Name of the textarea field -->
rows="4" <!-- HTML4: Number of visible rows -->
cols="50" <!-- HTML4: Number of visible columns -->
maxlength="500" <!-- HTML4: Maximum number of characters allowed -->
readonly <!-- HTML4: Makes the textarea field non-editable, but the value can be
copied -->
disabled <!-- HTML4: Disables the textarea field, making it unselectable -->
placeholder="Enter your message here" <!-- HTML5: Placeholder text shown when input is
empty -->
required <!-- HTML5: Specifies that the field must be filled before submitting the
form -->
autofocus <!-- HTML5: Focuses on this field on page load -->
spellcheck="true" <!-- HTML5: Enables spellchecking -->
></textarea><br>
<select
name="options" <!-- HTML4: Name of the select field -->
id="options" <!-- HTML4: Unique identifier for the select element -->
required <!-- HTML5: Specifies that the field must be filled before submitting the
form -->
disabled <!-- HTML4: Disables the select field, making it unselectable -->
autofocus <!-- HTML5: Focuses on this field on page load -->
multiple <!-- HTML5: Allows the user to select multiple options -->
size="5" <!-- HTML4: Specifies the number of visible options in the dropdown
(without scrolling) -->
>
<optgroup
label="Group 1" <!-- HTML4: Grouping options for easier categorization -->
disabled <!-- HTML4: Disables the group of options -->
>
<option value="1" selected>Option 1</option> <!-- HTML4: Option for the select dropdown,
marked as selected -->
<option value="2" disabled>Option 2</option> <!-- HTML4: Option for the select dropdown,
disabled -->
</optgroup>
<optgroup
label="Group 2" <!-- HTML4: Grouping options for easier categorization -->
>
<option value="3">Option 3</option> <!-- HTML4: Option for the select dropdown -->
<option value="4" selected>Option 4</option> <!-- HTML4: Option for the select dropdown,
marked as selected -->
</optgroup>
<option value="5" disabled>Option 5</option> <!-- HTML4: Option for the select dropdown,
disabled -->
<option value="6">Option 6</option> <!-- HTML4: Option for the select dropdown -->
</select><br>
id: unique
<input
type="radio" <!-- HTML4: Specifies the input as a radio button -->
name="gender" <!-- HTML4: Groups the radio buttons together so only one can be
selected -->
value="male" <!-- HTML4: Value that will be sent when this radio button is selected -->
id="male" <!-- HTML4: Unique identifier for the male radio button -->
checked <!-- HTML4: Specifies that this radio button should be pre-selected -->
> Male<br> <!-- HTML4: Label for the male radio button -->
<input
type="radio" <!-- HTML4: Specifies the input as a radio button -->
name="gender" <!-- HTML4: Groups the radio buttons together so only one can be
selected -->
value="female" <!-- HTML4: Value that will be sent when this radio button is selected -->
id="female" <!-- HTML4: Unique identifier for the female radio button -->
> Female<br> <!-- HTML4: Label for the female radio button -->
<input
type="radio" <!-- HTML4: Specifies the input as a radio button -->
name="gender" <!-- HTML4: Groups the radio buttons together so only one can be
selected -->
value="other" <!-- HTML4: Value that will be sent when this radio button is selected -->
id="other" <!-- HTML4: Unique identifier for the other radio button -->
disabled <!-- HTML4: Disables the radio button, making it unselectable -->
> Other (disabled)<br> <!-- HTML4: Label for the other radio button -->
<input
type="checkbox" <!-- HTML4: Specifies the input as a checkbox -->
name="subscribe" <!-- HTML4: Name of the checkbox field -->
value="yes" <!-- HTML4: Value that will be sent when the checkbox is checked -->
id="subscribe" <!-- HTML4: Unique identifier for the checkbox -->
checked <!-- HTML4: Pre-selects the checkbox when the page loads -->
> Subscribe to newsletter<br> <!-- HTML4: Label for the checkbox -->
<input
type="checkbox" <!-- HTML4: Specifies the input as a checkbox -->
name="terms" <!-- HTML4: Name of the checkbox field -->
value="agree" <!-- HTML4: Value that will be sent when the checkbox is checked -->
id="terms" <!-- HTML4: Unique identifier for the checkbox -->
disabled <!-- HTML4: Disables the checkbox, making it unselectable -->
> I agree to the terms and conditions<br> <!-- HTML4: Label for the checkbox -->
<input
type="file" <!-- HTML4: Specifies a file upload input field -->
name="resume" <!-- HTML4: Name of the file input field -->
id="resume" <!-- HTML4: Unique identifier for the file input -->
accept=".pdf,.doc,.docx" <!-- HTML5: Specifies the types of files accepted -->
multiple <!-- HTML5: Allows selection of multiple files -->
required <!-- HTML5: Makes the field mandatory before form submission -->
disabled <!-- HTML4: Disables the file input, making it unselectable -->
><br>
<input
type="submit" <!-- HTML4: Specifies the button as a form submission control -->
name="submitBtn" <!-- HTML4: Name of the submit button -->
id="submitBtn" <!-- HTML4: Unique identifier for the submit button -->
value="Submit Form" <!-- HTML4: Text displayed on the submit button -->
formaction="/[Link]" <!-- HTML5: URL to send the form data to when this button is used
-->
formenctype="multipart/form-data" <!-- HTML5: Specifies how the form data should be
encoded -->
formmethod="post" <!-- HTML5: HTTP method used when the form is submitted -->
formtarget="_blank" <!-- HTML5: Opens the response in a new tab or window -->
formnovalidate <!-- HTML5: Submits the form without validation -->
disabled <!-- HTML4: Disables the submit button -->
><br>
<input
type="reset" <!-- HTML4: Specifies a button that resets all form values to their defaults
-->
name="resetBtn" <!-- HTML4: Name of the reset button -->
id="resetBtn" <!-- HTML4: Unique identifier for the reset button -->
value="Reset Form" <!-- HTML4: Text displayed on the reset button -->
disabled <!-- HTML4: Disables the reset button -->
form="myForm" <!-- HTML5: Associates the button with a specific form by its ID -->
formtarget="_self" <!-- HTML5: Target window for form action (not functional with reset,
included for syntax consistency) -->
><br>
<input
type="hidden" <!-- HTML4: Specifies an invisible input field for storing hidden data -->
name="sessionId" <!-- HTML4: Name of the hidden input field -->
id="sessionId" <!-- HTML4: Unique identifier for the hidden input -->
value="abc123" <!-- HTML4: The hidden value to be sent when the form is submitted
-->
form="myForm" <!-- HTML5: Associates the hidden field with a specific form by ID -->
><br>
<form
action="/[Link]" <!-- HTML4: URL where form data is sent on submission -->
method="post" <!-- HTML4: HTTP method used for sending form data ("get" or
"post") -->
name="userForm" <!-- HTML4: Name of the form, used for reference in scripts -->
id="userForm" <!-- HTML4: Unique identifier for the form -->
enctype="multipart/form-data" <!-- HTML4: Encoding type for form data (used when
uploading files) -->
target="_blank" <!-- HTML4: Where to display the response after submitting the
form -->
autocomplete="on" <!-- HTML5: Enables or disables browser autocomplete -->
novalidate <!-- HTML5: Disables HTML5 validation when the form is submitted
-->
accept-charset="UTF-8" <!-- HTML4: Character encoding for form submission -->
>
<!-- form content goes here -->
</form><br>
Because URLs can only contain letters, numbers and a few special special characters (-_.~)
safely
If we want to send special characters like spaces, slashes, question marks, or ampersands(&),
we need to encode them into a special format so the browser / server can understand them
properly.
How it Works?
--------------
Special characters are replaced with a percent symbol followed by two hexadecimal digits
(space - %20).
Character Encoded as
---------------------------------------------------
Space " " %20 or +
! %21
# %23
$ #24
% %25
& %26
@ %40
/ %2F
[Link] soft
q=siva+soft%21 or q=siva%20soft%21
The space between siva and soft would cause problems, because
[Link] are not allowed in URLs
2.A space in a URL is often interpreted by the browser as the end of the URL
[Link] soft&country=INDIA
space between Siva and Soft is not encoded, the server might understand that Siva and
soft&country=INDIA are different parts of the URL
After encoding
[Link]
NOTE: it prevents miscommunication between the browser (or web server) and the URL
CSS
---
XHTML
-----
XHTML stands for eXtensible Hyper Markup Language
XHTML is a stricter and cleaner version of HTML.
XHTML is supported by all major browsers
NOTE: [Link]
HTML
----
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"[Link]
<html>
XHTML
-----
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"[Link]
HTML5
-----
<!DOCTYPE html>
#f0f - 64 bit