SlideShare a Scribd company logo
1 of 13
Crafting StoreCoding and Styling Guide Stonewall Fleet: Crafting Corp
Purpose This guide will endeavor to teach you not only how, but why and what HTML and CSS tags to use when entering in descriptions for Store items. For example, we will be turning the left image into the code on the right:
To begin: A basic HTML element has two parts, the opening tag and the closing tag. <div>  . . . </div> Div is a general tag that creates a divisional unit.  The first tag is the opening tag, the second, the one with the slash, is the closing tag.
Classes HTML tags can be specialized for styling by the use of  the class attribute. <div class=“itemFed”>    . . .  . . .  </div> When defining the class, it must include an equal sign followed by the name of the class, itemFed, surrounded by quote marks.  For Klingon items, use the class name itemKlink. Begin and end every entry with these tags.
List, terms and definitions, oh my! Now that we know about div tags with class definition, let’s figure out how we’re going to define the data. Let’s look at our example: What we see is that it’s actually just a list. Each new line represents a new term, such a weapon power, or a definition for the previous weapon power. List
Zoom in If we zoom in a little, we can see what items are our terms and which are our definitions. Term Definition Definition Definition Definition Definition Definition Now that we know that our data is actually a list of terms and definitions, we know what HTML tags to use.
New Tags <dl> <dt> . . . </dt> <dd> . . . </dd> <dt> . . . </dt> </dl> For the item description, we will use the <dl>, Define List tag, <dt>, Define Term tag, and <dd>, Define Definition tag. These three tags work together as a group.  <dt> and <dd> tags are nested inside of the <dl> opening and closing tag. First, start with your <dl> and </dl> tags to define the list, then define the term, followed by it’s definitions.
Example: <div class="itemFed"> <dl>           <dt>Sonic Pulse III</dt> <dd>Expose Attack</dd> <dd>PBAoE Damage, Slow, Interrupt and Knockback</dd> <dd>30 Physical Damage (1.2 DPS)</dd> <dd>85% chance: Knocks back +3.2 feet</dd> <dd>Interrupt</dd> <dd>-75% Run Speed for 10 sec</dd>      </dl> </div> Hint:  It’s advisable to first type the opening and closing tag for an HTML element before beginning the next tags.
More Classes As you can see, there are several other styles that need to be applied.   For example, the yellow text of Expose Attack or Exploit Attack.    As well, the white text of the type of attack. This is done with three more classes; expose, exploit, attack-type. Example: <div class="itemFed"> <dl>           <dt>Sonic Pulse III</dt> <ddclass=“expose”>Expose Attack</dd> <ddclass=“attack-type”>PBAoE Damage, Slow, Interrupt and Knockback</dd> <dd>30 Physical Damage (1.2 DPS)</dd> <dd>85% chance: Knocks back +3.2 feet</dd> <dd>Interrupt</dd> <dd>-75% Run Speed for 10 sec</dd>      </dl> </div>
Special Cases: Span tag Sometimes, you’ll need to apply special styling to words in the middle of a sentence.  This can be accomplished with the class attribute that you already know and the span tag. Span is very similar to the div tag, but instead of creating a whole new division.  It simply spans across a group of inline characters or other elements.  Just like the other tags we’ve seen, span has an opening tag, <span>, and a closing tag, </span>.  This can apply the class just as you have before. <spanclass=“dt”>. . . </span> To apply the same styling to the span as the other defined terms have, use the “dt” class. Example: <dd>Applies <spanclass="dt">Hyperonic Radiation III</span> for 10 sec</dd>
Special Cases: Nested Definitions Sometimes, you’ll notice that a definition has it’s own definition.  To get the proper styling and indentation, you’ll need to created a second list inside the first list. In the example to the left, the three terms are describing the level 45 Thermal Vent, not the Thermal Vent II power.   To do this, create <dd> and </dd> tags and within them define a new list with <dl> and </dl>, then create the defined terms and definitions as normal.
Example: <div class="itemFed"> <dl> <dt>Thermal Vent II</dt> <dtclass="attack-type">AoE Location Fire Damage</dt> <dd>Creates a level 45 Thermal Vent</dd> <dd> <dl> <dt>Thermal Vent Dissipate</dt> <dd>After 15 sec. Defeats</dd> <dt>Thermal Vent II</dt> <dd>6 Fire Damage each sec</dd> <dt>Thermal Vent Blast II</dt> <dtclass="expose">Expose Attack</dt> <dd>20 Fire Damage</dd> </dl> </dd> </dl> </div>
One last thing: <br/> Sometimes, you’ll need to make a new blank line before starting the next term.  To do this, use the break tag. <br/> Unlike the other elements we’ve talked about, the <br/> tag is not a container, meaning it does not contain any other information.  Therefore, it is open and closed with the single tag.

