SlideShare a Scribd company logo
BASIC
INTRODUCTION TO
HTML AND PHP
TAGS
www.lucideus.com KAILASH KUMAR
NSIC Campus,Okhla PhaseIII Lucideus Grade1(5-7)
New Delhi-1100
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 1
INDEX
1-HTML INDRODUCTION
1.1-WHAT IS HTML
1.2-HTML TAGS
1.2.1-TITLE TAG
1.2.2-FORM TAG
1.2.3-TABLE TAG
1.2.4-BUTTON TAG
1.2.5-HEADING TAG
1.2.6-BR TAG
1.2.7-TEXT AREA
2-PHP INDRODUCTION
2.1-WHAT IS PHP
2.2-WHAT IS A PHP FILE
3-CALCULATOR USING HTML
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 2
1-HTML Introduction
1.1-What is HTML?
HTML is a markup language for describing web documents (web
pages).
 HTML stands for Hyper Text Markup Language
 A markup language is a set of markup tags
 HTML documents are described by HTML tags
 Each HTML tag describes different document content
Example:-
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 3
HTML page structure
1.2-HTML Tags
HTML tags are keywords (tag names) surrounded by angle brackets:
<tagname>content</tagname>
 HTML tags normally come in pairs like <p> and </p>
 The first tag in a pair is the start tag, the second tag is the end tag
 The end tag is written like the start tag, but with a forward
slash inserted before the tag name
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 4
1.2.1-TITLE TAG
The <title> tag is required in all HTML documents and it defines the
title of the document.
The <title> element:
 Defines a title in the browser toolbar
 Provides a title for the page when it is added to favorites
 Displays a title for the page in search-engine results
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 5
1.2.2-FORM TAG
The <form> tag is used to create an HTML form for user input.
The <form> element can contain one or more of the following form
elements:
 <input>,<textarea>,<button>,<select>,<option>..etc
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 6
1.2.3-TABLE TAG
The <table> tag defines an HTML table.
An HTML table consists of the <table> element and one or
more <tr>, <th>, and <td> elements.
The <tr> element defines a table row, the <th> element defines a table
header, and the <td> element defines a table cell.
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 7
1.2.4-BUTTON TAG
The <button> tag defines a clickable button.
Inside a <button> element you can put content, like text or images. This
is the difference between this element and buttons created with the
<input> element.
Always specify the type attribute for a <button> element. Different
browsers use different default types for the <button> element.
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 8
1.2.5-HEADING TAG
The <h1> to <h6> tags are used to define HTML headings.
<h1> defines the most important heading. <h6> defines the least
important heading.
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 9
1.2.6-BR TAG
The <br> tag inserts a single line break.
The <br> tag is an empty tag which means that it has no end tag.
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 10
1.2.7-TEXT AREA TAG
The <textarea> tag defines a multi-line text input control.
A text area can hold an unlimited number of characters, and the text
renders in a fixed-width font (usually Courier).
The size of a text area can be specified by the cols and rows attributes,
or even better; through CSS' height and width properties
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 11
2-PHP Introduction
PHP is a server scripting language, and a powerful tool for making
dynamic and interactive Web pages.
PHP is a widely-used, free, and efficient
2.1-What is PHP?
 PHP is an acronym for "PHP: Hypertext Preprocessor"
 PHP is a widely-used, open source scripting language
 PHP scripts are executed on the server
 PHP is free to download and use
2.2-What is a PHP File?
 PHP files can contain text, HTML, CSS, JavaScript, and PHP code
 PHP code are executed on the server, and the result is returned to
the browser as plain HTML
 PHP files have extension ".php"
What Can PHP Do?
 PHP can generate dynamic page content
 PHP can create, open, read, write, delete, and close files on the
server
 PHP can collect form data
 PHP can send and receive cookies
 PHP can add, delete, modify data in your database
 PHP can be used to control user-access
 PHP can encrypt data
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 12
Basic PHP Syntax
A PHP script can be placed anywhere in the document.
A PHP script starts with <?php and ends with ?>:
<?php
// PHP code goes here
?>
The default file extension for PHP files is ".php".
A PHP file normally contains HTML tags, and some PHP scripting
code.
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 13
3-CODING OF CALCULATOR IN HTML:-
INTRODUCTION TO HTML AND PHP TAGS
www.lucideus.com Page 14
REFERENCES
1-http://www.w3schools.com
2-http://www.tutorialspoint.com/html/html_basic_tags.htm

