SlideShare a Scribd company logo
Path to Code
Begin Your Salesforce Coding Adventure
Episode 14
Basics of HTML
Salesforce MVP / Developer
6x Salesforce Certifications
Follow me @sweety_abhi
Abhilasha Singh
Agenda
• Introduction to HTML
• Tags in HTML
• How to Insert Images
• LINKS
• Ordered & Unordered Lists
• FORMS
• Input Elements
• TABLES
• What is CSS?
• CSS STYLING
• How to Choose element by Name, Class, or ID
• References
Some House Rules
• Please mute your mic
• Keep adding questions in Zoom Q&A Window
• No questions is too small
• Questions will be answered in last 15 minutes
Introduction to HTML
Hyper Text Markup Language
What is HTML?
• HTML is a language for describing web pages.
• HTML stands for Hyper Text Markup Language
• HTML is a markup language
• A markup language is a set of markup tags
• The tags describe document content
• HTML documents contain HTML tags and plain text
• HTML documents are also called web pages
HTML ELEMENTS
"HTML tags" and "HTML elements" are often used to describe the
same thing.
HTML Element:
<p>This is a paragraph.</p>
HTML PAGE STRUCTURE
Tags in HTML
HTML TAGS
• HTML markup tags are usually called HTML tags
• HTML tags are keywords (tag names) surrounded by angle brackets like <html>
• HTML tags normally come in pairs like <b> and </b>
• The first tag in a pair is the start tag, the second tag is the end tag
• The end tag is written like the start tag, with a forward slash before the tag name
• Start and end tags are also called opening tags and closing tags
• For example, the expression <B> Hello </B> would cause the word ‘Hello’ to
appear in bold face on a Web page
Text Formatting
• HTML also defines special elements for defining text with a special meaning.
• HTML uses elements like <strong> and <i> for formatting output, like bold or italic
text.
Text Formatting Tags:
<strong> Bold Face </strong>
<I> Italics </I>
<U> Underline </U>
<P> New Paragraph </P>
<BR> Single Line Break
HTML Headings
• Headings are used by many Search Engines to index website
• Headings are defined with the <h1> to <h6> tags
• <h1> defines the most important heading. <h6> defines the least
important heading.
• Example:
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
HTML Paragraphs
HTML Paragraphs:
• HTML paragraphs are defined with the <p> tag
• Example:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Comment Statements
• Comment statements are notes in the HTML code that explain the
important features of the code
• The comments do not appear on the Web page itself but are a useful
reference to the author of the page and other programmers
• To create a comment statement use:
<!-- Write your comment here --> tags
How to Insert Images
Inserting Images
• Syntax: <IMG SRC = “url”>, where image.ext indicates the location of
the image file
• Some browsers don’t support images. In this case, the ALT attribute
can be used to create text that appears instead of the image.
• Example:
<IMG SRC=“satellite.jpg” ALT = “Picture of satellite”>
LINKS
Links
• A link lets you move from one page to another, play movies and sound,
send email, download files, and more….
• To create a link type
<a href=“page.html”> label </a>
Example: Links
• To create a link to HTML Images, I would type:
<a href="html_images.asp">HTML Images</a>
• To create a link to W3C, I would type:
<a href="https://www.w3.org/">W3C</a>
Ordered & Unordered Lists
Ordered Lists
• Ordered lists are a list of
numbered items.
• To create an ordered list, type:
<OL>
<LI> This is step one.
<LI> This is step two.
<LI> This is step three.
</OL>
Here’s how it would look on the
Web:
More Ordered Lists….
<ol type="1|a|A|i|I">
• The TYPE=x attribute allows you to change the the kind of symbol
that appears in the list.
• A is for capital letters
• a is for lowercase letters
• I is for capital roman numerals
• i is for lowercase roman numerals
• 1 is for Default (decimal number)
Unordered Lists
• An unordered list is a list of
bulleted items
• To create an unordered list,
type:
<UL>
<LI> First item in list
<LI> Second item in list
<LI> Third item in list
</UL>
Here’s how it would look on
the Web:
More Unordered Lists….
<ul type="disc|circle|square">
• The TYPE=shape attribute allows you to change the type of bullet that
appears
• circle corresponds to an empty round bullet
• square corresponds to a square bullet
• disc corresponds to a solid round bullet; this is the default value
Input Elements
Text, Radio Buttons, Checkbox, Submit button, Reset Button
Creating Text Boxes
• To create a text box,
type <INPUT TYPE=“text” NAME=“name” VALUE=“value” SIZE=n
MAXLENGTH=n>
• The NAME, VALUE, SIZE, and MAXLENGTH attributes are optional
Example: Text Box
First Name: <INPUT TYPE="text" NAME="FirstName” VALUE="First Name" SIZE=20>
<BR><BR>
Last Name: <INPUT TYPE="text" NAME="LastName" VALUE="Last Name" SIZE=20>
<BR><BR>
• Here’s how it would look on the Web:
Creating Radio Buttons
• To create a radio button, type <INPUT TYPE=“radio” NAME=“name” VALUE=“data”>Label, where “data” is the
text that will be sent to the server if the button is checked and “Label” is the text that identifies the button to the
user
• Example:
<B> Size: </B>
<INPUT TYPE="radio" NAME="Size" VALUE="Large">Large<br>
<INPUT TYPE="radio" NAME="Size" VALUE="Medium">Medium<br>
<INPUT TYPE="radio" NAME="Size" VALUE="Small">Small<br>
Creating Checkboxes
• To create a checkbox, type <INPUT TYPE=“checkbox” NAME=“name” VALUE=“value”>Label
• If you give a group of radio buttons or checkboxes the same name, the user will only be able to select one
button or box at a time
• Example:
<B> Color: </B>
<INPUT TYPE="checkbox" NAME="Color" VALUE="Red">Red
<INPUT TYPE="checkbox" NAME="Color" VALUE="Navy">Navy
<INPUT TYPE="checkbox" NAME="Color" VALUE="Black">Black
Creating Drop-down Menus
• To create a drop-down menu, type <SELECT NAME=“name” SIZE=n MULTIPLE>
• Then type <OPTION VALUE= “value”>Label
• In this case the SIZE attribute specifies the height of the menu in lines and MULTIPLE allows users to select more than one
menu option
• Example:
<B>WHICH IS FAVOURITE FRUIT:</B>
<SELECT>
<OPTION VALUE="MANGOES">MANGOES
<OPTION VALUE="PAPAYA">PAPAYA
<OPTION VALUE="GUAVA">GUAVA
<OPTION VALUE="BANANA"> BANANA
<OPTION VALUE="PINEAPPLE">PINEAPPLE
</SELECT>
TABLES
Tables
• Tables can be used to display rows and columns of data, create multi-
column text, captions for images, and sidebars
• The <TABLE> tag is used to create a table; the <TR> tag defines the
beginning of a row while the <TD> tag defines the beginning of a cell
Creating Simple Table
<TABLE BORDER=10>
<TR>
<TD>One</TD>
<TD>Two</TD>
</TR>
<TR>
<TD>Three</TD>
<TD>Four</TD>
</TR>
</TABLE>
Here’s how it would look on the
Web:
What is CSS?
Cascading Style Sheet
What is CSS?
• A cascading style sheet(CSS) is a web
page derived from multiple sources
with a defined order of precedence
where the definition of any style
element conflict
• CSS saves a lot of work
• CSS define how HTML elements are to
be displayed
Syntax of CSS
• A CSS rule set consist of a selector and a declaration block
• Selector Declaration Declaration Property Value Property Value
• The selector points to the HTML element you want to style
• The Declaration block contains one or more declarations separated by
semicolons
• Each declaration includes a property name and a value, separated by a
colon
CSS STYLING
Cascading Style Sheet
CSS Background Color
• The background-color property specifies the background color of an
element
• The background of an element is the total size of the element,
including padding and border (but not the margin)
• The background color of a page is defined in the body selector
Example:
• body {background-color:#b0c4de;}
• body {background-color: coral;}
CSS Background Color - Syntax
background-color: color|transparent|initial|inherit;
• Color Specifies the background color.
• Transparent Specifies that the background color should be
transparent. This is default
• Initial Sets this property to its default value
• Inherit Inherits this property from its parent element
CSS Font Family
• The font family of a text is set with the font-family property
• The font-family property should hold several font names as a
"fallback" system. If the browser does not support the first font, it
tries the next font, and so on
• Start with the font you want, and end with a generic family, to let
the browser pick a similar font in the generic family, if no other
fonts are available
CSS Font Family - Syntax
font-family: family-name|generic-family|initial|inherit;
• family-name generic-family A prioritized list of font family names and/or generic family names
• initial Sets this property to its default value
• inherit Inherits this property from its parent element
• Examples:
p.a {
font-family: "Times New Roman", Times, serif;
}
p.b {
font-family: Arial, Helvetica, sans-serif;
}
CSS Font Size
• The font-size property sets the size of the text
• Being able to manage the text size is important in web design.
However, you should not use font size adjustments to make
paragraphs look like headings, or headings look like paragraphs
• Always use the proper HTML tags, like <h1> - <h6> for headings and
<p> for paragraphs. The font-size value can be an absolute, or
relative size.
CSS Font Size - Syntax
font-size:medium|xx-small|x-small|small|large|x-large|xx-
large|smaller|larger|length|initial|inherit;
• Examples:
div.a {
font-size: 15px;
}
div.b {
font-size: large;
}
div.c {
font-size: 150%;
}
CSS Font Size - Syntax Property Values
Value Description
Medium Sets the font-size to a medium size. This is
default
xx-small Sets the font-size to an xx-small size
x-small Sets the font-size to an extra small size
small Sets the font-size to a small size
large Sets the font-size to a large size
x-large Sets the font-size to an extra-large size
CSS Font Size - Syntax Property Values
Value Description
xx-large smaller Sets the font-size to a smaller size
than the parent element
Sets the font-size to an xx-large size
larger Sets the font-size to a larger size than the parent
element
length Sets the font-size to a fixed size in px, cm, etc
% Sets the font-size to a percent of the parent element's
font size
Initial Sets this property to its default value
Inherit Inherits this property from its parent element
CSS Margin
• The CSS margin properties are used to create space around elements,
outside of any defined borders.
• With CSS, you have full control over the margins. There are properties for
setting the margin for each side of an element (top, right, bottom, and
left).
• CSS has properties for specifying the margin for each side of an element:
• margin-top
• margin-right
• margin-bottom
• margin-left
CSS Margin - Syntax
margin: length|auto|initial|inherit;
All the margin properties can have the following values:
• length - Specifies a margin in px, pt, cm, etc. Default value is 0. Negative
values are allowed
• auto - the browser calculates the margin
• % - Specifies a margin in percent of the width of the containing element
• inherit - specifies that the margin should be inherited from the parent
element
• initial - Sets this property to its default value
CSS Padding
• The CSS padding properties are used to generate space around an element's content, inside of
any defined borders
• With CSS, you have full control over the padding. There are properties for setting the padding
for each side of an element (top, right, bottom, and left)
• Syntax: padding: length|initial|inherit;
• Length- Specifies the padding in px, pt, cm, etc. Default value is 0
• %- Specifies the padding in percent of the width of the containing element
• Initial- Sets this property to its default value
• Inherit- Inherits this property from its parent element
• Example: Set the padding for all four sides of a <p> element to 35 pixels
p {
padding: 35px;
}
How to choose element by
Name, Class or Id
CSS Name Selector
p {
background-color: yellow;
}
Above CSS will make every paragraph background color as yellow.
CSS .class Selector
• The .class selector selects elements with a specific class attribute.
• To select elements with a specific class, write a period (.) character, followed by the name of the
class.
• You can also specify that only specific HTML elements should be affected by a class. To do this, start
with the element name, then write the period (.) character, followed by the name of the class
• Syntax:
.class {
css declarations;
}
• Example: Select and style all elements with class="intro":
.intro {
background-color: yellow;
}
CSS #id Selector
• The #id selector styles the element with the specified id.
• Syntax:
#id {
css declarations;
}
• Example: Style the element with id="firstname":
#firstname {
background-color: yellow;
}
Resources
❑ HTML TUTORIAL : W3SCHOOLS
❑ HTML.COM
❑ LEARN HTML
❑ CSS TUTORIAL : W3SCHOOLS
❑ LEARN CSS
Q & A
Thank You
Ad