More Related Content

What's hot

What's hot (11)

Html tag
Html tagHtml tag
Html tag
 
HTML Tutorial: Chapter 3
HTML Tutorial: Chapter 3HTML Tutorial: Chapter 3
HTML Tutorial: Chapter 3
 
web technology
web technologyweb technology
web technology
 
HTML Tutorial: Chapters 5 & 6
HTML Tutorial: Chapters 5 & 6HTML Tutorial: Chapters 5 & 6
HTML Tutorial: Chapters 5 & 6
 
Html Presentation Of Web Page Making
Html Presentation Of Web Page MakingHtml Presentation Of Web Page Making
Html Presentation Of Web Page Making
 
The Basics of (X)HTML Tags
The Basics of (X)HTML TagsThe Basics of (X)HTML Tags
The Basics of (X)HTML Tags
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
HTML & CSS
HTML & CSSHTML & CSS
HTML & CSS
 
Html Intro2
Html Intro2Html Intro2
Html Intro2
 
Html
HtmlHtml
Html
 
Htmltag.ppt
Htmltag.pptHtmltag.ppt
Htmltag.ppt
 

Viewers also liked

Tipos de redes
Tipos de redesTipos de redes
Tipos de redesgraffitero
 
IndigoVerge - web and mobile design and development studio.
IndigoVerge - web and mobile design and development studio.IndigoVerge - web and mobile design and development studio.
IndigoVerge - web and mobile design and development studio.Ilia Iordanov
 
Shaping The Future Together
Shaping The Future TogetherShaping The Future Together
Shaping The Future TogetherStandard Edge
 
Deed - employee engagement that works
Deed - employee engagement that worksDeed - employee engagement that works
Deed - employee engagement that worksIlia Iordanov
 
3 formas de usar la psicología para aumentar las conversiones
3 formas de usar la psicología para aumentar las conversiones3 formas de usar la psicología para aumentar las conversiones
3 formas de usar la psicología para aumentar las conversionesAgu Casorzo
 
#ThroughGlass : An Introduction to Google Glass
#ThroughGlass : An Introduction to Google Glass#ThroughGlass : An Introduction to Google Glass
#ThroughGlass : An Introduction to Google GlassNick Moline
 
Justia and Amazon CloudSearch
Justia and Amazon CloudSearchJustia and Amazon CloudSearch
Justia and Amazon CloudSearchNick Moline
 
Importancia del autocuidado
Importancia del autocuidadoImportancia del autocuidado
Importancia del autocuidadoAna Rodríguez
 
ACM SIGMOD SBD2016 - Querying and reasoning over large scale building dataset...
ACM SIGMOD SBD2016 - Querying and reasoning over large scale building dataset...ACM SIGMOD SBD2016 - Querying and reasoning over large scale building dataset...
ACM SIGMOD SBD2016 - Querying and reasoning over large scale building dataset...Pieter Pauwels
 
Deed for engaged teams in English
Deed for engaged teams in EnglishDeed for engaged teams in English
Deed for engaged teams in EnglishIlia Iordanov
 
Q1 2012
Q1 2012Q1 2012
Q1 2012Sweco
 
Sweco - Presentation Year-end report 2012
Sweco - Presentation Year-end report 2012Sweco - Presentation Year-end report 2012
Sweco - Presentation Year-end report 2012Sweco
 
Sweco Annual Review 2010
Sweco Annual Review 2010Sweco Annual Review 2010
Sweco Annual Review 2010Sweco
 

Viewers also liked (20)

Distribution
DistributionDistribution
Distribution
 
Exposición definitiva de observación y descripción
Exposición definitiva de observación y descripciónExposición definitiva de observación y descripción
Exposición definitiva de observación y descripción
 
Tipos de redes
Tipos de redesTipos de redes
Tipos de redes
 
Presentación Consultagro, C.A.
Presentación Consultagro, C.A.Presentación Consultagro, C.A.
Presentación Consultagro, C.A.
 
