SlideShare uma empresa Scribd logo
1 de 141
Baixar para ler offline
HTML
Introduction
• Stands for Hypertext Markup Language
• Most widely used language to write Web Pages
• Hypertext refers to the way in which Web pages (HTML documents)
are linked together
• Is a Markup Language which means you use HTML to simply "mark-
up" a text document with tags that tell a Web browser how to
structure it to display
• Is being widely used to format web pages with the help of different
tags available in HTML language
Basic HTML document
Basic Tags
• Heading Tags
• Paragraph Tags
• Line Break Tag
• Centering Tag
• Horizontal Lines
• Preserving Format
• Non breaking space
Heading Tags
Paragraph Tag
Line Break Tag
Centering Tag
Horizontal Lines
Preserve Formatting
Non Breaking Space
HTML Elements
HTML Tags Vs Elements
• <p> is starting tag
• </p> is closing tag
• <p>This is paragraph</p> is paragraph element
• There are some HTML elements which don't need to be closed, such
as <img.../>, <hr /> and <br /> elements
• These are known as void elements
Nested HTML Elements
HTML Attributes
• Used to define the characteristics of an HTML element
• Is placed inside the element's opening tag
• All attributes are made up of two parts: a name and a value:
• The name is the property you want to set
• The value is what you want the value of the property to be set and always put
within quotations
• Example: Three possible values of align attribute: left, center and right.
• Attribute names and attribute values are case-insensitive
• However, the World Wide Web Consortium (W3C) recommends
lowercase attributes/attribute values
Core Attributes
• The four core attributes that can be used on the majority of HTML
elements are:
• Id
• Title
• Class
• Style
The id Attribute
• Used to uniquely identify any element within an HTML page
• Two primary reasons to use an id attribute on an element:
• If an element carries an id attribute as a unique identifier, it is possible to
identify just that element and its content
• If we have two elements of the same name within a Web page, we can use
the id attribute to distinguish between elements that have the same name
The title Attribute
• Gives a suggested title for the element
• Syntax for the title attribute is similar as id attribute
The class attribute
• Used to associate an element with a style sheet
• Specifies the class of element
• Will learn more about the use of the class attribute when we will
learn Cascading Style Sheet (CSS)
The style attribute
• Allows us to specify Cascading Style Sheet (CSS) rules within the
element
Internationalization Attributes
• There are three internationalization attributes, which are available for
most all XHTML elements
• dir
• lang
• xml:lang
The dir Attribute
• Allows you to indicate to the browser about the direction in which the
text should flow
• Can take one of two values, as we can see in the table that follows:
The lang Attribute
• Allows us to indicate the main language used in a document
• Was kept in HTML only for backwards compatibility with earlier
versions of HTML
• Has been replaced by the xml:lang attribute in new XHTML
documents
• Values of the lang attribute are ISO-639 standard two-character
language codes
The xml:lang
• Is the XHTML replacement for the lang attribute
• The value of the xml:lang attribute should be an ISO-639 country
code
Generic Attributes
HTML Formatting
• Bold Text
• Italic Text
• Underlined Text
• Strike Text
• Monospaced Font
• Superscript Text
• Subscript Text
• Inserted Text
• Deleted Text
• Larger Text
• Smaller Text
Bold Text
Italic Text
Underlined Text
Strike Text
Monospaced Font
Superscript Text
Subscript Text
Inserted and Deleted Text
Larger Text
Smaller Text
Grouping Content
• The <div> and <span> elements allow us to group together several
elements to create sections or subsections of a page
• For example, we might want to put all of the footnotes on a page
within a <div> element to indicate that all of the elements within that
<div> element relate to the footnotes
• We might then attach a style to this <div> element so that they
appear using a special set of style rules
Phrase Tags
• Emphasized Text
• Marked Text
• Strong Text
• Text Abbreviation
• Acronym Element
• Text Direction
• Special Terms
• Quoting Text
• Short Quotations
• Text Citations
• Computer Code
• Address Text
Emphasized Text
Marked Text
Strong Text
Text Abbreviation
Acronym Element
Title is missing from acronym
Text Direction
Special Terms
Quoting Text
Short Quotations
Text Citations
Computer Code
Address Text
Meta Tags
• Specify additional important information about a document
• Can be used to include name/value pairs describing properties of the
HTML document, such as author, expiry date, a list of keywords,
document author etc.
• <meta> tag is used to provide such additional information
• Is an empty element and so does not have a closing tag
• Carries information within its attributes
• Can include one or more meta tags in your document based on what
information we want to keep in your document
• Do not impact physical appearance of the document
Comments
• Are placed in between <!-- ... --> tags
• Any content placed with-in <!-- ... --> tags will be treated as comment
and will be completely ignored by the browser
Multiline Comment
Images
• Insert Image
• Set Image Location
• Set Image Width/Height
• Set Image Border
• Set Image Alignment
Insert Image
• Can insert any image in web page by using <img> tag
• Syntax:
Set Image Location
Set Image Width/Height
Set Image Border
Set Image Alignment
Tables
• Allow web authors to arrange data like text, images, links, other
tables, etc. into rows and columns
• Are created using the <table> tag in which the <tr> tag is used to
create table rows and <td> tag is used to create data cells
Table Heading
Cell Padding and Cell Spacing
Colspan and Rowspan Attributes
Tables Backgrounds
• Can set table background using one of the following two ways:
• bgcolor attribute - Can set background color for whole table or just for one
cell
• background attribute - Can set background image for whole table or just for
one cell.
• Can also set border color also using bordercolor attribute
Table Height and Width
Table Caption
Table Header, Body, and Footer
• The three elements for separating the head, body, and foot of a table
are:
• <thead> - to create a separate table header.
• <tbody> - to indicate the main body of the table.
• <tfoot> - to create a separate table footer.
Nested Tables
• Can use one table inside another table.
• Not only tables can use almost all the tags inside table data tag <td>
HTML LIST
• Three ways for specifying lists of information
• All lists must contain one or more list elements
• Lists may contain:
• <ul>
• Unordered list
• List items using plain bullets
• <ol>
• Ordered list
• Use different schemes of numbers to list items
• <dl>
• Definition list
• Arranges items in the same way as they are arranged in a dictionary
Unordered Lists
The type Attribute
Ordered Lists
The type Attribute
The start Attribute
Definition Lists
• Supported by both HTML and XHTML
• Entries are listed like in a dictionary or encyclopedia
• Ideal way to present a glossary, list of terms, or other name/value list
• Definition List makes use of following three tags
• <dl> - Defines the start of the list
• <dt> - A term
• <dd> - Term definition
• </dl> - Defines the end of the list
TEXT LINKS
• Syntax:
The target Attribute
Use of Base Path
Linking to a Page Section
Setting Link Colors
Download Links
Image Links
FRAMES
• Are used to divide browser window into multiple sections where each
section can load a separate HTML document
• A collection of frames in the browser window is known as a frameset
• The window is divided into frames in a similar way the tables are
organized: into rows and columns
Disadvantages of Frames
• There are few drawbacks with using frames, so it's never
recommended to use frames in your webpages:
• Some smaller devices cannot cope with frames often because their screen is
not big enough to be divided up
• Sometimes your page will be displayed differently on different computers due
to different screen resolution
• The browser's back button might not work as the user hopes
• There are still few browsers that do not support frame technology
Creating Frames
• To use frames on a page we use <frameset> tag instead of <body> tag
• The <frameset> tag defines, how to divide the window into frames
• The rows attribute of <frameset> tag defines horizontal frames and
cols attribute defines vertical frames
• Each frame is indicated by <frame> tag and it defines which HTML
document shall open into the frame
Output
Output
IFRAMES
• Can define an inline frame with HTML tag <iframe>
• The <iframe> tag is not somehow related to <frameset> tag, instead,
it can appear anywhere in your document
• The <iframe> tag defines a rectangular region within the document in
which the browser can display a separate document, including
scrollbars and borders.
• The src attribute is used to specify the URL of the document that
occupies the inline frame
FORMS
• Are required, when we want to collect some data from the visitor
• For example, during user registration we would like to collect information
such as name, email address, credit card, etc.
• Will take input from the site visitor and then will post it to a back-end
application such as CGI, ASP Script or PHP script etc
• There are various form elements available like text fields, textarea
fields, drop-down menus, radio buttons, checkboxes, etc
Form Attributes
Form Controls
• There are different types of form controls that you can use to collect
data using HTML form:
• Text Input Controls
• Checkboxes Controls
• Radio Box Controls
• Select Box Controls
• File Select boxes
• Hidden Controls
• Submit and Reset Button
Text Input Controls
• There are three types of text input used on forms:
• Single-line text input controls
• Used for items that require only one line of user input, such as search boxes or names
• Created using HTML <input> tag
• Password input controls
• Also a single-line text input but it masks the character as soon as a user enters it
• Are also created using HTML <input> tag
• Multi-line text input controls
• Used when the user is required to give details that may be longer than a single sentence
• Are created using HTML <textarea> tag
Single-line text input controls
Password Input controls
Multiple-Line Text Input Controls
Checkbox Control
• Are used when more than one option is required to be selected
• Are also created using HTML <input> tag but type attribute is set to
checkbox
Radio Button Control
• Are used when out of many options, just one option is required to be
selected
• Are also created using HTML <input> tag but type attribute is set to
radio
Select Box Control
• A select box, also called drop down box which provides option to list
down various options in the form of drop down list
• User can select one or more options
• Following is the list of important attributes of <select> tag:
• Following is the list of important attributes of <option> tag:
File Upload Box
• If we want to allow a user to upload a file to our web site, we will
need to use a file upload box, also known as a file select box
• Also created using the <input> element but type attribute is set to file
Button Controls
• Various ways in HTML to create clickable buttons
• Create a clickable button using <input> tag by setting its type
attribute to button
• The type attribute can take the following values:
Hidden Form Controls
• Are used to hide data inside the page which later on can be pushed to
the server
• Hides inside the code and does not appear on the actual page
HTML Beginner's Guide