More Related Content

What's hot

Database Connectivity in PHP
Database Connectivity in PHPDatabase Connectivity in PHP
Database Connectivity in PHP
Taha Malampatti
 
Advanced Python : Decorators
Advanced Python : DecoratorsAdvanced Python : Decorators
Advanced Python : Decorators
Bhanwar Singh Meena
 
PHP slides
PHP slidesPHP slides
PHP slides
Farzad Wadia
 
Python Collections Tutorial | Edureka
Python Collections Tutorial | EdurekaPython Collections Tutorial | Edureka
Python Collections Tutorial | Edureka
Edureka!
 
File Uploading in PHP
File Uploading in PHPFile Uploading in PHP
File Uploading in PHP
Idrees Hussain
 
PHP-MySQL Database Connectivity Using XAMPP Server
PHP-MySQL Database Connectivity Using XAMPP ServerPHP-MySQL Database Connectivity Using XAMPP Server
PHP-MySQL Database Connectivity Using XAMPP Server
Rajiv Bhatia
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
Anjan Banda
 
PHP FUNCTIONS
PHP FUNCTIONSPHP FUNCTIONS
PHP FUNCTIONS
Zeeshan Ahmed
 
Introduction to xampp
Introduction to xamppIntroduction to xampp
Introduction to xampp
Jin Castor
 
Php string function
Php string function Php string function
Php string function
Ravi Bhadauria
 
Generators In Python
Generators In PythonGenerators In Python
Generators In Python
Simplilearn
 
Php 1
Php 1Php 1
Operators php
Operators phpOperators php
Operators php
Chandni Pm
 
PHP - Introduction to PHP Fundamentals
PHP -  Introduction to PHP FundamentalsPHP -  Introduction to PHP Fundamentals
PHP - Introduction to PHP Fundamentals
Vibrant Technologies & Computers
 
Regular Expressions in PHP
Regular Expressions in PHPRegular Expressions in PHP
Regular Expressions in PHP
Andrew Kandels
 
Java Exception handling
Java Exception handlingJava Exception handling
Java Exception handling
kamal kotecha
 
Php Error Handling
Php Error HandlingPhp Error Handling
Php Error Handling
mussawir20
 
Hashing data
Hashing dataHashing data
Hashing data
umair khan
 
Introduction to JavaScript Basics.
Introduction to JavaScript Basics.Introduction to JavaScript Basics.
Introduction to JavaScript Basics.
Hassan Ahmed Baig - Web Developer
 
Php array
Php arrayPhp array
Php array
Nikul Shah
 

What's hot (20)

Database Connectivity in PHP
Database Connectivity in PHPDatabase Connectivity in PHP
Database Connectivity in PHP
 
Advanced Python : Decorators
Advanced Python : DecoratorsAdvanced Python : Decorators
Advanced Python : Decorators
 
PHP slides
PHP slidesPHP slides
PHP slides
 
Python Collections Tutorial | Edureka
Python Collections Tutorial | EdurekaPython Collections Tutorial | Edureka
Python Collections Tutorial | Edureka
 
File Uploading in PHP
File Uploading in PHPFile Uploading in PHP
File Uploading in PHP
 
PHP-MySQL Database Connectivity Using XAMPP Server
PHP-MySQL Database Connectivity Using XAMPP ServerPHP-MySQL Database Connectivity Using XAMPP Server
PHP-MySQL Database Connectivity Using XAMPP Server
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
PHP FUNCTIONS
PHP FUNCTIONSPHP FUNCTIONS
PHP FUNCTIONS
 
Introduction to xampp
Introduction to xamppIntroduction to xampp
Introduction to xampp
 
Php string function
Php string function Php string function
Php string function
 
Generators In Python
Generators In PythonGenerators In Python
Generators In Python
 
Php 1
Php 1Php 1
Php 1
 
Operators php
Operators phpOperators php
Operators php
 
PHP - Introduction to PHP Fundamentals
PHP -  Introduction to PHP FundamentalsPHP -  Introduction to PHP Fundamentals
PHP - Introduction to PHP Fundamentals
 
Regular Expressions in PHP
Regular Expressions in PHPRegular Expressions in PHP
Regular Expressions in PHP
 
Java Exception handling
Java Exception handlingJava Exception handling
Java Exception handling
 
Php Error Handling
Php Error HandlingPhp Error Handling
Php Error Handling
 
