SlideShare ist ein Scribd-Unternehmen logo
1 von 5
TML, also known as Hyper Text Markup Language, is the most commonly used markup
language to create webpages. A markup language provides a way to describe the structure
of text-based information on a Web page. Hypertext through similar to regular text, has one
additional advantage that is when you click the hypertext present on webpages, you are direct
to another web page on internet. The hypertext is called hyper because the navigation through
the pages using the hypertext is not linear. It means that if you click the hypertext present on
web page, you are directed to relevant page on the website or Internet ,which is not necessarily
the next page on the website.HTML allows you to format, arrange, and group text, display text
as links, and add images and multimedia to a Webpage.
HTML is written in the form of tags, which are by pair of angle bracket (< and >) and some text
placed between these brackets. The text present between the pair of angle brackets defines an
HTML element. Most of the HTML elements have two basic properties – attributes and
contests; therefore, they have an opening tags (< element-name>) and a closing tag (</
element-name>). However, some HTML elements, such as <br> and <hr> do not have any
contents; therefore, they do not need a closing tags, elements, and attributes are collectively
known as HTML markup.
The <!DOCTYPE> Elements:
The <!DOCTYPE> Elements is the first element in the HTML document, which specifies the
Document Type Definition (DTD) used by the document. A DTD is a separate file containing
formal definition of grammar, such as supported elements and elements used in markup
language. The browser check the code of document against the rule in the <!DOCTYPE>
declaration. The < !DOCTYPE> element does not have closing tags.
Working with Frames;
HTML provides the facility to divide the Internet Explorer (I.E) into many sections by using
frameset. A frameset in HTML is a way to display multiple Web pages in the same I.E, at the
same time. You can create vertical and horizontal frames as well as set frame border thickness
and color as per the requirement. In addition, you can apply hyperlink to a frame.
Creating an HTML Form:
An HTML form is web page that contains from elements. A basic from has 3 important parts;
the < form > tag, which include the URL of the script needed to process the form, the form
elements, which are similar to text fields; and the submit button, which sends the data on the
server. All the input elements should be enclosed within the opening < form > tags.
Attributes of the < form > tags
Attributes Values Description
Action URL Defines where to send the data when the submit button is checked
Method Get, Post Represent the HTTP method that sends data to the action URL. The
H
default values for the method attributes is get.
Using the HTML Controls
A user interacts with forms through controls that are the basic element of a Web page form. The HTML
controls help to make a Web page user friendly. A user can enter data in the Web page form with of the
HTML controls. There are plenty of controls available in HTML and the controls that provide input to the
form are created using the <input> tag and different value for the type attribute.
Using the <input> Tag to Add Controls
The primary tag is used in HTML to add controls the <input>tag that defines the start of an input field
where the user can enter the data. The <input> tag prompts the user to enter data on the Web server
lists a brief description of the attributes of the <input> tag:
Adding a Text Field to a From
The <input type=”text”> tag is used to add text field to a form. This type provides a box to enter text
that is transferred to the Web server.
Adding a Button
The button is a type attribute value of the <input >tag that is used to create a button on the HTML form.
To add a button on your Web page, add the <input type=”button”> tag in your HTML code.
Adding a Check Box
A check box is a small box with a check mark in it. And a user can either select or clear it by a click. To
add a check box to your Web page, add the <input type=”checkbox”> tag to your HTML code.
Adding a Radio Button
A radio button is displayed as a circle and displays a dot in the middle when selected. To add radio
button to your Web page, add the <input type=”radio”> tag to your HTML code.
NOTE
The difference between a check box and a radio button is that radio buttons work in mutually exclusive
groups and only one radio button can be selected at a time.
Adding a Submit Button
A submit button is the most important control in a form of because when you click this button, all the
data in the form sent to the Web server. When the user clicks the submit button, the data in the form is
transferred to the URL specified in the <form action> tag. To add a submit button to your web page, add
the <input type=”submit”> tag to your HTML code.
Attributes of Submit button
Attributes Description
Name Adds a name to the button.
Value Define the text to be written on the button.
Align Defines the alignment of the button.
Tab index Defines the tab order of the button, if there are
multiple buttons in your Web page.
Adding a Reset Button
A reset button helps the user to clear all the data that they have entered in the text fields and start all
over again. When the user clicks the user button, all the controls in the form are returned to their
original state and the values in form fields are cleared. To add a reset button to your Web page, and the
<input type=”reset button”>tag to your HTML code.
Adding a Text Area
A text area is a multi-line text input controls and displays text entered in it. A user writes unlimited
number of characters in the text area. You must set the numbers of rows and columns you want in the
text area using the rows and cols attributes.
Adding a Selection control
In HTML, you can add selection controls to your Web page. The selection control includes the <select>,
<option>, and <optgroup>tags. The <select> tag defines the control for the selection of options and
creates a drop-down list. You can use this tag in a form to accept a user input from a list of items. The
<option>tag defines an option in a drop-down list. It most important attribute is the <value> attribute
that determines the value being sent to the server.
The<optgroup> tag allows you to group your choices in the form. This tag helps you to group related
choices, when you have a long list of options to select from in the drop-down list created by using the
<select> tag.
Adding Multiple Selection Control
The selection control allows you to select only a single option from the list .However, you can also select
multiple options from the list at a time by using the same <select> tag. In this case, the<select>tag
includes the multiple attributes to specify that multiple options can be selected at a time. To select
multiple option from the list, your are required to hold down the CTRL key or the SHIFT key
Introducing cascading Style sheets
Cascading style sheets (CSS) or simply style sheets are text files that contain one or more with in the
form of property/value pairs to determine in a Web page should be displayed. They were developed
with the aim to create the structure, look and feel of a Web page but the elements present on the web
page are handled separately. In addition, CSS deals with all the style-related aspects important to create
a web page W3C has developed some specifications. The two versions of CSS specification have been
released till now: the first version is known as CSS1 and the second has CSS2. After the introduction of
CSS, HTML elements that purely deal with style related aspects, such as <u>, <center>, and <strike> have
been deprecated and W3C has recommended that in place of this HTML element, their replacements
should be use in CSS.
The syntax of CSS is slightly different from that HTML. In contrast to the angle brackets (<and>), equal
signs, and quotation marks found in the HTML syntax, the CSS syntax contains curly braces, colons, and
semicolons. The syntax of a CSS rule is as follows:
Selector {property1: property1-value; property2: property2-value; property3: property3-
value





..}
In the preceding syntax, selector is the element that the rule defines, property1, property2, and
property3 are the properties (attributes) define for that element, and property1-value, property2-value,
and property3-value are values assigned to these properties. The portion of the syntax enclosed within
the curly braces is termed as declaration.
Using the preceding CSS rules syntax; we can create a CSS rule to set three background properties
(background-color, background-image, and background-repeat) for the <body> element, as follows:
Body {background-color: #0000ff; background-image: url (cimage1.jpg); Background-repeat: repeat-X}
Notice that the preceding CSS rule sets three backgrounds properties (background-color, background-
image, and background-repeat) for the <body> element in three declarations. You can, however set this
three properties in one declaration, using the short hand property named background. This shorthand
property which enables you to set two or more properties in one declaration has follows:
Body {background: 0000ff url (c:image1.jpg) repeat-x}
In the preceding CSS rule, you can note that shorthand property specifies two or more properties by
separating them with spaces.
You can create cascading styles in a web page in four ways:
 Using inline styles.
 Using external styles sheets.
 Using internal style sheets
 Using style classes
Inline styles
In the inline styles method, style for an HTML element is specified using it’s style attribute .Inline styles
are useful when you want to define specific styles for individual elements present on a web page.
External style sheets
An external style sheet is a separate document that contains only CSS rules and has .css extension.
External style sheets are used to apply uniform styles to all the web pages. For example, let’s assume
that you are creating a website that contains more than one web page and you want same look and feel
for same types of HTML elements in all the web pages. In such a situation, you can first create all the
required CSS rues in an external style sheets and then link it to all the web pages of the websites.
HTML Markup Language Guide

Weitere Àhnliche Inhalte

Was ist angesagt?

HTML or Hypertext Markup Language
HTML or Hypertext Markup LanguageHTML or Hypertext Markup Language
HTML or Hypertext Markup LanguageProf Ansari
 
HTML Forms
HTML FormsHTML Forms
HTML FormsNisa Soomro
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to HtmlTaha Malampatti
 
Getting Started with your Website
Getting Started with your WebsiteGetting Started with your Website
Getting Started with your WebsiteNicole Ryan
 
Forms in html5
Forms in html5Forms in html5
Forms in html5hrisi87
 
Html tables, forms and audio video
Html tables, forms and audio videoHtml tables, forms and audio video
Html tables, forms and audio videoSaad Sheikh
 
Advanced html
Advanced htmlAdvanced html
Advanced htmlSuneel Dogra
 
Structure Web Content
Structure Web ContentStructure Web Content
Structure Web ContentNicole Ryan
 
Xhtml
XhtmlXhtml
XhtmlCLI-IE
 
Html basics
Html basicsHtml basics
Html basicscodegracer
 
Html viva questions
Html viva questionsHtml viva questions
Html viva questionsVipul Naik
 
HTML frames and HTML forms
HTML frames and HTML formsHTML frames and HTML forms
HTML frames and HTML formsNadine Cruz
 
Practical file on web technology(html)
Practical file on web technology(html)Practical file on web technology(html)
Practical file on web technology(html)RAJWANT KAUR
 
HTML5 - Forms
HTML5 - FormsHTML5 - Forms
HTML5 - Formstina1357
 
04. session 04 working withformsandframes
04. session 04   working withformsandframes04. session 04   working withformsandframes
04. session 04 working withformsandframesPhĂșc Đỗ
 
Hyper Text Markup Language (HTML)
Hyper Text Markup Language (HTML)Hyper Text Markup Language (HTML)
Hyper Text Markup Language (HTML)Avijeet Negel
 

Was ist angesagt? (20)

HTML or Hypertext Markup Language
HTML or Hypertext Markup LanguageHTML or Hypertext Markup Language
HTML or Hypertext Markup Language
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
2. HTML forms
2. HTML forms2. HTML forms
2. HTML forms
 
Html forms
Html formsHtml forms
Html forms
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to Html
 
Chapter7 web application
Chapter7 web applicationChapter7 web application
Chapter7 web application
 
Getting Started with your Website
Getting Started with your WebsiteGetting Started with your Website
Getting Started with your Website
 
Forms in html5
Forms in html5Forms in html5
Forms in html5
 
Html tables, forms and audio video
Html tables, forms and audio videoHtml tables, forms and audio video
Html tables, forms and audio video
 
Advanced html
Advanced htmlAdvanced html
Advanced html
 
Structure Web Content
Structure Web ContentStructure Web Content
Structure Web Content
 
Xhtml
XhtmlXhtml
Xhtml
 
Html basics
Html basicsHtml basics
Html basics
 
Html viva questions
Html viva questionsHtml viva questions
Html viva questions
 
HTML frames and HTML forms
HTML frames and HTML formsHTML frames and HTML forms
HTML frames and HTML forms
 
Practical file on web technology(html)
Practical file on web technology(html)Practical file on web technology(html)
Practical file on web technology(html)
 
HTML
HTMLHTML
HTML
 
HTML5 - Forms
HTML5 - FormsHTML5 - Forms
HTML5 - Forms
 
04. session 04 working withformsandframes
04. session 04   working withformsandframes04. session 04   working withformsandframes
04. session 04 working withformsandframes
 
Hyper Text Markup Language (HTML)
Hyper Text Markup Language (HTML)Hyper Text Markup Language (HTML)
Hyper Text Markup Language (HTML)
 

Ähnlich wie HTML Markup Language Guide

Ähnlich wie HTML Markup Language Guide (20)

html tags
html tagshtml tags
html tags
 
Chapter 2 - HTML5.pdf
Chapter 2 - HTML5.pdfChapter 2 - HTML5.pdf
Chapter 2 - HTML5.pdf
 
Unit 2
Unit 2 Unit 2
Unit 2
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
 
Html starting
Html startingHtml starting
Html starting
 
Html
HtmlHtml
Html
 
CSS_Forms.pdf
CSS_Forms.pdfCSS_Forms.pdf
CSS_Forms.pdf
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
ppt.pptx
ppt.pptxppt.pptx
ppt.pptx
 
HTML
HTMLHTML
HTML
 
Presentation on HTML
Presentation on HTML Presentation on HTML
Presentation on HTML
 
WEB MODULE 2.pdf
WEB MODULE 2.pdfWEB MODULE 2.pdf
WEB MODULE 2.pdf
 
Unit 2
Unit 2 Unit 2
Unit 2
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
HTML CSS.pdf
HTML CSS.pdfHTML CSS.pdf
HTML CSS.pdf
 
HTML
HTML HTML
HTML
 
Web forms and html lecture Number 4
Web forms and html lecture Number 4Web forms and html lecture Number 4
Web forms and html lecture Number 4
 
HTML - part 1
HTML - part 1HTML - part 1
HTML - part 1
 

Mehr von Jafar Nesargi

Network adpater,cabel,cards ,types, network devices
Network adpater,cabel,cards ,types, network devicesNetwork adpater,cabel,cards ,types, network devices
Network adpater,cabel,cards ,types, network devicesJafar Nesargi
 
An introduction to networking
An introduction to networkingAn introduction to networking
An introduction to networkingJafar Nesargi
 
Computer basics Intro
Computer basics IntroComputer basics Intro
Computer basics IntroJafar Nesargi
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database languageJafar Nesargi
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relationalJafar Nesargi
 
Chapter 4 record storage and primary file organization
Chapter 4 record storage and primary file organizationChapter 4 record storage and primary file organization
Chapter 4 record storage and primary file organizationJafar Nesargi
 
Introduction to-oracle
Introduction to-oracleIntroduction to-oracle
Introduction to-oracleJafar Nesargi
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheetsJafar Nesargi
 
Session1 gateway to web page development
Session1   gateway to web page developmentSession1   gateway to web page development
Session1 gateway to web page developmentJafar Nesargi
 
Introduction to jsp
Introduction to jspIntroduction to jsp
Introduction to jspJafar Nesargi
 
Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jspJafar Nesargi
 
Chapter 1 swings
Chapter 1 swingsChapter 1 swings
Chapter 1 swingsJafar Nesargi
 
Record storage and primary file organization
Record storage and primary file organizationRecord storage and primary file organization
Record storage and primary file organizationJafar Nesargi
 

Mehr von Jafar Nesargi (20)

Network adpater,cabel,cards ,types, network devices
Network adpater,cabel,cards ,types, network devicesNetwork adpater,cabel,cards ,types, network devices
Network adpater,cabel,cards ,types, network devices
 
An introduction to networking
An introduction to networkingAn introduction to networking
An introduction to networking
 
Computer basics Intro
Computer basics IntroComputer basics Intro
Computer basics Intro
 
Css
CssCss
Css
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relational
 
Chapter 4 record storage and primary file organization
Chapter 4 record storage and primary file organizationChapter 4 record storage and primary file organization
Chapter 4 record storage and primary file organization
 
Chapter3
Chapter3Chapter3
Chapter3
 
Introduction to-oracle
Introduction to-oracleIntroduction to-oracle
Introduction to-oracle
 
Chapter2
Chapter2Chapter2
Chapter2
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
 
Session1 gateway to web page development
Session1   gateway to web page developmentSession1   gateway to web page development
Session1 gateway to web page development
 
Introduction to jsp
Introduction to jspIntroduction to jsp
Introduction to jsp
 
Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
 
Rmi
RmiRmi
Rmi
 
Java bean
Java beanJava bean
Java bean
 
Networking
NetworkingNetworking
Networking
 
Chapter2 j2ee
Chapter2 j2eeChapter2 j2ee
Chapter2 j2ee
 
Chapter 1 swings
Chapter 1 swingsChapter 1 swings
Chapter 1 swings
 
Record storage and primary file organization
Record storage and primary file organizationRecord storage and primary file organization
Record storage and primary file organization
 

KĂŒrzlich hochgeladen

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraĂșjo
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...gurkirankumar98700
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

KĂŒrzlich hochgeladen (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍾 8923113531 🎰 Avail...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

HTML Markup Language Guide

  • 1. TML, also known as Hyper Text Markup Language, is the most commonly used markup language to create webpages. A markup language provides a way to describe the structure of text-based information on a Web page. Hypertext through similar to regular text, has one additional advantage that is when you click the hypertext present on webpages, you are direct to another web page on internet. The hypertext is called hyper because the navigation through the pages using the hypertext is not linear. It means that if you click the hypertext present on web page, you are directed to relevant page on the website or Internet ,which is not necessarily the next page on the website.HTML allows you to format, arrange, and group text, display text as links, and add images and multimedia to a Webpage. HTML is written in the form of tags, which are by pair of angle bracket (< and >) and some text placed between these brackets. The text present between the pair of angle brackets defines an HTML element. Most of the HTML elements have two basic properties – attributes and contests; therefore, they have an opening tags (< element-name>) and a closing tag (</ element-name>). However, some HTML elements, such as <br> and <hr> do not have any contents; therefore, they do not need a closing tags, elements, and attributes are collectively known as HTML markup. The <!DOCTYPE> Elements: The <!DOCTYPE> Elements is the first element in the HTML document, which specifies the Document Type Definition (DTD) used by the document. A DTD is a separate file containing formal definition of grammar, such as supported elements and elements used in markup language. The browser check the code of document against the rule in the <!DOCTYPE> declaration. The < !DOCTYPE> element does not have closing tags. Working with Frames; HTML provides the facility to divide the Internet Explorer (I.E) into many sections by using frameset. A frameset in HTML is a way to display multiple Web pages in the same I.E, at the same time. You can create vertical and horizontal frames as well as set frame border thickness and color as per the requirement. In addition, you can apply hyperlink to a frame. Creating an HTML Form: An HTML form is web page that contains from elements. A basic from has 3 important parts; the < form > tag, which include the URL of the script needed to process the form, the form elements, which are similar to text fields; and the submit button, which sends the data on the server. All the input elements should be enclosed within the opening < form > tags. Attributes of the < form > tags Attributes Values Description Action URL Defines where to send the data when the submit button is checked Method Get, Post Represent the HTTP method that sends data to the action URL. The H
  • 2. default values for the method attributes is get. Using the HTML Controls A user interacts with forms through controls that are the basic element of a Web page form. The HTML controls help to make a Web page user friendly. A user can enter data in the Web page form with of the HTML controls. There are plenty of controls available in HTML and the controls that provide input to the form are created using the <input> tag and different value for the type attribute. Using the <input> Tag to Add Controls The primary tag is used in HTML to add controls the <input>tag that defines the start of an input field where the user can enter the data. The <input> tag prompts the user to enter data on the Web server lists a brief description of the attributes of the <input> tag: Adding a Text Field to a From The <input type=”text”> tag is used to add text field to a form. This type provides a box to enter text that is transferred to the Web server. Adding a Button The button is a type attribute value of the <input >tag that is used to create a button on the HTML form. To add a button on your Web page, add the <input type=”button”> tag in your HTML code. Adding a Check Box A check box is a small box with a check mark in it. And a user can either select or clear it by a click. To add a check box to your Web page, add the <input type=”checkbox”> tag to your HTML code. Adding a Radio Button A radio button is displayed as a circle and displays a dot in the middle when selected. To add radio button to your Web page, add the <input type=”radio”> tag to your HTML code. NOTE The difference between a check box and a radio button is that radio buttons work in mutually exclusive groups and only one radio button can be selected at a time. Adding a Submit Button A submit button is the most important control in a form of because when you click this button, all the data in the form sent to the Web server. When the user clicks the submit button, the data in the form is transferred to the URL specified in the <form action> tag. To add a submit button to your web page, add the <input type=”submit”> tag to your HTML code. Attributes of Submit button Attributes Description Name Adds a name to the button. Value Define the text to be written on the button.
  • 3. Align Defines the alignment of the button. Tab index Defines the tab order of the button, if there are multiple buttons in your Web page. Adding a Reset Button A reset button helps the user to clear all the data that they have entered in the text fields and start all over again. When the user clicks the user button, all the controls in the form are returned to their original state and the values in form fields are cleared. To add a reset button to your Web page, and the <input type=”reset button”>tag to your HTML code. Adding a Text Area A text area is a multi-line text input controls and displays text entered in it. A user writes unlimited number of characters in the text area. You must set the numbers of rows and columns you want in the text area using the rows and cols attributes. Adding a Selection control In HTML, you can add selection controls to your Web page. The selection control includes the <select>, <option>, and <optgroup>tags. The <select> tag defines the control for the selection of options and creates a drop-down list. You can use this tag in a form to accept a user input from a list of items. The <option>tag defines an option in a drop-down list. It most important attribute is the <value> attribute that determines the value being sent to the server. The<optgroup> tag allows you to group your choices in the form. This tag helps you to group related choices, when you have a long list of options to select from in the drop-down list created by using the <select> tag. Adding Multiple Selection Control The selection control allows you to select only a single option from the list .However, you can also select multiple options from the list at a time by using the same <select> tag. In this case, the<select>tag includes the multiple attributes to specify that multiple options can be selected at a time. To select multiple option from the list, your are required to hold down the CTRL key or the SHIFT key Introducing cascading Style sheets Cascading style sheets (CSS) or simply style sheets are text files that contain one or more with in the form of property/value pairs to determine in a Web page should be displayed. They were developed with the aim to create the structure, look and feel of a Web page but the elements present on the web page are handled separately. In addition, CSS deals with all the style-related aspects important to create a web page W3C has developed some specifications. The two versions of CSS specification have been released till now: the first version is known as CSS1 and the second has CSS2. After the introduction of CSS, HTML elements that purely deal with style related aspects, such as <u>, <center>, and <strike> have been deprecated and W3C has recommended that in place of this HTML element, their replacements should be use in CSS.
  • 4. The syntax of CSS is slightly different from that HTML. In contrast to the angle brackets (<and>), equal signs, and quotation marks found in the HTML syntax, the CSS syntax contains curly braces, colons, and semicolons. The syntax of a CSS rule is as follows: Selector {property1: property1-value; property2: property2-value; property3: property3- value





..} In the preceding syntax, selector is the element that the rule defines, property1, property2, and property3 are the properties (attributes) define for that element, and property1-value, property2-value, and property3-value are values assigned to these properties. The portion of the syntax enclosed within the curly braces is termed as declaration. Using the preceding CSS rules syntax; we can create a CSS rule to set three background properties (background-color, background-image, and background-repeat) for the <body> element, as follows: Body {background-color: #0000ff; background-image: url (cimage1.jpg); Background-repeat: repeat-X} Notice that the preceding CSS rule sets three backgrounds properties (background-color, background- image, and background-repeat) for the <body> element in three declarations. You can, however set this three properties in one declaration, using the short hand property named background. This shorthand property which enables you to set two or more properties in one declaration has follows: Body {background: 0000ff url (c:image1.jpg) repeat-x} In the preceding CSS rule, you can note that shorthand property specifies two or more properties by separating them with spaces. You can create cascading styles in a web page in four ways:  Using inline styles.  Using external styles sheets.  Using internal style sheets  Using style classes Inline styles In the inline styles method, style for an HTML element is specified using it’s style attribute .Inline styles are useful when you want to define specific styles for individual elements present on a web page. External style sheets An external style sheet is a separate document that contains only CSS rules and has .css extension. External style sheets are used to apply uniform styles to all the web pages. For example, let’s assume that you are creating a website that contains more than one web page and you want same look and feel for same types of HTML elements in all the web pages. In such a situation, you can first create all the required CSS rues in an external style sheets and then link it to all the web pages of the websites.