Mais conteúdo relacionado

Mais procurados

Mais procurados (19)

Cascading Style Sheets - CSS
Cascading Style Sheets - CSSCascading Style Sheets - CSS
Cascading Style Sheets - CSS
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
 
Css lecture notes
Css lecture notesCss lecture notes
Css lecture notes
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
Css
CssCss
Css
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Css
CssCss
Css
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
 
Css types internal, external and inline (1)
Css types internal, external and inline (1)Css types internal, external and inline (1)
Css types internal, external and inline (1)
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
CSS
CSS CSS
CSS
 
CSS tutorial chapter 2
CSS tutorial chapter 2CSS tutorial chapter 2
CSS tutorial chapter 2
 
CSS tutorial chapter 3
CSS tutorial chapter 3CSS tutorial chapter 3
CSS tutorial chapter 3
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
CSS Basics part One
CSS Basics part OneCSS Basics part One
CSS Basics part One
 
Css ppt
Css pptCss ppt
Css ppt
 
Css
CssCss
Css
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 

Semelhante a HTML Beginner's Guide

Web technologies-course 02.pptx
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptxStefan Oprea
 
Intro to html, css & sass
Intro to html, css & sassIntro to html, css & sass
Intro to html, css & sassSean Wolfe
 
Web forms and html (lect 1)
Web forms and html (lect 1)Web forms and html (lect 1)
Web forms and html (lect 1)Salman Memon
 
HTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxHTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxwewit44414
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2Sónia
 
CSS tutorial chapter 1
CSS tutorial chapter 1CSS tutorial chapter 1
CSS tutorial chapter 1jeweltutin
 
Xhtml and html5 basics
Xhtml and html5 basicsXhtml and html5 basics
Xhtml and html5 basicsmessinam
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptxMattMarino13
 
Web fundamental concept and tags
Web fundamental concept and tags Web fundamental concept and tags
Web fundamental concept and tags shameen khan
 
BITM3730 9-19.pptx
BITM3730 9-19.pptxBITM3730 9-19.pptx
BITM3730 9-19.pptxMattMarino13
 

Semelhante a HTML Beginner's Guide (20)

Css
CssCss
Css
 
Web technologies-course 02.pptx
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptx
 
Intro to html, css & sass
Intro to html, css & sassIntro to html, css & sass
Intro to html, css & sass
 
Web forms and html (lect 1)
Web forms and html (lect 1)Web forms and html (lect 1)
Web forms and html (lect 1)
 
HTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxHTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptx
 
Html and css
Html and cssHtml and css
Html and css
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
DHTML
DHTMLDHTML
DHTML
 
html
htmlhtml
html
 
CSS tutorial chapter 1
CSS tutorial chapter 1CSS tutorial chapter 1
CSS tutorial chapter 1
 