More Related Content

What's hot (20)

OAuth with Salesforce - Demystified
OAuth with Salesforce - DemystifiedOAuth with Salesforce - Demystified
OAuth with Salesforce - Demystified
Calvin Noronha
 
Endless Use Cases with Salesforce Experience Cloud by Dar Veverka
Endless Use Cases with Salesforce Experience Cloud by Dar VeverkaEndless Use Cases with Salesforce Experience Cloud by Dar Veverka
Endless Use Cases with Salesforce Experience Cloud by Dar Veverka
Alesia Dvorkina
 
Salesforce Connect
Salesforce Connect Salesforce Connect
Salesforce Connect
Jitendra Joysar ☁
 
SaaS Architecture.pdf
SaaS Architecture.pdfSaaS Architecture.pdf
SaaS Architecture.pdf
Simform
 
SOQL in salesforce || Salesforce Object Query Language || Salesforce
SOQL in salesforce || Salesforce Object Query Language || SalesforceSOQL in salesforce || Salesforce Object Query Language || Salesforce
SOQL in salesforce || Salesforce Object Query Language || Salesforce
Amit Singh
 
Episode 4 - Introduction to SOQL in Salesforce
Episode 4  - Introduction to SOQL in SalesforceEpisode 4  - Introduction to SOQL in Salesforce
Episode 4 - Introduction to SOQL in Salesforce
Jitendra Zaa
 