Una nueva aventura
Una nueva aventuraUna nueva aventura
Una nueva aventura
 
IndigoVerge - web and mobile design and development studio.
IndigoVerge - web and mobile design and development studio.IndigoVerge - web and mobile design and development studio.
IndigoVerge - web and mobile design and development studio.
 
Shaping The Future Together
Shaping The Future TogetherShaping The Future Together
Shaping The Future Together
 
Deed
DeedDeed
Deed
 
Deed - employee engagement that works
Deed - employee engagement that worksDeed - employee engagement that works
Deed - employee engagement that works
 
3 formas de usar la psicología para aumentar las conversiones
3 formas de usar la psicología para aumentar las conversiones3 formas de usar la psicología para aumentar las conversiones
3 formas de usar la psicología para aumentar las conversiones
 
Reglamento informacion consumidor
Reglamento informacion consumidorReglamento informacion consumidor
Reglamento informacion consumidor
 
#ThroughGlass : An Introduction to Google Glass
#ThroughGlass : An Introduction to Google Glass#ThroughGlass : An Introduction to Google Glass
#ThroughGlass : An Introduction to Google Glass
 
Justia and Amazon CloudSearch
Justia and Amazon CloudSearchJustia and Amazon CloudSearch
Justia and Amazon CloudSearch
 
Importancia del autocuidado
Importancia del autocuidadoImportancia del autocuidado
Importancia del autocuidado
 
ACM SIGMOD SBD2016 - Querying and reasoning over large scale building dataset...
ACM SIGMOD SBD2016 - Querying and reasoning over large scale building dataset...ACM SIGMOD SBD2016 - Querying and reasoning over large scale building dataset...
ACM SIGMOD SBD2016 - Querying and reasoning over large scale building dataset...
 
HutGrip
HutGripHutGrip
HutGrip
 
Deed for engaged teams in English
Deed for engaged teams in EnglishDeed for engaged teams in English
Deed for engaged teams in English
 
Q1 2012
Q1 2012Q1 2012
Q1 2012
 
Sweco - Presentation Year-end report 2012
Sweco - Presentation Year-end report 2012Sweco - Presentation Year-end report 2012
Sweco - Presentation Year-end report 2012
 
Sweco Annual Review 2010
Sweco Annual Review 2010Sweco Annual Review 2010
Sweco Annual Review 2010
 

Similar to Crafting Store: Coding and Crafting Guide

Similar to Crafting Store: Coding and Crafting Guide (20)

How an html file is structured
How an html file is structuredHow an html file is structured
How an html file is structured
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
HTML
HTMLHTML
HTML
 
Diva
DivaDiva
Diva
 
Lecture1
Lecture1Lecture1
Lecture1
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
Tags in html
Tags in htmlTags in html
Tags in html
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
HTML & Textile Training
HTML & Textile TrainingHTML & Textile Training
HTML & Textile Training
 
Web Designing
Web DesigningWeb Designing
Web Designing
 
Module 2 Lesson 1
Module 2 Lesson 1Module 2 Lesson 1
Module 2 Lesson 1
 
Fundamentals Of Html
Fundamentals Of HtmlFundamentals Of Html
Fundamentals Of Html
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
AK html
AK  htmlAK  html
AK html
 
2 dtd - validating xml documents
2   dtd - validating xml documents2   dtd - validating xml documents
2 dtd - validating xml documents
 
Mdst 3559-02-01-html
Mdst 3559-02-01-htmlMdst 3559-02-01-html
Mdst 3559-02-01-html
 
3 xml namespaces and xml schema
3   xml namespaces and xml schema3   xml namespaces and xml schema
3 xml namespaces and xml schema
 
Html TAGS
Html TAGSHtml TAGS
Html TAGS
 
XML Bible
XML BibleXML Bible
XML Bible
 

Recently uploaded

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 

Recently uploaded (20)

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