ppt.ppt
ppt.pptppt.ppt
ppt.ppt
 
Lab1_HTML.pptx
Lab1_HTML.pptxLab1_HTML.pptx
Lab1_HTML.pptx
 
Xhtml and html5 basics
Xhtml and html5 basicsXhtml and html5 basics
Xhtml and html5 basics
 
Batch -25 PPT.pptx
Batch -25 PPT.pptxBatch -25 PPT.pptx
Batch -25 PPT.pptx
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptx
 
Web fundamental concept and tags
Web fundamental concept and tags Web fundamental concept and tags
Web fundamental concept and tags
 
BITM3730 9-19.pptx
BITM3730 9-19.pptxBITM3730 9-19.pptx
BITM3730 9-19.pptx
 
CSS Introduction
CSS Introduction CSS Introduction
CSS Introduction
 
5. Frames & Forms.pdf
5. Frames & Forms.pdf5. Frames & Forms.pdf
5. Frames & Forms.pdf
 

Mais de Kamal Acharya

Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computerKamal Acharya
 
Introduction to Computer Security
Introduction to Computer SecurityIntroduction to Computer Security
Introduction to Computer SecurityKamal Acharya
 
Making decision and repeating in PHP
Making decision and repeating  in PHPMaking decision and repeating  in PHP
Making decision and repeating in PHPKamal Acharya
 
Working with arrays in php
Working with arrays in phpWorking with arrays in php
Working with arrays in phpKamal Acharya
 
Text and Numbers (Data Types)in PHP
Text and Numbers (Data Types)in PHPText and Numbers (Data Types)in PHP
Text and Numbers (Data Types)in PHPKamal Acharya
 
Capacity Planning of Data Warehousing
Capacity Planning of Data WarehousingCapacity Planning of Data Warehousing
Capacity Planning of Data WarehousingKamal Acharya
 
Information Privacy and Data Mining
Information Privacy and Data MiningInformation Privacy and Data Mining
Information Privacy and Data MiningKamal Acharya
 
Association Analysis in Data Mining
Association Analysis in Data MiningAssociation Analysis in Data Mining
Association Analysis in Data MiningKamal Acharya
 
Classification techniques in data mining
Classification techniques in data miningClassification techniques in data mining
Classification techniques in data miningKamal Acharya
 
Introduction to Data Mining and Data Warehousing
Introduction to Data Mining and Data WarehousingIntroduction to Data Mining and Data Warehousing
Introduction to Data Mining and Data WarehousingKamal Acharya
 

Mais de Kamal Acharya (20)

Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computer
 
