0% found this document useful (0 votes)
3 views43 pages

HTML

The document provides an overview of web technology fundamentals, including definitions of networks, the internet, web browsers, and web development. It covers HTML, its evolution, and the importance of web standards set by the W3C. Additionally, it discusses various HTML elements, attributes, and best practices in web design and development.

Uploaded by

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

HTML

The document provides an overview of web technology fundamentals, including definitions of networks, the internet, web browsers, and web development. It covers HTML, its evolution, and the importance of web standards set by the W3C. Additionally, it discusses various HTML elements, attributes, and best practices in web design and development.

Uploaded by

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

Fundamentals of Web Technology

------------------------------
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)

What is the Internet ?


----------------------------
The internet is a global network that connects millions of computers and devices, allowing
people to share information, communicate, and access like websites, emails, videos, .....

What is a Web Browser?


--------------------
A web browser is a software application that allows users to access and view websites on the
internet.

It retrieves webpages from servers and displays them on devices like computers or
smartphones (browsers)

Google Chrome, Mozilla Firefox, Microsoft Edge, Safari, and Opera

Webpage
-------
A webpage is a single document or file that contains text, images, videos, and so on.

Website
-------
Collection of webpages

HTTP(Hyper Text Transfer Protocol)

[Link]

email : sdfsdf@[Link]
password: sivasoft -->hackers(sivasoft) --> server (databases)

10 Lakhs --> transparent bag --> going to your home

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

creating: Idea Phase (UI / UX)

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] = HTML follows a set of rules(syntax) that browsers understand

[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] 2.0: 1995 (Forms, Tables, Images)

[Link] 3.2: 1997 (CSS Support, JavaScript, Improved Tables and Forms)

[Link] 4.01: 1999 (Scripting Improvements, Multimedia Support, Accessibility Features)

12. XHTML: 2000 (Stricter rules, Better Structure)

13.HTML5: 2014 (Semantic Elements, Multimedia, APIs (Drag and Drop, localStorage,
sessionStorage, Web Workers.....))

Semantic Elements: Elements that have some meaning


ex : <header></header>, <footer></footer>, <nav></nav>,.........

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).

Main Goals of W3C


-----------------
1. Standardization --> Ensures all Web Technologies (HTML, CSS, JAVASCRIPT) work the
same in every browser.
[Link] --> Helps people with disabilities access websites easily.
[Link] & Privacy --> Protects users data and online information.
[Link] --> Ensures Websites work on mobile, desktop , all devices.

[Link] save it with .html(w3c) or .htm extension.

[Link] is a case insensitive language.


ex : <HTML> = <hTMl> = <html> (W3C - lowercase)

[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>,.....

[Link] or Unpaired tag : Tag which consists only opening


ex : <br>, <hr>, <img>.....

NOTE
----
HTML, Angular : <br>, <hr>, <img>
XHTML, React : <br/>, <hr/>, <img/> - Self-Closed Tags

Structure of html
-----------------

title : relevant, 60 characters including spaces(count)

26 : A,B,C....Z

tim berner's lee : h1,h2,...h6

Formatting tags
--------------------
b
strong

Semantic elements : Elements which have some meaning

Deprecated tags (W3C - removed tags)


------------------------------------
center
font
basefont
s
strike
u
applet
isindex
acronym
frame
frameset
noframes
embed
marquee
big
dir
spacer
tt

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

New Line --> Block elements --> ex : h1-h6, p, li,.....


Same Line --> Inline elements --> ex : em, strong, ins, mark.....

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

Empty HTML elements : <br>, <img>, <hr>


HTML elements with no content are called empty elements.

Attributes and Parameters


-------------------------
[Link] usually come in key or name / value pairs
[Link] are the special features of a tag or Attributes provide additional information about
elements.
3.A tag can have one or more attributes.
[Link] are the values(Varies or Changes) that we assign(Store or Hold) to an attribute.

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"

x=10 (10 value assigned(store or hold) to x)


x=20 (20 value assigned(store or hold) to x)
x="Siva" (Siva value assigned(store or hold) to x)

Dhoni - Cricket
Siva - Training, Developer, director

Types of Lists
--------------
[Link] List
[Link] List
[Link] List
[Link] List

Zoom In : Ctrl + plus(500% : Browser and Notepad)


Zoom Out : Ctrl + minus(25%(Browser), 10(Notepad))
Original or Default : Ctrl + 0(100%: Browser and Notepad)

Quotation and citation elements

<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)

256 * 256 * 256 = 1,67,77,216 = 16.7M = 16M

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

CMYK - Cyan (blue) Magenta (pink) Yellow K(Krypton-black) - color printer