Understanding the Salesforce Architecture: How We Do the Magic We Do
Understanding the Salesforce Architecture: How We Do the Magic We DoUnderstanding the Salesforce Architecture: How We Do the Magic We Do
Understanding the Salesforce Architecture: How We Do the Magic We Do
Salesforce Developers
 
Introduction to Lightning Web Component
Introduction to Lightning Web Component Introduction to Lightning Web Component
Introduction to Lightning Web Component
SmritiSharan1
 
Introduction to lightning web component
Introduction to lightning web component Introduction to lightning web component
Introduction to lightning web component
Sudipta Deb ☁
 
Lightning web components - Introduction, component Lifecycle, Events, decorat...
Lightning web components - Introduction, component Lifecycle, Events, decorat...Lightning web components - Introduction, component Lifecycle, Events, decorat...
Lightning web components - Introduction, component Lifecycle, Events, decorat...
Nidhi Sharma
 
Introduction to Apex Triggers
Introduction to Apex TriggersIntroduction to Apex Triggers
Introduction to Apex Triggers
Salesforce Developers
 
Salesforce Tableau CRM - Quick Overview
Salesforce Tableau CRM - Quick OverviewSalesforce Tableau CRM - Quick Overview
Salesforce Tableau CRM - Quick Overview
Harshala Shewale ☁
 
LWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura InteroperabilityLWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura Interoperability
Salesforce Developers
 
Episode 10 - External Services in Salesforce
Episode 10 - External Services in SalesforceEpisode 10 - External Services in Salesforce
Episode 10 - External Services in Salesforce
Jitendra Zaa
 
Lightning web components
Lightning web components Lightning web components
Lightning web components
Cloud Analogy
 
Lightning web components
Lightning web componentsLightning web components
Lightning web components
Amit Chaudhary
 
Partner Community User Guide for Consulting Partners
Partner Community User Guide for Consulting PartnersPartner Community User Guide for Consulting Partners
Partner Community User Guide for Consulting Partners
Salesforce Partners
 
Asynchronous apex
Asynchronous apexAsynchronous apex
Asynchronous apex
furuCRM株式会社 CEO/Dreamforce Vietnam Founder
 
Securing Kafka
Securing Kafka Securing Kafka
Securing Kafka
confluent
 
Introduction to lightning components
Introduction to lightning componentsIntroduction to lightning components
Introduction to lightning components
Mohith Shrivastava
 
