SlideShare a Scribd company logo
Static Websites

                          HTML 5
                           CSS
                          Forms

A demonstration of Form types in HTML 5 coding and styled with CSS
Forms
• Forms are part of a webpage that has multiple
  controls that a user enters details in. These
  controls include:
  – Text fields
  – Buttons
  – Check boxes
  – Colour pickers
Declaring HTML5
• To declare the document type as HTML 5, the
  code must start with the doctype tag
              <!DOCTYPE HTML>

• The document also requires opening and
  closing HTML tags
            Opening: <HTML>
            Closing: </HTML>
Form Tags
• To declare a form, it requires opening and
  closing form tags around the form controls.

              Opening:<form>
              Closing: </form>
Different types of Forms
• Forms can be used on websites, for multiple
  different reasons.
  – Signing up for a social networking site
    http://www.facebook.com/
  – Online Banking
    https://ib.nab.com.au/nabib/index.jsp
  – Online Shopping
    http://www.ebay.com.au/
  – Registering for competitions
    http://au.prime7.yahoo.com/a1/competitions/oliverf
    ootwear/
Browsers
The five most commonly used browsers are:
• Google Chrome
• Mozilla Firefox
• Internet Explorer
• Opera
• Safari

• Not all browsers recognise HTML5 tags. Look at
  the bottom of each slide to see what browsers
  recognise the form control being used.
Labels
• A label is a tag put in front or above a control
  tag to identify what needs to be inserted into
  the control field.

             Opening: <label>
             Closing: </label>
Text Field
• A text field has a default width of 20
  characters and is a single line of text.

• A label needs to be placed before a text box to
  identify what needs to be inserted.
Text Field code

<input type="text"
         id="first"
         value="First Name"/>
Email
• The email field is new to HTML5. The field is
  designed to accept an email address and will
  display an error message if an email address is
  not entered.
Email Code


<input type="email"
         id="email"
      value="Email Address"/>
Telephone

• The telephone field is defined for a telephone
  number to be entered in.
Telephone Code

<input type="tel"
         id="mobile"
     value="Mobile Number"/>
Number

• The number field is used to enter a number. A
  number can be typed in or the up and down
  arrows used to get to the specific number.
Number Code

<input type="number"
         id="postcode"
     value="2600"/>
Checkboxes

• A checkbox allows the user to select multiple
  boxes, depending on their preferences.

• Labels are needed to identify, the box being
  selected.
Checkbox Code
<input type="checkbox"
      name="Rugby Union"
          id="union"
      value="Rugby Union" />
  <label for="union">Union</label>

<input type="checkbox"
      name="NRL"
          id="nrl"
      value="NRL" />
  <label for="nrl">NRL</label>
Radio Buttons

• A radio button is used when only one item is
  needs to be selected out of a list of options.
Radio Button Code
<input type = "radio"
      name = "agree"
          id = "agree"
      value = "agree" />
  <label for = "agree">Agree</label>

<input type = "radio"
      name = "disagree"
           id = "disagree"
       value = "disagree" />
   <label for = "disagree">Disagree</label>
Submit Button
• A submit button is used for when a form
  needs to be submitted. Submit buttons are
  usually located at the bottom of the form.

• The default word on the button is “Submit”.
  This can be changed to a specific word if
  desired in the “value” area.
Submit Button Code

<input type="submit"
      name="submit"
          id="submit"
      value="Join Now" />
Reset Button

• A reset button is used to reset all the
  information on the form back to default. All
  inserted information is cleared.
Reset Button Code

<input type="reset"
      name="reset"
          id="reset"
      value="Reset" />
Validation & Web Browsers
• A website must pass validation to be accessible.

• To validat code, the following websites can be
  used.
  – HTML: http://validator.w3.org/
  – CSS: http://jigsaw.w3.org/css-validator/

• A website should also be made to work in
  multiple Web Browsers
HTML Validation
HTML Code
<!DOCTYPE HTML>
<html>

 <head>
  <title>Forms</title>
   <link rel="stylesheet" type="text/css" href="assignmentCss.css" media="all" />

 </head>
 <body>


  <form>
    <h1>Sign up today</h1>
        <label>First Name</label>
        <br>
        <input type="text"
                  id="first"
               value="First Name"/>

        <br>
<label>Last Name</label>
        <br>
   <input type="text"
             id= "last"
         value="Last Name"/>

       <br>

<label>Email Address</label>
         <br>
  <input type="email"
            id="email"
        value="Email Address"/>

       <br>
<label>Mobile Number</label>
  <br>
    <input type="tel"
               id="mobile"
         value="Mobile Number"/>

   <br>