table

1px

Unit
----
Distance : cm, m, km,.....
Milk : 1lt

Images, Videos, Screen Sizes: px, em, %

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

Table tag (css)


---------
colgroup
col
rowspan and colspan

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.

anchor tag with iframe tag

Absolute URls (Uniform Resource Locator) vs Relative URLs


---------------------------------------------------------
Absolute URL (a full web address)
Relative URLs or Local Link (without the [Link]

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 : &lt;
Entity numbers look like : &#entity)number; ex : &#60;

NOTE: Entity names are easier to remember than entity numbers

[Link]

⌛​
&#8986​ &#x231A

⏰​
&#8987​ &#x231B

☔​
&#9200​ &#x23F0

☕​
&#9748​ &#x2614

♿​
&#9749​ &#x2615

⚓​
&#9855​ &#x267F

⚡​
&#9875​ &#x2693
&#9889​ &#x26A1
⛱​
⛳​
&#9969​ &#x26F1

⛵​
&#9971​ &#x26F3

⛽​
&#9973​ &#x26F5
&#9981​ &#x26FD

✅​
✂​ &#9986​ &#x2702
&#9989​ &#x2705
✈​ &#9992​ &#x2708


✉​ &#9993​ &#x2709
​ &#9995​ &#x270B
✔​ &#10004​ &#x2714


✖​ &#10006​ &#x2716
​ &#10024​ &#x2728
✳​ &#10035​ &#x2733
✴​ &#10036​ &#x2734
❄​ &#10052​ &#x2744


❇​ &#10055​ &#x2747


​ &#10060​ &#x274C


​ &#10062​ &#x274E


​ &#10067​ &#x2753


​ &#10068​ &#x2754


​ &#10069​ &#x2755
​ &#10071​ &#x2757


❤​ &#10084​ &#x2764


​ &#10133​ &#x2795


​ &#10134​ &#x2796
​ &#10135​ &#x2797
🆗​
🌙​
&#127383​ &#x1F197

🌛​
&#127769​ &#x1F319

🌜​
&#127771​ &#x1F31B

🌝​
&#127772​ &#x1F31C

🌞​
&#127773​ &#x1F31D

🌟​
&#127774​ &#x1F31E

🌡​
&#127775​ &#x1F31F

🌤​
&#127777​ &#x1F321

🌥​
&#127780​ &#x1F324

🌦​
&#127781​ &#x1F325

🌧​
&#127782​ &#x1F326

🌨​
&#127783​ &#x1F327

🌩​
&#127784​ &#x1F328

🌪​
&#127785​ &#x1F329

🌲​
&#127786​ &#x1F32A

🌳​
&#127794​ &#x1F332

🌴​
&#127795​ &#x1F333

🌵​
&#127796​ &#x1F334

🌶​
&#127797​ &#x1F335

🌷​
&#127798​ &#x1F336

🌸​
&#127799​ &#x1F337

🌹​
&#127800​ &#x1F338

🌺​
&#127801​ &#x1F339

🌻​
&#127802​ &#x1F33A

🌼​
&#127803​ &#x1F33B

🌽​
&#127804​ &#x1F33C

🌾​
&#127805​ &#x1F33D

🌿​
&#127806​ &#x1F33E

🍀​
&#127807​ &#x1F33F

🍁​
&#127808​ &#x1F340

🍂​
&#127809​ &#x1F341

🍃​
&#127810​ &#x1F342

🍄​
&#127811​ &#x1F343

🍅​
&#127812​ &#x1F344

🍆​
&#127813​ &#x1F345

🍇​
&#127814​ &#x1F346

🍈​
&#127815​ &#x1F347

🍉​
&#127816​ &#x1F348

🍊​
&#127817​ &#x1F349

🍋​
&#127818​ &#x1F34A

🍌​
&#127819​ &#x1F34B

🍍​
&#127820​ &#x1F34C

🍎​
&#127821​ &#x1F34D
&#127822​ &#x1F34E
🍏​
🍐​
&#127823​ &#x1F34F

🍑​
&#127824​ &#x1F350

🍒​
&#127825​ &#x1F351

🍓​
&#127826​ &#x1F352

🍴​
&#127827​ &#x1F353

🍵​
&#127860​ &#x1F374

🍷​
&#127861​ &#x1F375

🍸​
&#127863​ &#x1F377

🍽​
&#127864​ &#x1F378

🎁​
&#127869​ &#x1F37D

🎂​
&#127873​ &#x1F381

🎃​
&#127874​ &#x1F382

🎄​
&#127875​ &#x1F383

🎗​
&#127876​ &#x1F384

🎧​
&#127895​ &#x1F397

🎨​
&#127911​ &#x1F3A7

🎵​
&#127912​ &#x1F3A8

🎶​
&#127925​ &#x1F3B5

🎷​
&#127926​ &#x1F3B6

🎸​
&#127927​ &#x1F3B7

🎺​
&#127928​ &#x1F3B8

🎻​
&#127930​ &#x1F3BA

🎼​
&#127931​ &#x1F3BB

🎽​
&#127932​ &#x1F3BC

🎾​
&#127933​ &#x1F3BD

🏁​
&#127934​ &#x1F3BE

🏂​
&#127937​ &#x1F3C1

🏃​
&#127938​ &#x1F3C2

🏄​
&#127939​ &#x1F3C3

🏅​
&#127940​ &#x1F3C4

🏆​
&#127941​ &#x1F3C5

🏇​
&#127942​ &#x1F3C6

🏉​
&#127943​ &#x1F3C7

🏊​
&#127945​ &#x1F3C9

🏋​
&#127946​ &#x1F3CA

🏌​
&#127947​ &#x1F3CB

🏍​
&#127948​ &#x1F3CC

🏎​
&#127949​ &#x1F3CD

🏏​
&#127950​ &#x1F3CE

🏐​
&#127951​ &#x1F3CF

🏑​
&#127952​ &#x1F3D0

🏒​
&#127953​ &#x1F3D1

🏓​
&#127954​ &#x1F3D2
&#127955​ &#x1F3D3
🏠​
🏴​
&#127968​ &#x1F3E0

🐁​
&#127988​ &#x1F3F4

🐂​
&#128001​ &#x1F401

🐃​
&#128002​ &#x1F402

🐄​
&#128003​ &#x1F403

🐆​
&#128004​ &#x1F404

🐇​
&#128006​ &#x1F406

🐈​
&#128007​ &#x1F407

🐉​
&#128008​ &#x1F408

🐊​
&#128009​ &#x1F409

🐋​
&#128010​ &#x1F40A

🐌​
&#128011​ &#x1F40B

🐍​
&#128012​ &#x1F40C

🐎​
&#128013​ &#x1F40D

🐏​
&#128014​ &#x1F40E

🐐​
&#128015​ &#x1F40F

🐒​
&#128016​ &#x1F410

🐓​
&#128018​ &#x1F412

🐔​
&#128019​ &#x1F413

🐕​
&#128020​ &#x1F414

🐖​
&#128021​ &#x1F415

🐗​
&#128022​ &#x1F416

🐘​
&#128023​ &#x1F417

🐙​
&#128024​ &#x1F418

🐚​
&#128025​ &#x1F419

🐛​
&#128026​ &#x1F41A

🐜​
&#128027​ &#x1F41B

🐝​
&#128028​ &#x1F41C

🐞​
&#128029​ &#x1F41D

🐟​
&#128030​ &#x1F41E

🐢​
&#128031​ &#x1F41F

🐤​
&#128034​ &#x1F422

🐦​
&#128036​ &#x1F424

🐪​
&#128038​ &#x1F426

🐫​
&#128042​ &#x1F42A

🐬​
&#128043​ &#x1F42B

🐭​
&#128044​ &#x1F42C

🐮​
&#128045​ &#x1F42D

🐯​
&#128046​ &#x1F42E

🐰​
&#128047​ &#x1F42F

🐱​
&#128048​ &#x1F430

🐲​
&#128049​ &#x1F431

🐳​
&#128050​ &#x1F432
&#128051​ &#x1F433
🐴​
🐵​
&#128052​ &#x1F434

🐶​
&#128053​ &#x1F435

🐷​
&#128054​ &#x1F436

🐸​
&#128055​ &#x1F437

🐹​
&#128056​ &#x1F438

🐺​
&#128057​ &#x1F439

🐻​
&#128058​ &#x1F43A

🐼​
&#128059​ &#x1F43B

🐽​
&#128060​ &#x1F43C

👀​
&#128061​ &#x1F43D

👂​
&#128064​ &#x1F440

👆​
&#128066​ &#x1F442

👇​
&#128070​ &#x1F446

👈​
&#128071​ &#x1F447

👉​
&#128072​ &#x1F448

👊​
&#128073​ &#x1F449

👋​
&#128074​ &#x1F44A

👌​
&#128075​ &#x1F44B

👍​
&#128076​ &#x1F44C

👎​
&#128077​ &#x1F44D

👏​
&#128078​ &#x1F44E

👐​
&#128079​ &#x1F44F

👑​
&#128080​ &#x1F450

👒​
&#128081​ &#x1F451

👓​
&#128082​ &#x1F452

👔​
&#128083​ &#x1F453

👕​
&#128084​ &#x1F454

👖​
&#128085​ &#x1F455

👗​
&#128086​ &#x1F456

👘​
&#128087​ &#x1F457

👙​
&#128088​ &#x1F458

👚​
&#128089​ &#x1F459

👛​
&#128090​ &#x1F45A

👜​
&#128091​ &#x1F45B

👝​
&#128092​ &#x1F45C

👞​
&#128093​ &#x1F45D

👟​
&#128094​ &#x1F45E

👠​
&#128095​ &#x1F45F

👡​
&#128096​ &#x1F460

👢​
&#128097​ &#x1F461

👣​
&#128098​ &#x1F462

👤​
&#128099​ &#x1F463

👥​
&#128100​ &#x1F464
&#128101​ &#x1F465
👦​
👧​
&#128102​ &#x1F466

👨​
&#128103​ &#x1F467

👩​
&#128104​ &#x1F468

👪​
&#128105​ &#x1F469

👫​
&#128106​ &#x1F46A

👬​
&#128107​ &#x1F46B

👭​
&#128108​ &#x1F46C

👮​
&#128109​ &#x1F46D

👰​
&#128110​ &#x1F46E

👱​
&#128112​ &#x1F470

👲​
&#128113​ &#x1F471

👳​
&#128114​ &#x1F472

👴​
&#128115​ &#x1F473

👵​
&#128116​ &#x1F474

👶​
&#128117​ &#x1F475

👷​
&#128118​ &#x1F476

👸​
&#128119​ &#x1F477

👹​
&#128120​ &#x1F478

👻​
&#128121​ &#x1F479

👽​
&#128123​ &#x1F47B

👾​
&#128125​ &#x1F47D

👿​
&#128126​ &#x1F47E

💀​
&#128127​ &#x1F47F

💉​
&#128128​ &#x1F480

💊​
&#128137​ &#x1F489

💌​
&#128138​ &#x1F48A

💎​
&#128140​ &#x1F48C

💑​
&#128142​ &#x1F48E

💓​
&#128145​ &#x1F491

💔​
&#128147​ &#x1F493

💕​
&#128148​ &#x1F494

💖​
&#128149​ &#x1F495

💗​
&#128150​ &#x1F496

💘​
&#128151​ &#x1F497

💙​
&#128152​ &#x1F498

💚​
&#128153​ &#x1F499

💛​
&#128154​ &#x1F49A

💜​
&#128155​ &#x1F49B

💝​
&#128156​ &#x1F49C

💞​
&#128157​ &#x1F49D

💟​
&#128158​ &#x1F49E

💤​
&#128159​ &#x1F49F

💥​
&#128164​ &#x1F4A4
&#128165​ &#x1F4A5
💩​
💪​
&#128169​ &#x1F4A9

💬​
&#128170​ &#x1F4AA

💭​
&#128172​ &#x1F4AC

💮​
&#128173​ &#x1F4AD

💯​
&#128174​ &#x1F4AE

💰​
&#128175​ &#x1F4AF

💲​
&#128176​ &#x1F4B0

💳​
&#128178​ &#x1F4B2

💼​
&#128179​ &#x1F4B3

💽​
&#128188​ &#x1F4BC

💾​
&#128189​ &#x1F4BD

📂​
&#128190​ &#x1F4BE

📄​
&#128194​ &#x1F4C2

📅​
&#128196​ &#x1F4C4

📈​
&#128197​ &#x1F4C5

📉​
&#128200​ &#x1F4C8

📊​
&#128201​ &#x1F4C9

📋​
&#128202​ &#x1F4CA

📌​
&#128203​ &#x1F4CB

📍​
&#128204​ &#x1F4CC

📎​
&#128205​ &#x1F4CD

📏​
&#128206​ &#x1F4CE

📐​
&#128207​ &#x1F4CF

📜​
&#128208​ &#x1F4D0

📝​
&#128220​ &#x1F4DC

📞​
&#128221​ &#x1F4DD

📡​
&#128222​ &#x1F4DE

📢​
&#128225​ &#x1F4E1

📣​
&#128226​ &#x1F4E2

📵​
&#128227​ &#x1F4E3

📶​
&#128245​ &#x1F4F5

📷​
&#128246​ &#x1F4F6

📹​
&#128247​ &#x1F4F7

📺​
&#128249​ &#x1F4F9

📻​
&#128250​ &#x1F4FA

🔅​
&#128251​ &#x1F4FB

🔆​
&#128261​ &#x1F505

🔇​
&#128262​ &#x1F506

🔈​
&#128263​ &#x1F507

🔉​
&#128264​ &#x1F508

🔊​
&#128265​ &#x1F509

🔋​
&#128266​ &#x1F50A

🔌​
&#128267​ &#x1F50B
&#128268​ &#x1F50C
🔍​
🔎​
&#128269​ &#x1F50D

🔐​
&#128270​ &#x1F50E

🔑​
&#128272​ &#x1F510

🔒​
&#128273​ &#x1F511

🔓​
&#128274​ &#x1F512

🔔​
&#128275​ &#x1F513

🔕​
&#128276​ &#x1F514

🔗​
&#128277​ &#x1F515

🔘​
&#128279​ &#x1F517

🔞​
&#128280​ &#x1F518

🔥​
&#128286​ &#x1F51E

🔦​
&#128293​ &#x1F525

🔧​
&#128294​ &#x1F526

🔨​
&#128295​ &#x1F527

🔪​
&#128296​ &#x1F528

🔫​
&#128298​ &#x1F52A

🔬​
&#128299​ &#x1F52B

🔭​
&#128300​ &#x1F52C

🔯​
&#128301​ &#x1F52D

🔺​
&#128303​ &#x1F52F

🔻​
&#128314​ &#x1F53A

🔼​
&#128315​ &#x1F53B

🔽​
&#128316​ &#x1F53C

🕶​
&#128317​ &#x1F53D

🕷​
&#128374​ &#x1F576

🕸​
&#128375​ &#x1F577

🖊​
&#128376​ &#x1F578

🖤​
&#128394​ &#x1F58A

🖱​
&#128420​ &#x1F5A4

🗣​
&#128433​ &#x1F5B1

🗨​
&#128483​ &#x1F5E3

🗯​
&#128488​ &#x1F5E8

🗳​
&#128495​ &#x1F5EF

🗼​
&#128499​ &#x1F5F3

🗽​
&#128508​ &#x1F5FC

😀​
&#128509​ &#x1F5FD

😁​
&#128512​ &#x1F600

😂​
&#128513​ &#x1F601

😃​
&#128514​ &#x1F602

😄​
&#128515​ &#x1F603

😅​
&#128516​ &#x1F604

😆​
&#128517​ &#x1F605

😇​
&#128518​ &#x1F606
&#128519​ &#x1F607
😈​
😉​
&#128520​ &#x1F608

😊​
&#128521​ &#x1F609

😋​
&#128522​ &#x1F60A

😌​
&#128523​ &#x1F60B

😍​
&#128524​ &#x1F60C

😎​
&#128525​ &#x1F60D

😏​
&#128526​ &#x1F60E

😐​
&#128527​ &#x1F60F

😑​
&#128528​ &#x1F610

😒​
&#128529​ &#x1F611

😓​
&#128530​ &#x1F612

😔​
&#128531​ &#x1F613

😕​
&#128532​ &#x1F614

😖​
&#128533​ &#x1F615

😗​
&#128534​ &#x1F616

😘​
&#128535​ &#x1F617

😙​
&#128536​ &#x1F618

😚​
&#128537​ &#x1F619

😛​
&#128538​ &#x1F61A

😜​
&#128539​ &#x1F61B

😝​
&#128540​ &#x1F61C

😞​
&#128541​ &#x1F61D

😟​
&#128542​ &#x1F61E

😠​
&#128543​ &#x1F61F

😡​
&#128544​ &#x1F620

😢​
&#128545​ &#x1F621

😣​
&#128546​ &#x1F622

😤​
&#128547​ &#x1F623

😥​
&#128548​ &#x1F624

😦​
&#128549​ &#x1F625

😧​
&#128550​ &#x1F626

😨​
&#128551​ &#x1F627

😩​
&#128552​ &#x1F628

😪​
&#128553​ &#x1F629

😫​
&#128554​ &#x1F62A

😬​
&#128555​ &#x1F62B

😭​
&#128556​ &#x1F62C

😮​
&#128557​ &#x1F62D

😯​
&#128558​ &#x1F62E

😰​
&#128559​ &#x1F62F

😱​
&#128560​ &#x1F630

😲​
&#128561​ &#x1F631

😳​
&#128562​ &#x1F632
&#128563​ &#x1F633
😴​
😵​
&#128564​ &#x1F634

😶​
&#128565​ &#x1F635

😷​
&#128566​ &#x1F636

😸​
&#128567​ &#x1F637

😹​
&#128568​ &#x1F638

😺​
&#128569​ &#x1F639

😻​
&#128570​ &#x1F63A

😼​
&#128571​ &#x1F63B

😽​
&#128572​ &#x1F63C

😾​
&#128573​ &#x1F63D

😿​
&#128574​ &#x1F63E

🙀​
&#128575​ &#x1F63F

🙁​
&#128576​ &#x1F640

🙂​
&#128577​ &#x1F641

🙃​
&#128578​ &#x1F642

🙄​
&#128579​ &#x1F643

🙅​
&#128580​ &#x1F644

🙆​
&#128581​ &#x1F645

🙇​
&#128582​ &#x1F646

🙈​
&#128583​ &#x1F647

🙉​
&#128584​ &#x1F648

🙊​
&#128585​ &#x1F649

🙋​
&#128586​ &#x1F64A

🙌​
&#128587​ &#x1F64B

🙍​
&#128588​ &#x1F64C

🙎​
&#128589​ &#x1F64D

🙏​
&#128590​ &#x1F64E

🚀​
&#128591​ &#x1F64F

🚁​
&#128640​ &#x1F680

🚂​
&#128641​ &#x1F681

🚃​
&#128642​ &#x1F682

🚄​
&#128643​ &#x1F683

🚅​
&#128644​ &#x1F684

🚆​
&#128645​ &#x1F685

🚇​
&#128646​ &#x1F686

🚈​
&#128647​ &#x1F687

🚉​
&#128648​ &#x1F688

🚊​
&#128649​ &#x1F689

🚋​
&#128650​ &#x1F68A

🚌​
&#128651​ &#x1F68B

🚍​
&#128652​ &#x1F68C

🚎​
&#128653​ &#x1F68D

🚐​
&#128654​ &#x1F68E
&#128656​ &#x1F690
🚑​
🚒​
&#128657​ &#x1F691

🚓​
&#128658​ &#x1F692

🚔​
&#128659​ &#x1F693

🚕​
&#128660​ &#x1F694

🚖​
&#128661​ &#x1F695

🚗​
&#128662​ &#x1F696

🚘​
&#128663​ &#x1F697

🚙​
&#128664​ &#x1F698

🚚​
&#128665​ &#x1F699

🚛​
&#128666​ &#x1F69A

🚩​
&#128667​ &#x1F69B

🚪​
&#128681​ &#x1F6A9

🚫​
&#128682​ &#x1F6AA

🚬​
&#128683​ &#x1F6AB

🚭​
&#128684​ &#x1F6AC

🚮​
&#128685​ &#x1F6AD

🚯​
&#128686​ &#x1F6AE

🚰​
&#128687​ &#x1F6AF

🚱​
&#128688​ &#x1F6B0

🚲​
&#128689​ &#x1F6B1

🚳​
&#128690​ &#x1F6B2

🚴​
&#128691​ &#x1F6B3

🚵​
&#128692​ &#x1F6B4

🚶​
&#128693​ &#x1F6B5

🚷​
&#128694​ &#x1F6B6

🚸​
&#128695​ &#x1F6B7

🚹​
&#128696​ &#x1F6B8

🚺​
&#128697​ &#x1F6B9

🚽​
&#128698​ &#x1F6BA

🚿​
&#128701​ &#x1F6BD

🛁​
&#128703​ &#x1F6BF

🛌​
&#128705​ &#x1F6C1

🛒​
&#128716​ &#x1F6CC

🛠​
&#128722​ &#x1F6D2

🤐​
&#128736​ &#x1F6E0

🤑​
&#129296​ &#x1F910

🤒​
&#129297​ &#x1F911

🤓​
&#129298​ &#x1F912

🤔​
&#129299​ &#x1F913

🤕​
&#129300​ &#x1F914

🤖​
&#129301​ &#x1F915

🤗​
&#129302​ &#x1F916

🤘​
&#129303​ &#x1F917
&#129304​ &#x1F918
🤙​
🤚​
&#129305​ &#x1F919

🤟​
&#129306​ &#x1F91A

🤠​
&#129311​ &#x1F91F

🤡​
&#129312​ &#x1F920

🤢​
&#129313​ &#x1F921

🤣​
&#129314​ &#x1F922

🤤​
&#129315​ &#x1F923

🤥​
&#129316​ &#x1F924

🤦​
&#129317​ &#x1F925

🤧​
&#129318​ &#x1F926

🤨​
&#129319​ &#x1F927

🤩​
&#129320​ &#x1F928

🤪​
&#129321​ &#x1F929

🤫​
&#129322​ &#x1F92A

🤬​
&#129323​ &#x1F92B

🤭​
&#129324​ &#x1F92C

🤮​
&#129325​ &#x1F92D

🤯​
&#129326​ &#x1F92E

🤰​
&#129327​ &#x1F92F

🤱​
&#129328​ &#x1F930

🤲​
&#129329​ &#x1F931

🤴​
&#129330​ &#x1F932

🤵​
&#129332​ &#x1F934

🤶​
&#129333​ &#x1F935

🥇​
&#129334​ &#x1F936

🥈​
&#129351​ &#x1F947

🥉​
&#129352​ &#x1F948

🥎​
&#129353​ &#x1F949

🥕​
&#129358​ &#x1F94E

🥣​
&#129365​ &#x1F955

🧐​
&#129379​ &#x1F963

🧑​
&#129488​ &#x1F9D0

🧒​
&#129489​ &#x1F9D1

🧓​
&#129490​ &#x1F9D2

🧔​
&#129491​ &#x1F9D3

🧕​
&#129492​ &#x1F9D4

🧖​
&#129493​ &#x1F9D5

🧘​
&#129494​ &#x1F9D6

🧙​
&#129496​ &#x1F9D8

🧚​
&#129497​ &#x1F9D9

🧛​
&#129498​ &#x1F9DA

🧝​
&#129499​ &#x1F9DB

🧞​
&#129501​ &#x1F9DD
&#129502​ &#x1F9DE
🧟​
🧡​
&#129503​ &#x1F9DF
&#129505​ &#x1F9E1

Computer Code Tags


----------------------------
[Link] : defines a piece of computer code (html tags, js.....)
[Link] : defines keyboard input
[Link] : defines sample output from a computer program
[Link] : defines a variable in programming or in a mathematical expression (italic).
[Link] : defines preformatted text (however we type on the editor(notepad, vscode) like spaces
and linebreaks)

NOTE: default font is times new roman but in case of code, kbd, samp and pre monospace

div and span tags : css

HTML Style Guide - XHTML


----------------
Guidelines and Tips for creating good HTML code.

NOTE: Consistent, clean, and tidy HTML code makes it easier for others to read and
understand our code.

[Link] Declare Document Type


------------------------------
<!DOCTYPE html> (html5)
<html>

[Link] Lowercase element names


-----------------------------
<body>
<p>------------</p>
</body>

[Link] all HTML Elements


-------------------------
<p>This is a paragraph</p>
[Link] Lowercase Attribute and Parameter names
---------------------------------------------
<p align="center">This is a paragraph</p>

[Link] Quote Attribute values


---------------------------------------------
<p align="center">This is a paragraph</p>
<p align='center'>This is a paragraph</p>

[Link] Specify alt, width, and height for images


--------------------------------------------------
<img src="images/[Link]" alt="Siva Soft Logo" style="width:128px;height:128px;">

[Link] and Equal Signs


------------------------
<p align="center" >This is a paragraph</p>
<img src="images/[Link]" alt="Siva Soft Logo" style="width:128px;height:128px;">

[Link] Long Code Lines


-----------------------
When using a HTML editor, it is NOT convenient to scroll right and left to read the HTML code.
Try to avoid

[Link] Lines and Indentation


---------------------------------------

[Link] Skip the <html>, <body> and <title> element


----------------------------------------------------

[Link] Empty HTML Elements? (optional)


-----------------------------------------
XHTML, React: <br/>, <hr/>
HTML, Angular: <br>, <hr>

[Link] the lang Attribute


-------------------------
<html lang="en-us">

13. Setting the Viewport (Bootstrap - responsive website - screen sizes like smartphones, Tabs,
Laptop / Desktops)
[Link] Comments

[Link] Stylesheets and Scripts (type attribute is deprecated)


---------------------------------------------------------------
<link rel="stylesheet" href="css/[Link]">
<script></script>
<style></style>

[Link] Lower Case File Names


----------------------------
Servers (Apache, Unix) : [Link] cannot be accessed as [Link]
Servers (IISS) : [Link] can be accessed as [Link]

[Link] extension : .html or .htm

[Link]
------------
[Link], [Link], [Link] (Landing or home is [Link])

[Link] starting with number but can include numbers


[Link] using _ and spaces in file names

siva soft training = sivasofttraining


siva_soft_training = sivasofttraining
siva-soft-training = siva soft training

What is HTML Encoding (Character Sets)?


--------------------------------------------------------
When we create a webpage using HTML, we add text, symbols, and special characters.

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.

<meta charset="UTF-8"> (W3C)

Why use UTF-8?


----------------------
UTF-8 stands for Unicode Transformation Format - 8 bit

It is the most recommended character set in HTML5

It supports almost all languages and symbols in the world!

That's why modern websites use UTF-8

Examples : English, Hindi, Chinese, Arabic, Emojis, Symbols @ $ %

UTF-8 is a variable-length encoding(encoding is the process of converting human-readable data


(like text or images)) system, meaning each character is stored using 1 to 4 bytes, depending
on the character. Here’s how it works:

- 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)