OAuth with Salesforce - Demystified
OAuth with Salesforce - DemystifiedOAuth with Salesforce - Demystified
OAuth with Salesforce - Demystified
Calvin Noronha
 
Endless Use Cases with Salesforce Experience Cloud by Dar Veverka
Endless Use Cases with Salesforce Experience Cloud by Dar VeverkaEndless Use Cases with Salesforce Experience Cloud by Dar Veverka
Endless Use Cases with Salesforce Experience Cloud by Dar Veverka
Alesia Dvorkina
 
SaaS Architecture.pdf
SaaS Architecture.pdfSaaS Architecture.pdf
SaaS Architecture.pdf
Simform
 
SOQL in salesforce || Salesforce Object Query Language || Salesforce
SOQL in salesforce || Salesforce Object Query Language || SalesforceSOQL in salesforce || Salesforce Object Query Language || Salesforce
SOQL in salesforce || Salesforce Object Query Language || Salesforce
Amit Singh
 
Episode 4 - Introduction to SOQL in Salesforce
Episode 4  - Introduction to SOQL in SalesforceEpisode 4  - Introduction to SOQL in Salesforce
Episode 4 - Introduction to SOQL in Salesforce
Jitendra Zaa
 
Understanding the Salesforce Architecture: How We Do the Magic We Do
Understanding the Salesforce Architecture: How We Do the Magic We DoUnderstanding the Salesforce Architecture: How We Do the Magic We Do
Understanding the Salesforce Architecture: How We Do the Magic We Do
Salesforce Developers
 
Introduction to Lightning Web Component
Introduction to Lightning Web Component Introduction to Lightning Web Component
Introduction to Lightning Web Component
SmritiSharan1
 
Introduction to lightning web component
Introduction to lightning web component Introduction to lightning web component
Introduction to lightning web component
Sudipta Deb ☁
 
Lightning web components - Introduction, component Lifecycle, Events, decorat...
Lightning web components - Introduction, component Lifecycle, Events, decorat...Lightning web components - Introduction, component Lifecycle, Events, decorat...
Lightning web components - Introduction, component Lifecycle, Events, decorat...
Nidhi Sharma
 
Salesforce Tableau CRM - Quick Overview
Salesforce Tableau CRM - Quick OverviewSalesforce Tableau CRM - Quick Overview
Salesforce Tableau CRM - Quick Overview
Harshala Shewale ☁
 
LWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura InteroperabilityLWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura Interoperability
Salesforce Developers
 
Episode 10 - External Services in Salesforce
Episode 10 - External Services in SalesforceEpisode 10 - External Services in Salesforce
Episode 10 - External Services in Salesforce
Jitendra Zaa
 
Lightning web components
Lightning web components Lightning web components
Lightning web components
Cloud Analogy
 
Lightning web components
Lightning web componentsLightning web components
Lightning web components
Amit Chaudhary
 
Partner Community User Guide for Consulting Partners
Partner Community User Guide for Consulting PartnersPartner Community User Guide for Consulting Partners
Partner Community User Guide for Consulting Partners
Salesforce Partners
 
Securing Kafka
Securing Kafka Securing Kafka
Securing Kafka
confluent
 
Introduction to lightning components
Introduction to lightning componentsIntroduction to lightning components
Introduction to lightning components
Mohith Shrivastava
 

Similar to Episode 14 - Basics of HTML for Salesforce (20)

IntroHTML.ppt
IntroHTML.pptIntroHTML.ppt
IntroHTML.ppt
abhishek kumar
 
HTML.ppt
HTML.pptHTML.ppt
HTML.ppt
HatemMagdyMohamed
 
IntroHTML.ppt
IntroHTML.pptIntroHTML.ppt
IntroHTML.ppt
HatemMagdyMohamed
 
Lecture17.pdf
Lecture17.pdfLecture17.pdf
Lecture17.pdf
JoyPalit
 
Introduction to HTML programming for webpages.pdf
Introduction to HTML programming for webpages.pdfIntroduction to HTML programming for webpages.pdf
Introduction to HTML programming for webpages.pdf
Mahmoud268161
 
html
htmlhtml
html
tumetr1
 
Html
HtmlHtml
Html
baabtra.com - No. 1 supplier of quality freshers
 
1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx
MattMarino13
 
Web Design.ppt
Web Design.pptWeb Design.ppt
Web Design.ppt
Dr.R.SUGANYA RENGARAJ
 
HTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptHTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).ppt
Dianajeon3
 
Html
HtmlHtml
Html
baabtra.com - No. 1 supplier of quality freshers
 
Learn html Basics
Learn html BasicsLearn html Basics
Learn html Basics
McSoftsis
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptx
MattMarino13
 
BITM3730 9-19.pptx
BITM3730 9-19.pptxBITM3730 9-19.pptx
BITM3730 9-19.pptx
MattMarino13
 
FYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcssFYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcss
Arti Parab Academics
 
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptxlearnhtmlbyvipuladissanayake-170516061515 (1).pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
ManuAbraham17
 
Web Design HTML for beginners and advanced learners .pptx
Web Design HTML for beginners and advanced learners .pptxWeb Design HTML for beginners and advanced learners .pptx
Web Design HTML for beginners and advanced learners .pptx
mark575496
 
Unit 2 (html)
Unit 2  (html)Unit 2  (html)
Unit 2 (html)
manochitra10
 
Web development basics
Web development basicsWeb development basics
Web development basics
Kalluri Vinay Reddy
 