<label>Date of Birth</label>
    <br>
    <input type="text"
                id="dob"
             value="DD/MM/YYYY"/>

    <br>
<label>Post Code</label>
    <br>
    <input type="number"
              id="postcode"
          value="2600"/>

   <br>
<label>Favourite Football codes</label>
    <br>
    <input type="checkbox"
          name="Rugby Union"
              id="union"
           value="Rugby Union" />
    <label for="union">Union</label>

    <input type="checkbox"
         name="NRL"
             id="nrl"
          value="NRL" />
    <label for="nrl">NRL</label>

    <input type="checkbox"
        name="AFL"
             id="afl"
         value="AFL" />
    <label for="afl">AFL</label>
   <br>
   <input type="checkbox"
        name="NFL"
              id="nfl"
          value="NFL" />
   <label for="nfl">NFL</label>

   <input type="checkbox"
      name="Soccer"
           id="soccer"
       value="Soccer" />
   <label for="soccer">Soccer</label>
<br><br>

<label> Terms and Conditions</label>
   <br>
   <input type = "radio"
         name = "agree"
              id = "agree"
          value = "agree" />
   <label for = "agree">Agree</label>

  <input type = "radio"
        name = "disagree"
            id = "disagree"
        value = "disagree" />
   <label for = "disagree">Disagree</label>
<input type="submit"
      name="submit"
          id="submit"
      value="Join Now" />

<input type="reset"
     name="reset"
         id="reset"
      value="Reset" />




   </form>
 </body>
</html>
Opening in Chrome
Opening in Internet Explorer
Opening in Safari
CSS
• Cascading Style Sheets (CSS) is commonly used
  for styling HTML code. CSS is usually done in a
  seperate document and linked together with a
  link placed in the HTML code.

HTML link to CSS sheet
<link rel="stylesheet" type="text/css"
  href="assignmentCss.css" media="all" />
• CSS is where all the colours and text styles are
  selected.

• Borders can also be set in CSS.

• The section which needs to be styled, must be
  declared at the top of the CSS page.
•   Background colours
•   Border sizes
•   Text
•   Float
•   Location of text

All of the above can be set in the
CSS code document
CSS code
form
{font-size:1.3em;
width: 30em;
float: left;
text-align: left;
margin-right: 0.5em;
display: block
}
input
{
color: black;
background: #F7F2E0;
border
}
CSS Validation
HTML5 - Forms

More Related Content

What's hot

Html forms
Html formsHtml forms
Html forms
Himanshu Pathak
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
Ana Cidre
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
Ravinder Kamboj
 
Html form tag
Html form tagHtml form tag
Html form tag
shreyachougule
 
Css ppt
Css pptCss ppt
Css ppt
Nidhi mishra
 
CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Properties
hstryk
 
CSS selectors
CSS selectorsCSS selectors
CSS selectors
Héla Ben Khalfallah
 
Css
CssCss
Css position
Css positionCss position
Css position
Webtech Learning
 
Html audio video
Html audio videoHtml audio video
Html audio video
Muhammad Ehtisham Siddiqui
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
Himanshu Pathak
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
ShahDhruv21
 
Html frames
Html framesHtml frames
Html frames
Arslan Elahi
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
Sanjeev Kumar
 
CSS
CSSCSS
Html images syntax
Html images syntaxHtml images syntax
Html images syntax
JayjZens
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
Varun C M
 
Html forms
Html formsHtml forms
JavaScript - Chapter 12 - Document Object Model
  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object Model
WebStackAcademy
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
fantasticdigitaltools
 

What's hot (20)

Html forms
Html formsHtml forms
Html forms
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Html form tag
Html form tagHtml form tag
Html form tag
 
Css ppt
Css pptCss ppt
Css ppt
 
CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Properties
 
CSS selectors
CSS selectorsCSS selectors
CSS selectors
 
Css
CssCss
Css
 
Css position
Css positionCss position
Css position
 
Html audio video
Html audio videoHtml audio video
Html audio video
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
 
Html frames
Html framesHtml frames
Html frames
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
CSS
CSSCSS
CSS
 
Html images syntax
Html images syntaxHtml images syntax
Html images syntax
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
 
Html forms
Html formsHtml forms
Html forms
 
JavaScript - Chapter 12 - Document Object Model
  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object Model
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
 

Viewers also liked

Node.js
Node.jsNode.js
Node.js
Ian Oxley
 
Making form with html5
Making form with html5Making form with html5
Making form with html5
Youhei Iwasaki
 
Forms in html5
Forms in html5Forms in html5
Forms in html5
hrisi87
 