ASCII is a very basic character set.

It only includes 128 characters (0-127)

it supports
-----------
English Letters (A-Z, a-z)
Numbers (0-9)
Some special characters : !, $, @, <, >

NOTE: So ASCII is only good for simple English content

Other character sets (Older)


----------------------------

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

UTF-16 : Applications (other than browsers)

[Link] - best website to show with and without meta charset

<!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

online python training in Ameerpet

Traffic = More Vistors

[Link]
--------
<meta name="author" content="sivasoft">

[Link] (Responsive Websites)


--------------------------------
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

[Link](Page Auto-Refresh)
----------------------------
<meta http-equiv="refresh" content="30">

[Link]
--------
<meta name="robots" content="index, follow">
<meta name="robots" content="noindex, nofollow">

index - Allow the page to be indexed by search engines


follow - Allow links on the page to be followed by search engines
noindex - Prevents the page from being indexed
nofollow - Prevents search engines from following the links.

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.

<meta name="robots" content="index, follow">


This tag tells search engines: "You can add this webpage to your search results (index it)."
It also says: "Feel free to crawl and follow any links on this page to find other content."

<meta name="robots" content="noindex, nofollow">


This tag instructs search engines: "Do not include this webpage in your search results (don't
index it)."
It further directs: "Also, do not crawl or follow any of the links found on this page."

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