BITM3730 9-12.pptx
BITM3730 9-12.pptxBITM3730 9-12.pptx
BITM3730 9-12.pptx
MattMarino13
 
Ad

More from Jitendra Zaa (20)

Episode 13 - Advanced Apex Triggers
Episode 13 - Advanced Apex TriggersEpisode 13 - Advanced Apex Triggers
Episode 13 - Advanced Apex Triggers
Jitendra Zaa
 
Episode 18 - Asynchronous Apex
Episode 18 - Asynchronous ApexEpisode 18 - Asynchronous Apex
Episode 18 - Asynchronous Apex
Jitendra Zaa
 
Episode 15 - Basics of Javascript
Episode 15 - Basics of JavascriptEpisode 15 - Basics of Javascript
Episode 15 - Basics of Javascript
Jitendra Zaa
 
Episode 23 - Design Pattern 3
Episode 23 - Design Pattern 3Episode 23 - Design Pattern 3
Episode 23 - Design Pattern 3
Jitendra Zaa
 
Episode 24 - Live Q&A for getting started with Salesforce
Episode 24 - Live Q&A for getting started with SalesforceEpisode 24 - Live Q&A for getting started with Salesforce
Episode 24 - Live Q&A for getting started with Salesforce
Jitendra Zaa
 
Episode 22 - Design Pattern 2
Episode 22 - Design Pattern 2Episode 22 - Design Pattern 2
Episode 22 - Design Pattern 2
Jitendra Zaa
 
Episode 21 - Design Pattern 1
Episode 21 - Design Pattern 1Episode 21 - Design Pattern 1
Episode 21 - Design Pattern 1
Jitendra Zaa
 
Episode 20 - Trigger Frameworks in Salesforce
Episode 20 - Trigger Frameworks in SalesforceEpisode 20 - Trigger Frameworks in Salesforce
Episode 20 - Trigger Frameworks in Salesforce
Jitendra Zaa
 
Episode 19 - Asynchronous Apex - Batch apex & schedulers
Episode 19 - Asynchronous Apex - Batch apex & schedulersEpisode 19 - Asynchronous Apex - Batch apex & schedulers
Episode 19 - Asynchronous Apex - Batch apex & schedulers
Jitendra Zaa
 
Episode 17 - Handling Events in Lightning Web Component
Episode 17 - Handling Events in Lightning Web ComponentEpisode 17 - Handling Events in Lightning Web Component
Episode 17 - Handling Events in Lightning Web Component
Jitendra Zaa
 
Episode 16 - Introduction to LWC
Episode 16 - Introduction to LWCEpisode 16 - Introduction to LWC
Episode 16 - Introduction to LWC
Jitendra Zaa
 
Introduction to mulesoft - Alpharetta Developer Group Meet
Introduction to mulesoft - Alpharetta Developer Group MeetIntroduction to mulesoft - Alpharetta Developer Group Meet
Introduction to mulesoft - Alpharetta Developer Group Meet
Jitendra Zaa
 
Episode 12 - Basics of Trigger
Episode 12 - Basics of TriggerEpisode 12 - Basics of Trigger
Episode 12 - Basics of Trigger
Jitendra Zaa
 
Episode 11 building & exposing rest api in salesforce v1.0
Episode 11   building & exposing rest api in salesforce v1.0Episode 11   building & exposing rest api in salesforce v1.0
Episode 11 building & exposing rest api in salesforce v1.0
Jitendra Zaa
 
South East Dreamin 2019
South East Dreamin 2019South East Dreamin 2019
South East Dreamin 2019
Jitendra Zaa
 
Episode 9 - Building soap integrations in salesforce
Episode 9 - Building soap integrations  in salesforceEpisode 9 - Building soap integrations  in salesforce
Episode 9 - Building soap integrations in salesforce
Jitendra Zaa
 
Episode 8 - Path To Code - Integrate Salesforce with external system using R...
Episode 8  - Path To Code - Integrate Salesforce with external system using R...Episode 8  - Path To Code - Integrate Salesforce with external system using R...
Episode 8 - Path To Code - Integrate Salesforce with external system using R...
Jitendra Zaa
 
Episode 6 - DML, Transaction and Error handling in Salesforce
Episode 6 - DML, Transaction and Error handling in SalesforceEpisode 6 - DML, Transaction and Error handling in Salesforce
Episode 6 - DML, Transaction and Error handling in Salesforce
Jitendra Zaa
 
Episode 5 - Writing unit tests in Salesforce
Episode 5 - Writing unit tests in SalesforceEpisode 5 - Writing unit tests in Salesforce
Episode 5 - Writing unit tests in Salesforce
Jitendra Zaa
 
Lightning Web Component in Salesforce
Lightning Web Component in SalesforceLightning Web Component in Salesforce
Lightning Web Component in Salesforce
Jitendra Zaa
 
Episode 13 - Advanced Apex Triggers
Episode 13 - Advanced Apex TriggersEpisode 13 - Advanced Apex Triggers
Episode 13 - Advanced Apex Triggers
Jitendra Zaa
 
Episode 18 - Asynchronous Apex
Episode 18 - Asynchronous ApexEpisode 18 - Asynchronous Apex
Episode 18 - Asynchronous Apex
Jitendra Zaa
 
Episode 15 - Basics of Javascript
Episode 15 - Basics of JavascriptEpisode 15 - Basics of Javascript
Episode 15 - Basics of Javascript
Jitendra Zaa
 