html 5 new form attribute
html 5 new form attributehtml 5 new form attribute
html 5 new form attribute
Priyanka Rasal
 
Html5 form attributes
Html5 form attributesHtml5 form attributes
Html5 form attributes
OPENLANE
 
HTML5 Form Validation
HTML5 Form ValidationHTML5 Form Validation
HTML5 Form Validation
Ian Oxley
 
New Form Element in HTML5
New Form Element in HTML5New Form Element in HTML5
New Form Element in HTML5
Zahra Rezwana
 
Html5 inputs
Html5 inputsHtml5 inputs
Html5 inputs
Chris Love
 
Academy PRO: HTML5 Data storage
Academy PRO: HTML5 Data storageAcademy PRO: HTML5 Data storage
Academy PRO: HTML5 Data storage
Binary Studio
 
HTML5 forms
HTML5 formsHTML5 forms
HTML5 forms
Lar Veale
 
twilio x aws コミュニティトラック JAWS FESTA 2015
twilio x aws コミュニティトラック JAWS FESTA 2015twilio x aws コミュニティトラック JAWS FESTA 2015
twilio x aws コミュニティトラック JAWS FESTA 2015
Youhei Iwasaki
 
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)
Peter Lubbers
 
HTML 5
HTML 5HTML 5
HTML 5
Rajan Pal
 

Viewers also liked (13)

Node.js
Node.jsNode.js
Node.js
 
Making form with html5
Making form with html5Making form with html5
Making form with html5
 
Forms in html5
Forms in html5Forms in html5
Forms in html5
 
html 5 new form attribute
html 5 new form attributehtml 5 new form attribute
html 5 new form attribute
 
Html5 form attributes
Html5 form attributesHtml5 form attributes
Html5 form attributes
 
HTML5 Form Validation
HTML5 Form ValidationHTML5 Form Validation
HTML5 Form Validation
 
New Form Element in HTML5
New Form Element in HTML5New Form Element in HTML5
New Form Element in HTML5
 
Html5 inputs
Html5 inputsHtml5 inputs
Html5 inputs
 
Academy PRO: HTML5 Data storage
Academy PRO: HTML5 Data storageAcademy PRO: HTML5 Data storage
Academy PRO: HTML5 Data storage
 
HTML5 forms
HTML5 formsHTML5 forms
HTML5 forms
 
twilio x aws コミュニティトラック JAWS FESTA 2015
twilio x aws コミュニティトラック JAWS FESTA 2015twilio x aws コミュニティトラック JAWS FESTA 2015
twilio x aws コミュニティトラック JAWS FESTA 2015
 
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)
 
HTML 5
HTML 5HTML 5
HTML 5
 

Similar to HTML5 - Forms

How to code radio buttons in HTML5 and CSS Styling
How to code radio buttons in HTML5 and CSS StylingHow to code radio buttons in HTML5 and CSS Styling
How to code radio buttons in HTML5 and CSS Styling
AimeeKyra
 
Getting Information through HTML Forms
Getting Information through HTML FormsGetting Information through HTML Forms
Getting Information through HTML Forms
Mike Crabb
 
css and Input attributes
css and Input attributescss and Input attributes
css and Input attributes
Siji P
 
web-lab2 for computer science html tss css java
web-lab2 for computer science html tss css javaweb-lab2 for computer science html tss css java
web-lab2 for computer science html tss css java
shereifhany
 
Chapter 2 class power point
Chapter 2 class power pointChapter 2 class power point
Chapter 2 class power point
cmurphysvhs
 
HTML_TABLES,FORMS,FRAME markup lang.pptx
HTML_TABLES,FORMS,FRAME markup lang.pptxHTML_TABLES,FORMS,FRAME markup lang.pptx
HTML_TABLES,FORMS,FRAME markup lang.pptx
lekhacce
 
Handout7 html forms
Handout7 html formsHandout7 html forms
Handout7 html forms
Nadine Guevarra
 
Chapter 9: Forms
Chapter 9: FormsChapter 9: Forms
Chapter 9: Forms
Steve Guinan
 
Forms Part 1
Forms Part 1Forms Part 1
Forms Part 1
kjkleindorfer
 
Html5 101
Html5 101Html5 101
Html5 101
Mouafa Ahmed
 
Html tables, forms and audio video
Html tables, forms and audio videoHtml tables, forms and audio video
Html tables, forms and audio video
Saad Sheikh
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
DipaliJagtap6
 
Introduction html
Introduction htmlIntroduction html
Introduction html
Mayank Saxena
 
Learn html5
Learn html5Learn html5
Learn html5
Mostafa Bayomi
 