firstname,lastname,password - Key or Name (fixed)


Siva, Soft, 123@asdsA - Value (varies or changes)

[Link] the form data to URL, in name or key / value pairs


[Link] use GET to send sensitive data!(password, credit, debit...) - the submitted form data is
visible in the URL!
[Link] length of a URL is limited(2048 characters)
[Link] for form submissions where a user wants to bookmark the result
[Link] is good for non-secure data, like query strings in google.

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

New Attributes for <form>


-------------------------
autocomplete
novalidate
target
formaction
formenctype
formmethod
formnovalidate
formtarget
accept-charset

New Attributes for <input>


--------------------------
autocomplete
autofocus
form
list
min and max
multiple
pattern (regexp)
placeholder
readonly
required
step
size
maxLength
inputmode
formaction
formenctype
formmethod
formnovalidate
formtarget

var x=10 //number


var x="siva" // string
var x="10" // string

10+20 = 30
"siva"+"soft" = sivasoft
"10"+"20" = 1020

<input> : input fields or form fields


<textarea></textarea>, <select></select>, <form></form> : form tags

<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>

What is HTML URL ENCODING?


--------------------------
when we send data through a URL(for example, in a form submission or API request(react,
angular)), some characters are not allowed in URLs directly.

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.

This process is called URL encoding.