Hashing data
Hashing dataHashing data
Hashing data
 
Introduction to JavaScript Basics.
Introduction to JavaScript Basics.Introduction to JavaScript Basics.
Introduction to JavaScript Basics.
 
Php array
Php arrayPhp array
Php array
 

Similar to Basic introduction to html and php tags

BSC notes of _HTML_Easyto understand lease see.pptx
BSC notes of _HTML_Easyto understand lease see.pptxBSC notes of _HTML_Easyto understand lease see.pptx
BSC notes of _HTML_Easyto understand lease see.pptx
VikasTuwar1
 
Vskills certified html5 developer Notes
Vskills certified html5 developer NotesVskills certified html5 developer Notes
Vskills certified html5 developer Notes
Vskills
 
HTML
HTMLHTML
PHP form tutorial
PHP form tutorialPHP form tutorial
PHP form tutorial
Promb
 
HTML practical file
HTML practical fileHTML practical file
HTML practical file
Kuldeep Sharma
 
HTML Overview
HTML OverviewHTML Overview
HTML Overview
To Sum It Up
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
actanimation
 
Module 1
Module 1Module 1
Module 1
Xiyue Yang
 
41915024 html-5
41915024 html-541915024 html-5
41915024 html-5
Nitin Samariya
 
HTML (Hyper Text Markup Language) Project
HTML (Hyper Text Markup Language) Project HTML (Hyper Text Markup Language) Project
HTML (Hyper Text Markup Language) Project
Ankit Gupta
 
HTML.pdf
HTML.pdfHTML.pdf
Iwt module 1
Iwt  module 1Iwt  module 1
Iwt module 1
SANTOSH RATH
 
Html.pptx
Html.pptxHtml.pptx
Html.pptx
SuhaibKhan62
 
shobhit training report (3) (4).pdf report
shobhit training report (3) (4).pdf reportshobhit training report (3) (4).pdf report
shobhit training report (3) (4).pdf report
poojaranga2911
 
About html
About htmlAbout html
About html
Manvigangwar
 
Web topic 2 html
Web topic 2  htmlWeb topic 2  html
Web topic 2 html
CK Yang
 
Lectuer html1
Lectuer  html1Lectuer  html1
Lectuer html1
Nawal Alragawi
 
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
ZahouAmel1
 
Html b smart
Html b smartHtml b smart
Html b smart
NaumanShekh
 
IT8005 Electronic Commerces Notes UNIT 1
IT8005 Electronic Commerces Notes UNIT 1IT8005 Electronic Commerces Notes UNIT 1
IT8005 Electronic Commerces Notes UNIT 1
ArunsunaiComputer
 

Similar to Basic introduction to html and php tags (20)

BSC notes of _HTML_Easyto understand lease see.pptx
BSC notes of _HTML_Easyto understand lease see.pptxBSC notes of _HTML_Easyto understand lease see.pptx
BSC notes of _HTML_Easyto understand lease see.pptx
 
Vskills certified html5 developer Notes
Vskills certified html5 developer NotesVskills certified html5 developer Notes
Vskills certified html5 developer Notes
 
HTML
HTMLHTML
HTML
 
PHP form tutorial
PHP form tutorialPHP form tutorial
PHP form tutorial
 
HTML practical file
HTML practical fileHTML practical file
HTML practical file
 
HTML Overview
HTML OverviewHTML Overview
HTML Overview
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
Module 1
Module 1Module 1
Module 1
 
41915024 html-5
41915024 html-541915024 html-5
41915024 html-5
 
HTML (Hyper Text Markup Language) Project
HTML (Hyper Text Markup Language) Project HTML (Hyper Text Markup Language) Project
HTML (Hyper Text Markup Language) Project
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Iwt module 1
Iwt  module 1Iwt  module 1
Iwt module 1
 
Html.pptx
Html.pptxHtml.pptx
Html.pptx
 
shobhit training report (3) (4).pdf report
shobhit training report (3) (4).pdf reportshobhit training report (3) (4).pdf report
shobhit training report (3) (4).pdf report
 
About html
About htmlAbout html
About html
 
Web topic 2 html
Web topic 2  htmlWeb topic 2  html
Web topic 2 html
 
Lectuer html1
Lectuer  html1Lectuer  html1
Lectuer html1
 
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
 
Html b smart
Html b smartHtml b smart
Html b smart
 