Html and css
Html and cssHtml and css
htmlcss.pdf
htmlcss.pdfhtmlcss.pdf
htmlcss.pdf
ElieMambou1
 
Html5 101
Html5 101Html5 101
Html5 101
Mouafa Ahmed
 
HTML/CSS/java Script/Jquery
HTML/CSS/java Script/JqueryHTML/CSS/java Script/Jquery
HTML/CSS/java Script/Jquery
FAKHRUN NISHA
 
Html forms
Html formsHtml forms
Html forms
nobel mujuji
 
Unit 2 (it workshop)
Unit 2 (it workshop)Unit 2 (it workshop)
Unit 2 (it workshop)
Dr.Lokesh Gagnani
 

Similar to HTML5 - Forms (20)

How to code radio buttons in HTML5 and CSS Styling
How to code radio buttons in HTML5 and CSS StylingHow to code radio buttons in HTML5 and CSS Styling
How to code radio buttons in HTML5 and CSS Styling
 
Getting Information through HTML Forms
Getting Information through HTML FormsGetting Information through HTML Forms
Getting Information through HTML Forms
 
css and Input attributes
css and Input attributescss and Input attributes
css and Input attributes
 
web-lab2 for computer science html tss css java
web-lab2 for computer science html tss css javaweb-lab2 for computer science html tss css java
web-lab2 for computer science html tss css java
 
Chapter 2 class power point
Chapter 2 class power pointChapter 2 class power point
Chapter 2 class power point
 
HTML_TABLES,FORMS,FRAME markup lang.pptx
HTML_TABLES,FORMS,FRAME markup lang.pptxHTML_TABLES,FORMS,FRAME markup lang.pptx
HTML_TABLES,FORMS,FRAME markup lang.pptx
 
Handout7 html forms
Handout7 html formsHandout7 html forms
Handout7 html forms
 
Chapter 9: Forms
Chapter 9: FormsChapter 9: Forms
Chapter 9: Forms
 
Forms Part 1
Forms Part 1Forms Part 1
Forms Part 1
 
Html5 101
Html5 101Html5 101
Html5 101
 
Html tables, forms and audio video
Html tables, forms and audio videoHtml tables, forms and audio video
Html tables, forms and audio video
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
Introduction html
Introduction htmlIntroduction html
Introduction html
 
Learn html5
Learn html5Learn html5
Learn html5
 
Html and css
Html and cssHtml and css
Html and css
 
htmlcss.pdf
htmlcss.pdfhtmlcss.pdf
htmlcss.pdf
 
Html5 101
Html5 101Html5 101
Html5 101
 
HTML/CSS/java Script/Jquery
HTML/CSS/java Script/JqueryHTML/CSS/java Script/Jquery
HTML/CSS/java Script/Jquery
 
Html forms
Html formsHtml forms
Html forms
 
Unit 2 (it workshop)
Unit 2 (it workshop)Unit 2 (it workshop)
Unit 2 (it workshop)
 

Recently uploaded

Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 

Recently uploaded (20)

Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 