How it Works?
--------------
Special characters are replaced with a percent symbol followed by two hexadecimal digits
(space - %20).

These hexadecimal digits represent the ASCII value of that character.

Character​ ​ ​ ​ Encoded as
---------------------------------------------------
Space "​ "​ ​ ​ ​ %20 or +
!​ ​ ​ ​ ​ %21​
#​ ​ ​ ​ ​ %23
$​ ​ ​ ​ ​ #24​
%​ ​ ​ ​ ​ %25
&​ ​ ​ ​ ​ %26
@​ ​ ​ ​ ​ %40
/​ ​ ​ ​ ​ %2F

Why this URL encoding is important?


-----------------------------------
[Link]
[Link]

[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

Differences between HTML and XHTML


----------------------------------
HTML​ ​ ​ ​ ​ XHTML
----------------------------------------------------------------------------------------
doctype is optional​ ​ ​ doctype is mandatory
<b><i>----</b></i>​ ​ ​ <b><i>-----</i></b>
<p>-------​ ​ ​ ​ <p>-------</p>
<P>----</p>​ ​ ​ ​ <p>-------</p>
<br>, <hr>, <img>​ ​ ​ <br/>, <hr/>, <img/> - self closed
<IMG SRC=[Link]>​​ ​ <img src="[Link]"> or
​ ​ ​ ​ ​ <img src='[Link]'>
<hr noshade>​ ​ ​ ​ <hr noshade="noshade" />
<input type="text">​ ​ ​ <input type="text"/>
<input type="checkbox" checked>​ ​ <input type="checkbox" checked="checked"/>

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>

HTML, Angular : <br>, <hr>, <img>

XHTML, REACT : <br/>, <hr/>, <img/>


#ff00ff - 32 bit color

#f0f - 64 bit

You might also like