Computer Arithmetic
Computer ArithmeticComputer Arithmetic
Computer Arithmetic
 
Introduction to Computer Security
Introduction to Computer SecurityIntroduction to Computer Security
Introduction to Computer Security
 
Session and Cookies
Session and CookiesSession and Cookies
Session and Cookies
 
Functions in php
Functions in phpFunctions in php
Functions in php
 
Web forms in php
Web forms in phpWeb forms in php
Web forms in php
 
Making decision and repeating in PHP
Making decision and repeating  in PHPMaking decision and repeating  in PHP
Making decision and repeating in PHP
 
Working with arrays in php
Working with arrays in phpWorking with arrays in php
Working with arrays in php
 
Text and Numbers (Data Types)in PHP
Text and Numbers (Data Types)in PHPText and Numbers (Data Types)in PHP
Text and Numbers (Data Types)in PHP
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
Capacity Planning of Data Warehousing
Capacity Planning of Data WarehousingCapacity Planning of Data Warehousing
Capacity Planning of Data Warehousing
 
Data Warehousing
Data WarehousingData Warehousing
Data Warehousing
 
Search Engines
Search EnginesSearch Engines
Search Engines
 
Web Mining
Web MiningWeb Mining
Web Mining
 
Information Privacy and Data Mining
Information Privacy and Data MiningInformation Privacy and Data Mining
Information Privacy and Data Mining
 
Cluster Analysis
Cluster AnalysisCluster Analysis
Cluster Analysis
 
Association Analysis in Data Mining
Association Analysis in Data MiningAssociation Analysis in Data Mining
Association Analysis in Data Mining
 
Classification techniques in data mining
Classification techniques in data miningClassification techniques in data mining
Classification techniques in data mining
 
Data Preprocessing
Data PreprocessingData Preprocessing
Data Preprocessing
 
Introduction to Data Mining and Data Warehousing
Introduction to Data Mining and Data WarehousingIntroduction to Data Mining and Data Warehousing
Introduction to Data Mining and Data Warehousing
 

Último

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 

Último (20)

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