IT8005 Electronic Commerces Notes UNIT 1
IT8005 Electronic Commerces Notes UNIT 1IT8005 Electronic Commerces Notes UNIT 1
IT8005 Electronic Commerces Notes UNIT 1
 

Recently uploaded

CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
nooriasukmaningtyas
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 

Recently uploaded (20)

CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 

Basic introduction to html and php tags

  • 1. BASIC INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com KAILASH KUMAR NSIC Campus,Okhla PhaseIII Lucideus Grade1(5-7) New Delhi-1100
  • 2. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 1 INDEX 1-HTML INDRODUCTION 1.1-WHAT IS HTML 1.2-HTML TAGS 1.2.1-TITLE TAG 1.2.2-FORM TAG 1.2.3-TABLE TAG 1.2.4-BUTTON TAG 1.2.5-HEADING TAG 1.2.6-BR TAG 1.2.7-TEXT AREA 2-PHP INDRODUCTION 2.1-WHAT IS PHP 2.2-WHAT IS A PHP FILE 3-CALCULATOR USING HTML
  • 3. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 2 1-HTML Introduction 1.1-What is HTML? HTML is a markup language for describing web documents (web pages).  HTML stands for Hyper Text Markup Language  A markup language is a set of markup tags  HTML documents are described by HTML tags  Each HTML tag describes different document content Example:-
  • 4. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 3 HTML page structure 1.2-HTML Tags HTML tags are keywords (tag names) surrounded by angle brackets: <tagname>content</tagname>  HTML tags normally come in pairs like <p> and </p>  The first tag in a pair is the start tag, the second tag is the end tag  The end tag is written like the start tag, but with a forward slash inserted before the tag name
  • 5. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 4 1.2.1-TITLE TAG The <title> tag is required in all HTML documents and it defines the title of the document. The <title> element:  Defines a title in the browser toolbar  Provides a title for the page when it is added to favorites  Displays a title for the page in search-engine results
  • 6. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 5 1.2.2-FORM TAG The <form> tag is used to create an HTML form for user input. The <form> element can contain one or more of the following form elements:  <input>,<textarea>,<button>,<select>,<option>..etc
  • 7. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 6 1.2.3-TABLE TAG The <table> tag defines an HTML table. An HTML table consists of the <table> element and one or more <tr>, <th>, and <td> elements. The <tr> element defines a table row, the <th> element defines a table header, and the <td> element defines a table cell.
  • 8. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 7 1.2.4-BUTTON TAG The <button> tag defines a clickable button. Inside a <button> element you can put content, like text or images. This is the difference between this element and buttons created with the <input> element. Always specify the type attribute for a <button> element. Different browsers use different default types for the <button> element.
  • 9. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 8 1.2.5-HEADING TAG The <h1> to <h6> tags are used to define HTML headings. <h1> defines the most important heading. <h6> defines the least important heading.
  • 10. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 9 1.2.6-BR TAG The <br> tag inserts a single line break. The <br> tag is an empty tag which means that it has no end tag.
  • 11. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 10 1.2.7-TEXT AREA TAG The <textarea> tag defines a multi-line text input control. A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier). The size of a text area can be specified by the cols and rows attributes, or even better; through CSS' height and width properties
  • 12. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 11 2-PHP Introduction PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient 2.1-What is PHP?  PHP is an acronym for "PHP: Hypertext Preprocessor"  PHP is a widely-used, open source scripting language  PHP scripts are executed on the server  PHP is free to download and use 2.2-What is a PHP File?  PHP files can contain text, HTML, CSS, JavaScript, and PHP code  PHP code are executed on the server, and the result is returned to the browser as plain HTML  PHP files have extension ".php" What Can PHP Do?  PHP can generate dynamic page content  PHP can create, open, read, write, delete, and close files on the server  PHP can collect form data  PHP can send and receive cookies  PHP can add, delete, modify data in your database  PHP can be used to control user-access  PHP can encrypt data
  • 13. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 12 Basic PHP Syntax A PHP script can be placed anywhere in the document. A PHP script starts with <?php and ends with ?>: <?php // PHP code goes here ?> The default file extension for PHP files is ".php". A PHP file normally contains HTML tags, and some PHP scripting code.
  • 14. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 13 3-CODING OF CALCULATOR IN HTML:-
  • 15. INTRODUCTION TO HTML AND PHP TAGS www.lucideus.com Page 14 REFERENCES 1-http://www.w3schools.com 2-http://www.tutorialspoint.com/html/html_basic_tags.htm