HTML5 - Forms

  • 1. Static Websites HTML 5 CSS Forms A demonstration of Form types in HTML 5 coding and styled with CSS
  • 2. Forms • Forms are part of a webpage that has multiple controls that a user enters details in. These controls include: – Text fields – Buttons – Check boxes – Colour pickers
  • 3. Declaring HTML5 • To declare the document type as HTML 5, the code must start with the doctype tag <!DOCTYPE HTML> • The document also requires opening and closing HTML tags Opening: <HTML> Closing: </HTML>
  • 4. Form Tags • To declare a form, it requires opening and closing form tags around the form controls. Opening:<form> Closing: </form>
  • 5. Different types of Forms • Forms can be used on websites, for multiple different reasons. – Signing up for a social networking site http://www.facebook.com/ – Online Banking https://ib.nab.com.au/nabib/index.jsp – Online Shopping http://www.ebay.com.au/ – Registering for competitions http://au.prime7.yahoo.com/a1/competitions/oliverf ootwear/
  • 6. Browsers The five most commonly used browsers are: • Google Chrome • Mozilla Firefox • Internet Explorer • Opera • Safari • Not all browsers recognise HTML5 tags. Look at the bottom of each slide to see what browsers recognise the form control being used.
  • 7. Labels • A label is a tag put in front or above a control tag to identify what needs to be inserted into the control field. Opening: <label> Closing: </label>
  • 8. Text Field • A text field has a default width of 20 characters and is a single line of text. • A label needs to be placed before a text box to identify what needs to be inserted.
  • 9. Text Field code <input type="text" id="first" value="First Name"/>
  • 10. Email • The email field is new to HTML5. The field is designed to accept an email address and will display an error message if an email address is not entered.
  • 11. Email Code <input type="email" id="email" value="Email Address"/>
  • 12. Telephone • The telephone field is defined for a telephone number to be entered in.
  • 13. Telephone Code <input type="tel" id="mobile" value="Mobile Number"/>
  • 14. Number • The number field is used to enter a number. A number can be typed in or the up and down arrows used to get to the specific number.
  • 15. Number Code <input type="number" id="postcode" value="2600"/>
  • 16. Checkboxes • A checkbox allows the user to select multiple boxes, depending on their preferences. • Labels are needed to identify, the box being selected.
  • 17. Checkbox Code <input type="checkbox" name="Rugby Union" id="union" value="Rugby Union" /> <label for="union">Union</label> <input type="checkbox" name="NRL" id="nrl" value="NRL" /> <label for="nrl">NRL</label>
  • 18. Radio Buttons • A radio button is used when only one item is needs to be selected out of a list of options.
  • 19. Radio Button Code <input type = "radio" name = "agree" id = "agree" value = "agree" /> <label for = "agree">Agree</label> <input type = "radio" name = "disagree" id = "disagree" value = "disagree" /> <label for = "disagree">Disagree</label>
  • 20. Submit Button • A submit button is used for when a form needs to be submitted. Submit buttons are usually located at the bottom of the form. • The default word on the button is “Submit”. This can be changed to a specific word if desired in the “value” area.
  • 21. Submit Button Code <input type="submit" name="submit" id="submit" value="Join Now" />
  • 22. Reset Button • A reset button is used to reset all the information on the form back to default. All inserted information is cleared.
  • 23. Reset Button Code <input type="reset" name="reset" id="reset" value="Reset" />
  • 24. Validation & Web Browsers • A website must pass validation to be accessible. • To validat code, the following websites can be used. – HTML: http://validator.w3.org/ – CSS: http://jigsaw.w3.org/css-validator/ • A website should also be made to work in multiple Web Browsers
  • 26. HTML Code <!DOCTYPE HTML> <html> <head> <title>Forms</title> <link rel="stylesheet" type="text/css" href="assignmentCss.css" media="all" /> </head> <body> <form> <h1>Sign up today</h1> <label>First Name</label> <br> <input type="text" id="first" value="First Name"/> <br>
  • 27. <label>Last Name</label> <br> <input type="text" id= "last" value="Last Name"/> <br> <label>Email Address</label> <br> <input type="email" id="email" value="Email Address"/> <br>
  • 28. <label>Mobile Number</label> <br> <input type="tel" id="mobile" value="Mobile Number"/> <br> <label>Date of Birth</label> <br> <input type="text" id="dob" value="DD/MM/YYYY"/> <br> <label>Post Code</label> <br> <input type="number" id="postcode" value="2600"/> <br>
  • 29. <label>Favourite Football codes</label> <br> <input type="checkbox" name="Rugby Union" id="union" value="Rugby Union" /> <label for="union">Union</label> <input type="checkbox" name="NRL" id="nrl" value="NRL" /> <label for="nrl">NRL</label> <input type="checkbox" name="AFL" id="afl" value="AFL" /> <label for="afl">AFL</label> <br> <input type="checkbox" name="NFL" id="nfl" value="NFL" /> <label for="nfl">NFL</label> <input type="checkbox" name="Soccer" id="soccer" value="Soccer" /> <label for="soccer">Soccer</label>
  • 30. <br><br> <label> Terms and Conditions</label> <br> <input type = "radio" name = "agree" id = "agree" value = "agree" /> <label for = "agree">Agree</label> <input type = "radio" name = "disagree" id = "disagree" value = "disagree" /> <label for = "disagree">Disagree</label>
  • 31. <input type="submit" name="submit" id="submit" value="Join Now" /> <input type="reset" name="reset" id="reset" value="Reset" /> </form> </body> </html>
  • 35. CSS • Cascading Style Sheets (CSS) is commonly used for styling HTML code. CSS is usually done in a seperate document and linked together with a link placed in the HTML code. HTML link to CSS sheet <link rel="stylesheet" type="text/css" href="assignmentCss.css" media="all" />
  • 36. • CSS is where all the colours and text styles are selected. • Borders can also be set in CSS. • The section which needs to be styled, must be declared at the top of the CSS page.
  • 37. Background colours • Border sizes • Text • Float • Location of text All of the above can be set in the CSS code document
  • 38. CSS code form {font-size:1.3em; width: 30em; float: left; text-align: left; margin-right: 0.5em; display: block } input { color: black; background: #F7F2E0; border }