HTML Beginner's Guide

  • 2. Introduction • Stands for Hypertext Markup Language • Most widely used language to write Web Pages • Hypertext refers to the way in which Web pages (HTML documents) are linked together • Is a Markup Language which means you use HTML to simply "mark- up" a text document with tags that tell a Web browser how to structure it to display • Is being widely used to format web pages with the help of different tags available in HTML language
  • 4.
  • 5. Basic Tags • Heading Tags • Paragraph Tags • Line Break Tag • Centering Tag • Horizontal Lines • Preserving Format • Non breaking space
  • 14. HTML Tags Vs Elements • <p> is starting tag • </p> is closing tag • <p>This is paragraph</p> is paragraph element • There are some HTML elements which don't need to be closed, such as <img.../>, <hr /> and <br /> elements • These are known as void elements
  • 16. HTML Attributes • Used to define the characteristics of an HTML element • Is placed inside the element's opening tag • All attributes are made up of two parts: a name and a value: • The name is the property you want to set • The value is what you want the value of the property to be set and always put within quotations • Example: Three possible values of align attribute: left, center and right. • Attribute names and attribute values are case-insensitive • However, the World Wide Web Consortium (W3C) recommends lowercase attributes/attribute values
  • 17.
  • 18. Core Attributes • The four core attributes that can be used on the majority of HTML elements are: • Id • Title • Class • Style
  • 19. The id Attribute • Used to uniquely identify any element within an HTML page • Two primary reasons to use an id attribute on an element: • If an element carries an id attribute as a unique identifier, it is possible to identify just that element and its content • If we have two elements of the same name within a Web page, we can use the id attribute to distinguish between elements that have the same name
  • 20. The title Attribute • Gives a suggested title for the element • Syntax for the title attribute is similar as id attribute
  • 21. The class attribute • Used to associate an element with a style sheet • Specifies the class of element • Will learn more about the use of the class attribute when we will learn Cascading Style Sheet (CSS)
  • 22. The style attribute • Allows us to specify Cascading Style Sheet (CSS) rules within the element
  • 23. Internationalization Attributes • There are three internationalization attributes, which are available for most all XHTML elements • dir • lang • xml:lang
  • 24. The dir Attribute • Allows you to indicate to the browser about the direction in which the text should flow • Can take one of two values, as we can see in the table that follows:
  • 25.
  • 26. The lang Attribute • Allows us to indicate the main language used in a document • Was kept in HTML only for backwards compatibility with earlier versions of HTML • Has been replaced by the xml:lang attribute in new XHTML documents • Values of the lang attribute are ISO-639 standard two-character language codes
  • 27.
  • 28. The xml:lang • Is the XHTML replacement for the lang attribute • The value of the xml:lang attribute should be an ISO-639 country code
  • 30.
  • 31. HTML Formatting • Bold Text • Italic Text • Underlined Text • Strike Text • Monospaced Font • Superscript Text • Subscript Text • Inserted Text • Deleted Text • Larger Text • Smaller Text
  • 42. Grouping Content • The <div> and <span> elements allow us to group together several elements to create sections or subsections of a page • For example, we might want to put all of the footnotes on a page within a <div> element to indicate that all of the elements within that <div> element relate to the footnotes • We might then attach a style to this <div> element so that they appear using a special set of style rules
  • 43.
  • 44.
  • 45. Phrase Tags • Emphasized Text • Marked Text • Strong Text • Text Abbreviation • Acronym Element • Text Direction • Special Terms • Quoting Text • Short Quotations • Text Citations • Computer Code • Address Text
  • 50. Acronym Element Title is missing from acronym
  • 58. Meta Tags • Specify additional important information about a document • Can be used to include name/value pairs describing properties of the HTML document, such as author, expiry date, a list of keywords, document author etc. • <meta> tag is used to provide such additional information • Is an empty element and so does not have a closing tag • Carries information within its attributes
  • 59. • Can include one or more meta tags in your document based on what information we want to keep in your document • Do not impact physical appearance of the document
  • 60.
  • 61. Comments • Are placed in between <!-- ... --> tags • Any content placed with-in <!-- ... --> tags will be treated as comment and will be completely ignored by the browser
  • 62.
  • 64. Images • Insert Image • Set Image Location • Set Image Width/Height • Set Image Border • Set Image Alignment
  • 65. Insert Image • Can insert any image in web page by using <img> tag • Syntax:
  • 66.
  • 71. Tables • Allow web authors to arrange data like text, images, links, other tables, etc. into rows and columns • Are created using the <table> tag in which the <tr> tag is used to create table rows and <td> tag is used to create data cells
  • 72.
  • 74. Cell Padding and Cell Spacing
  • 75.
  • 76. Colspan and Rowspan Attributes
  • 77.
  • 78. Tables Backgrounds • Can set table background using one of the following two ways: • bgcolor attribute - Can set background color for whole table or just for one cell • background attribute - Can set background image for whole table or just for one cell. • Can also set border color also using bordercolor attribute
  • 79.
  • 80.
  • 83. Table Header, Body, and Footer • The three elements for separating the head, body, and foot of a table are: • <thead> - to create a separate table header. • <tbody> - to indicate the main body of the table. • <tfoot> - to create a separate table footer.
  • 84.
  • 85.
  • 86. Nested Tables • Can use one table inside another table. • Not only tables can use almost all the tags inside table data tag <td>
  • 87.
  • 88.
  • 89. HTML LIST • Three ways for specifying lists of information • All lists must contain one or more list elements • Lists may contain: • <ul> • Unordered list • List items using plain bullets • <ol> • Ordered list • Use different schemes of numbers to list items • <dl> • Definition list • Arranges items in the same way as they are arranged in a dictionary
  • 92.
  • 95.
  • 97.
  • 98. Definition Lists • Supported by both HTML and XHTML • Entries are listed like in a dictionary or encyclopedia • Ideal way to present a glossary, list of terms, or other name/value list • Definition List makes use of following three tags • <dl> - Defines the start of the list • <dt> - A term • <dd> - Term definition • </dl> - Defines the end of the list
  • 99.
  • 102.
  • 103. Use of Base Path
  • 104. Linking to a Page Section
  • 108. FRAMES • Are used to divide browser window into multiple sections where each section can load a separate HTML document • A collection of frames in the browser window is known as a frameset • The window is divided into frames in a similar way the tables are organized: into rows and columns
  • 109. Disadvantages of Frames • There are few drawbacks with using frames, so it's never recommended to use frames in your webpages: • Some smaller devices cannot cope with frames often because their screen is not big enough to be divided up • Sometimes your page will be displayed differently on different computers due to different screen resolution • The browser's back button might not work as the user hopes • There are still few browsers that do not support frame technology
  • 110. Creating Frames • To use frames on a page we use <frameset> tag instead of <body> tag • The <frameset> tag defines, how to divide the window into frames • The rows attribute of <frameset> tag defines horizontal frames and cols attribute defines vertical frames • Each frame is indicated by <frame> tag and it defines which HTML document shall open into the frame
  • 111.
  • 112. Output
  • 113.
  • 114. Output
  • 115. IFRAMES • Can define an inline frame with HTML tag <iframe> • The <iframe> tag is not somehow related to <frameset> tag, instead, it can appear anywhere in your document • The <iframe> tag defines a rectangular region within the document in which the browser can display a separate document, including scrollbars and borders. • The src attribute is used to specify the URL of the document that occupies the inline frame
  • 116.
  • 117. FORMS • Are required, when we want to collect some data from the visitor • For example, during user registration we would like to collect information such as name, email address, credit card, etc. • Will take input from the site visitor and then will post it to a back-end application such as CGI, ASP Script or PHP script etc • There are various form elements available like text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc
  • 119. Form Controls • There are different types of form controls that you can use to collect data using HTML form: • Text Input Controls • Checkboxes Controls • Radio Box Controls • Select Box Controls • File Select boxes • Hidden Controls • Submit and Reset Button
  • 120. Text Input Controls • There are three types of text input used on forms: • Single-line text input controls • Used for items that require only one line of user input, such as search boxes or names • Created using HTML <input> tag • Password input controls • Also a single-line text input but it masks the character as soon as a user enters it • Are also created using HTML <input> tag • Multi-line text input controls • Used when the user is required to give details that may be longer than a single sentence • Are created using HTML <textarea> tag
  • 122.
  • 124.
  • 126.
  • 127. Checkbox Control • Are used when more than one option is required to be selected • Are also created using HTML <input> tag but type attribute is set to checkbox
  • 128.
  • 129.
  • 130. Radio Button Control • Are used when out of many options, just one option is required to be selected • Are also created using HTML <input> tag but type attribute is set to radio
  • 131.
  • 132.
  • 133. Select Box Control • A select box, also called drop down box which provides option to list down various options in the form of drop down list • User can select one or more options
  • 134. • Following is the list of important attributes of <select> tag:
  • 135. • Following is the list of important attributes of <option> tag:
  • 136.
  • 137. File Upload Box • If we want to allow a user to upload a file to our web site, we will need to use a file upload box, also known as a file select box • Also created using the <input> element but type attribute is set to file
  • 138.
  • 139. Button Controls • Various ways in HTML to create clickable buttons • Create a clickable button using <input> tag by setting its type attribute to button • The type attribute can take the following values:
  • 140. Hidden Form Controls • Are used to hide data inside the page which later on can be pushed to the server • Hides inside the code and does not appear on the actual page