Episode 23 - Design Pattern 3
Episode 23 - Design Pattern 3Episode 23 - Design Pattern 3
Episode 23 - Design Pattern 3
Jitendra Zaa
 
Episode 24 - Live Q&A for getting started with Salesforce
Episode 24 - Live Q&A for getting started with SalesforceEpisode 24 - Live Q&A for getting started with Salesforce
Episode 24 - Live Q&A for getting started with Salesforce
Jitendra Zaa
 
Episode 22 - Design Pattern 2
Episode 22 - Design Pattern 2Episode 22 - Design Pattern 2
Episode 22 - Design Pattern 2
Jitendra Zaa
 
Episode 21 - Design Pattern 1
Episode 21 - Design Pattern 1Episode 21 - Design Pattern 1
Episode 21 - Design Pattern 1
Jitendra Zaa
 
Episode 20 - Trigger Frameworks in Salesforce
Episode 20 - Trigger Frameworks in SalesforceEpisode 20 - Trigger Frameworks in Salesforce
Episode 20 - Trigger Frameworks in Salesforce
Jitendra Zaa
 
Episode 19 - Asynchronous Apex - Batch apex & schedulers
Episode 19 - Asynchronous Apex - Batch apex & schedulersEpisode 19 - Asynchronous Apex - Batch apex & schedulers
Episode 19 - Asynchronous Apex - Batch apex & schedulers
Jitendra Zaa
 
Episode 17 - Handling Events in Lightning Web Component
Episode 17 - Handling Events in Lightning Web ComponentEpisode 17 - Handling Events in Lightning Web Component
Episode 17 - Handling Events in Lightning Web Component
Jitendra Zaa
 
Episode 16 - Introduction to LWC
Episode 16 - Introduction to LWCEpisode 16 - Introduction to LWC
Episode 16 - Introduction to LWC
Jitendra Zaa
 
Introduction to mulesoft - Alpharetta Developer Group Meet
Introduction to mulesoft - Alpharetta Developer Group MeetIntroduction to mulesoft - Alpharetta Developer Group Meet
Introduction to mulesoft - Alpharetta Developer Group Meet
Jitendra Zaa
 
Episode 12 - Basics of Trigger
Episode 12 - Basics of TriggerEpisode 12 - Basics of Trigger
Episode 12 - Basics of Trigger
Jitendra Zaa
 
Episode 11 building & exposing rest api in salesforce v1.0
Episode 11   building & exposing rest api in salesforce v1.0Episode 11   building & exposing rest api in salesforce v1.0
Episode 11 building & exposing rest api in salesforce v1.0
Jitendra Zaa
 
South East Dreamin 2019
South East Dreamin 2019South East Dreamin 2019
South East Dreamin 2019
Jitendra Zaa
 
Episode 9 - Building soap integrations in salesforce
Episode 9 - Building soap integrations  in salesforceEpisode 9 - Building soap integrations  in salesforce
Episode 9 - Building soap integrations in salesforce
Jitendra Zaa
 
Episode 8 - Path To Code - Integrate Salesforce with external system using R...
Episode 8  - Path To Code - Integrate Salesforce with external system using R...Episode 8  - Path To Code - Integrate Salesforce with external system using R...
Episode 8 - Path To Code - Integrate Salesforce with external system using R...
Jitendra Zaa
 
Episode 6 - DML, Transaction and Error handling in Salesforce
Episode 6 - DML, Transaction and Error handling in SalesforceEpisode 6 - DML, Transaction and Error handling in Salesforce
Episode 6 - DML, Transaction and Error handling in Salesforce
Jitendra Zaa
 
Episode 5 - Writing unit tests in Salesforce
Episode 5 - Writing unit tests in SalesforceEpisode 5 - Writing unit tests in Salesforce
Episode 5 - Writing unit tests in Salesforce
Jitendra Zaa
 
Lightning Web Component in Salesforce
Lightning Web Component in SalesforceLightning Web Component in Salesforce
Lightning Web Component in Salesforce
Jitendra Zaa
 
Ad

Recently uploaded (20)

LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 