Crafting Store: Coding and Crafting Guide

  • 1. Crafting StoreCoding and Styling Guide Stonewall Fleet: Crafting Corp
  • 2. Purpose This guide will endeavor to teach you not only how, but why and what HTML and CSS tags to use when entering in descriptions for Store items. For example, we will be turning the left image into the code on the right:
  • 3. To begin: A basic HTML element has two parts, the opening tag and the closing tag. <div> . . . </div> Div is a general tag that creates a divisional unit. The first tag is the opening tag, the second, the one with the slash, is the closing tag.
  • 4. Classes HTML tags can be specialized for styling by the use of the class attribute. <div class=“itemFed”> . . . . . . </div> When defining the class, it must include an equal sign followed by the name of the class, itemFed, surrounded by quote marks. For Klingon items, use the class name itemKlink. Begin and end every entry with these tags.
  • 5. List, terms and definitions, oh my! Now that we know about div tags with class definition, let’s figure out how we’re going to define the data. Let’s look at our example: What we see is that it’s actually just a list. Each new line represents a new term, such a weapon power, or a definition for the previous weapon power. List
  • 6. Zoom in If we zoom in a little, we can see what items are our terms and which are our definitions. Term Definition Definition Definition Definition Definition Definition Now that we know that our data is actually a list of terms and definitions, we know what HTML tags to use.
  • 7. New Tags <dl> <dt> . . . </dt> <dd> . . . </dd> <dt> . . . </dt> </dl> For the item description, we will use the <dl>, Define List tag, <dt>, Define Term tag, and <dd>, Define Definition tag. These three tags work together as a group. <dt> and <dd> tags are nested inside of the <dl> opening and closing tag. First, start with your <dl> and </dl> tags to define the list, then define the term, followed by it’s definitions.
  • 8. Example: <div class="itemFed"> <dl> <dt>Sonic Pulse III</dt> <dd>Expose Attack</dd> <dd>PBAoE Damage, Slow, Interrupt and Knockback</dd> <dd>30 Physical Damage (1.2 DPS)</dd> <dd>85% chance: Knocks back +3.2 feet</dd> <dd>Interrupt</dd> <dd>-75% Run Speed for 10 sec</dd> </dl> </div> Hint: It’s advisable to first type the opening and closing tag for an HTML element before beginning the next tags.
  • 9. More Classes As you can see, there are several other styles that need to be applied. For example, the yellow text of Expose Attack or Exploit Attack. As well, the white text of the type of attack. This is done with three more classes; expose, exploit, attack-type. Example: <div class="itemFed"> <dl> <dt>Sonic Pulse III</dt> <ddclass=“expose”>Expose Attack</dd> <ddclass=“attack-type”>PBAoE Damage, Slow, Interrupt and Knockback</dd> <dd>30 Physical Damage (1.2 DPS)</dd> <dd>85% chance: Knocks back +3.2 feet</dd> <dd>Interrupt</dd> <dd>-75% Run Speed for 10 sec</dd> </dl> </div>
  • 10. Special Cases: Span tag Sometimes, you’ll need to apply special styling to words in the middle of a sentence. This can be accomplished with the class attribute that you already know and the span tag. Span is very similar to the div tag, but instead of creating a whole new division. It simply spans across a group of inline characters or other elements. Just like the other tags we’ve seen, span has an opening tag, <span>, and a closing tag, </span>. This can apply the class just as you have before. <spanclass=“dt”>. . . </span> To apply the same styling to the span as the other defined terms have, use the “dt” class. Example: <dd>Applies <spanclass="dt">Hyperonic Radiation III</span> for 10 sec</dd>
  • 11. Special Cases: Nested Definitions Sometimes, you’ll notice that a definition has it’s own definition. To get the proper styling and indentation, you’ll need to created a second list inside the first list. In the example to the left, the three terms are describing the level 45 Thermal Vent, not the Thermal Vent II power. To do this, create <dd> and </dd> tags and within them define a new list with <dl> and </dl>, then create the defined terms and definitions as normal.
  • 12. Example: <div class="itemFed"> <dl> <dt>Thermal Vent II</dt> <dtclass="attack-type">AoE Location Fire Damage</dt> <dd>Creates a level 45 Thermal Vent</dd> <dd> <dl> <dt>Thermal Vent Dissipate</dt> <dd>After 15 sec. Defeats</dd> <dt>Thermal Vent II</dt> <dd>6 Fire Damage each sec</dd> <dt>Thermal Vent Blast II</dt> <dtclass="expose">Expose Attack</dt> <dd>20 Fire Damage</dd> </dl> </dd> </dl> </div>
  • 13. One last thing: <br/> Sometimes, you’ll need to make a new blank line before starting the next term. To do this, use the break tag. <br/> Unlike the other elements we’ve talked about, the <br/> tag is not a container, meaning it does not contain any other information. Therefore, it is open and closed with the single tag.