Episode 14 - Basics of HTML for Salesforce

  • 1. Path to Code Begin Your Salesforce Coding Adventure
  • 3. Salesforce MVP / Developer 6x Salesforce Certifications Follow me @sweety_abhi Abhilasha Singh
  • 4. Agenda • Introduction to HTML • Tags in HTML • How to Insert Images • LINKS • Ordered & Unordered Lists • FORMS • Input Elements • TABLES • What is CSS? • CSS STYLING • How to Choose element by Name, Class, or ID • References
  • 5. Some House Rules • Please mute your mic • Keep adding questions in Zoom Q&A Window • No questions is too small • Questions will be answered in last 15 minutes
  • 6. Introduction to HTML Hyper Text Markup Language
  • 7. What is HTML? • HTML is a language for describing web pages. • HTML stands for Hyper Text Markup Language • HTML is a markup language • A markup language is a set of markup tags • The tags describe document content • HTML documents contain HTML tags and plain text • HTML documents are also called web pages
  • 8. HTML ELEMENTS "HTML tags" and "HTML elements" are often used to describe the same thing. HTML Element: <p>This is a paragraph.</p>
  • 11. HTML TAGS • HTML markup tags are usually called HTML tags • HTML tags are keywords (tag names) surrounded by angle brackets like <html> • HTML tags normally come in pairs like <b> and </b> • The first tag in a pair is the start tag, the second tag is the end tag • The end tag is written like the start tag, with a forward slash before the tag name • Start and end tags are also called opening tags and closing tags • For example, the expression <B> Hello </B> would cause the word ‘Hello’ to appear in bold face on a Web page
  • 12. Text Formatting • HTML also defines special elements for defining text with a special meaning. • HTML uses elements like <strong> and <i> for formatting output, like bold or italic text. Text Formatting Tags: <strong> Bold Face </strong> <I> Italics </I> <U> Underline </U> <P> New Paragraph </P> <BR> Single Line Break
  • 13. HTML Headings • Headings are used by many Search Engines to index website • Headings are defined with the <h1> to <h6> tags • <h1> defines the most important heading. <h6> defines the least important heading. • Example: <h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3>
  • 14. HTML Paragraphs HTML Paragraphs: • HTML paragraphs are defined with the <p> tag • Example: <p>This is a paragraph.</p> <p>This is another paragraph.</p>
  • 15. Comment Statements • Comment statements are notes in the HTML code that explain the important features of the code • The comments do not appear on the Web page itself but are a useful reference to the author of the page and other programmers • To create a comment statement use: <!-- Write your comment here --> tags
  • 16. How to Insert Images
  • 17. Inserting Images • Syntax: <IMG SRC = “url”>, where image.ext indicates the location of the image file • Some browsers don’t support images. In this case, the ALT attribute can be used to create text that appears instead of the image. • Example: <IMG SRC=“satellite.jpg” ALT = “Picture of satellite”>
  • 18. LINKS
  • 19. Links • A link lets you move from one page to another, play movies and sound, send email, download files, and more…. • To create a link type <a href=“page.html”> label </a>
  • 20. Example: Links • To create a link to HTML Images, I would type: <a href="html_images.asp">HTML Images</a> • To create a link to W3C, I would type: <a href="https://www.w3.org/">W3C</a>
  • 22. Ordered Lists • Ordered lists are a list of numbered items. • To create an ordered list, type: <OL> <LI> This is step one. <LI> This is step two. <LI> This is step three. </OL> Here’s how it would look on the Web:
  • 23. More Ordered Lists…. <ol type="1|a|A|i|I"> • The TYPE=x attribute allows you to change the the kind of symbol that appears in the list. • A is for capital letters • a is for lowercase letters • I is for capital roman numerals • i is for lowercase roman numerals • 1 is for Default (decimal number)
  • 24. Unordered Lists • An unordered list is a list of bulleted items • To create an unordered list, type: <UL> <LI> First item in list <LI> Second item in list <LI> Third item in list </UL> Here’s how it would look on the Web:
  • 25. More Unordered Lists…. <ul type="disc|circle|square"> • The TYPE=shape attribute allows you to change the type of bullet that appears • circle corresponds to an empty round bullet • square corresponds to a square bullet • disc corresponds to a solid round bullet; this is the default value
  • 26. Input Elements Text, Radio Buttons, Checkbox, Submit button, Reset Button
  • 27. Creating Text Boxes • To create a text box, type <INPUT TYPE=“text” NAME=“name” VALUE=“value” SIZE=n MAXLENGTH=n> • The NAME, VALUE, SIZE, and MAXLENGTH attributes are optional
  • 28. Example: Text Box First Name: <INPUT TYPE="text" NAME="FirstName” VALUE="First Name" SIZE=20> <BR><BR> Last Name: <INPUT TYPE="text" NAME="LastName" VALUE="Last Name" SIZE=20> <BR><BR> • Here’s how it would look on the Web:
  • 29. Creating Radio Buttons • To create a radio button, type <INPUT TYPE=“radio” NAME=“name” VALUE=“data”>Label, where “data” is the text that will be sent to the server if the button is checked and “Label” is the text that identifies the button to the user • Example: <B> Size: </B> <INPUT TYPE="radio" NAME="Size" VALUE="Large">Large<br> <INPUT TYPE="radio" NAME="Size" VALUE="Medium">Medium<br> <INPUT TYPE="radio" NAME="Size" VALUE="Small">Small<br>
  • 30. Creating Checkboxes • To create a checkbox, type <INPUT TYPE=“checkbox” NAME=“name” VALUE=“value”>Label • If you give a group of radio buttons or checkboxes the same name, the user will only be able to select one button or box at a time • Example: <B> Color: </B> <INPUT TYPE="checkbox" NAME="Color" VALUE="Red">Red <INPUT TYPE="checkbox" NAME="Color" VALUE="Navy">Navy <INPUT TYPE="checkbox" NAME="Color" VALUE="Black">Black
  • 31. Creating Drop-down Menus • To create a drop-down menu, type <SELECT NAME=“name” SIZE=n MULTIPLE> • Then type <OPTION VALUE= “value”>Label • In this case the SIZE attribute specifies the height of the menu in lines and MULTIPLE allows users to select more than one menu option • Example: <B>WHICH IS FAVOURITE FRUIT:</B> <SELECT> <OPTION VALUE="MANGOES">MANGOES <OPTION VALUE="PAPAYA">PAPAYA <OPTION VALUE="GUAVA">GUAVA <OPTION VALUE="BANANA"> BANANA <OPTION VALUE="PINEAPPLE">PINEAPPLE </SELECT>
  • 33. Tables • Tables can be used to display rows and columns of data, create multi- column text, captions for images, and sidebars • The <TABLE> tag is used to create a table; the <TR> tag defines the beginning of a row while the <TD> tag defines the beginning of a cell
  • 34. Creating Simple Table <TABLE BORDER=10> <TR> <TD>One</TD> <TD>Two</TD> </TR> <TR> <TD>Three</TD> <TD>Four</TD> </TR> </TABLE> Here’s how it would look on the Web:
  • 35. What is CSS? Cascading Style Sheet
  • 36. What is CSS? • A cascading style sheet(CSS) is a web page derived from multiple sources with a defined order of precedence where the definition of any style element conflict • CSS saves a lot of work • CSS define how HTML elements are to be displayed
  • 37. Syntax of CSS • A CSS rule set consist of a selector and a declaration block • Selector Declaration Declaration Property Value Property Value • The selector points to the HTML element you want to style • The Declaration block contains one or more declarations separated by semicolons • Each declaration includes a property name and a value, separated by a colon
  • 39. CSS Background Color • The background-color property specifies the background color of an element • The background of an element is the total size of the element, including padding and border (but not the margin) • The background color of a page is defined in the body selector Example: • body {background-color:#b0c4de;} • body {background-color: coral;}
  • 40. CSS Background Color - Syntax background-color: color|transparent|initial|inherit; • Color Specifies the background color. • Transparent Specifies that the background color should be transparent. This is default • Initial Sets this property to its default value • Inherit Inherits this property from its parent element
  • 41. CSS Font Family • The font family of a text is set with the font-family property • The font-family property should hold several font names as a "fallback" system. If the browser does not support the first font, it tries the next font, and so on • Start with the font you want, and end with a generic family, to let the browser pick a similar font in the generic family, if no other fonts are available
  • 42. CSS Font Family - Syntax font-family: family-name|generic-family|initial|inherit; • family-name generic-family A prioritized list of font family names and/or generic family names • initial Sets this property to its default value • inherit Inherits this property from its parent element • Examples: p.a { font-family: "Times New Roman", Times, serif; } p.b { font-family: Arial, Helvetica, sans-serif; }
  • 43. CSS Font Size • The font-size property sets the size of the text • Being able to manage the text size is important in web design. However, you should not use font size adjustments to make paragraphs look like headings, or headings look like paragraphs • Always use the proper HTML tags, like <h1> - <h6> for headings and <p> for paragraphs. The font-size value can be an absolute, or relative size.
  • 44. CSS Font Size - Syntax font-size:medium|xx-small|x-small|small|large|x-large|xx- large|smaller|larger|length|initial|inherit; • Examples: div.a { font-size: 15px; } div.b { font-size: large; } div.c { font-size: 150%; }
  • 45. CSS Font Size - Syntax Property Values Value Description Medium Sets the font-size to a medium size. This is default xx-small Sets the font-size to an xx-small size x-small Sets the font-size to an extra small size small Sets the font-size to a small size large Sets the font-size to a large size x-large Sets the font-size to an extra-large size
  • 46. CSS Font Size - Syntax Property Values Value Description xx-large smaller Sets the font-size to a smaller size than the parent element Sets the font-size to an xx-large size larger Sets the font-size to a larger size than the parent element length Sets the font-size to a fixed size in px, cm, etc % Sets the font-size to a percent of the parent element's font size Initial Sets this property to its default value Inherit Inherits this property from its parent element
  • 47. CSS Margin • The CSS margin properties are used to create space around elements, outside of any defined borders. • With CSS, you have full control over the margins. There are properties for setting the margin for each side of an element (top, right, bottom, and left). • CSS has properties for specifying the margin for each side of an element: • margin-top • margin-right • margin-bottom • margin-left
  • 48. CSS Margin - Syntax margin: length|auto|initial|inherit; All the margin properties can have the following values: • length - Specifies a margin in px, pt, cm, etc. Default value is 0. Negative values are allowed • auto - the browser calculates the margin • % - Specifies a margin in percent of the width of the containing element • inherit - specifies that the margin should be inherited from the parent element • initial - Sets this property to its default value
  • 49. CSS Padding • The CSS padding properties are used to generate space around an element's content, inside of any defined borders • With CSS, you have full control over the padding. There are properties for setting the padding for each side of an element (top, right, bottom, and left) • Syntax: padding: length|initial|inherit; • Length- Specifies the padding in px, pt, cm, etc. Default value is 0 • %- Specifies the padding in percent of the width of the containing element • Initial- Sets this property to its default value • Inherit- Inherits this property from its parent element • Example: Set the padding for all four sides of a <p> element to 35 pixels p { padding: 35px; }
  • 50. How to choose element by Name, Class or Id
  • 51. CSS Name Selector p { background-color: yellow; } Above CSS will make every paragraph background color as yellow.
  • 52. CSS .class Selector • The .class selector selects elements with a specific class attribute. • To select elements with a specific class, write a period (.) character, followed by the name of the class. • You can also specify that only specific HTML elements should be affected by a class. To do this, start with the element name, then write the period (.) character, followed by the name of the class • Syntax: .class { css declarations; } • Example: Select and style all elements with class="intro": .intro { background-color: yellow; }
  • 53. CSS #id Selector • The #id selector styles the element with the specified id. • Syntax: #id { css declarations; } • Example: Style the element with id="firstname": #firstname { background-color: yellow; }
  • 54. Resources ❑ HTML TUTORIAL : W3SCHOOLS ❑ HTML.COM ❑ LEARN HTML ❑ CSS TUTORIAL : W3SCHOOLS ❑ LEARN CSS
  • 55. Q & A