SlideShare a Scribd company logo
Website Fundamentals Markup Documents
Markup Documents What is HTML?
What is HTML? HTML is the language websites are written in. The letters stand for HyperText Markup Language. It might sound complicated, but it’s actually pretty easy to understand.
What is HTML? HTML has two essential features: Hypertext Universality
What is HTML? HyperText HyperText means you can create a link in a Web page that leads the visitor to any other web page or to practically anything else on the internet. It means that information on the Web can be accessed from many different directions.
What is HTML? Universality: Universality means that because HTML documents are saved as Text Only files, virtually any computer can read a Web page. It doesn’t matter if your visitors have Macintosh or Windows machines, or whether they’re on a Unix box or even a handheld device like a Palm. The Web is open to all.
Markup Documents HTML VS. XHTML: What should you use?
HTML VS. XHTML XHTML stands for eXtensible HyperText Markup Language; it is the simplicity of HTML with the power and flexibility of XML and became the perfect foundation for CSS.
HTML VS. XHTML XHTML is a great improvement over HTML. It’s stronger, more flexible, more powerful, more likely to be supported in the future, and can be expanded to fit any need. However, there are times when you just need to publish a web document without having to stress over every last quotation mark.
Markup Documents Markup: Elements, Attributes and Values
Markup XHTML is an ingenious system of including information about the content right in a text document. This information - called markup, accounting for the m in XHTML - can include formatting instructions as well as details about the relationships between parts of the document. However, because the markup itself is comprised chiefly of text, the document is practically universally accessible.
Markup XHTML has three principle types of markup: Elements Attributes Values.
Elements Elements are like little labels that identify and structure the different parts of a Web page. Some elements have one or more attributes, which further describe the purpose and content, if any, of the element. <hr /> <tdcolspan=“3”>February</td> <imgsrc=“blueflax.jpg” width=“300” />
Elements Elements can contain text and/or other elements, or they can be empty.  A non-empty element consists of an opening tag, the content, and a closing tag. <hr /> <tdcolspan=“3”>February</td> <imgsrc=“blueflax.jpg” width=“300” />
Elements An empty element looks like a combination opening and closing tag, with an initial less than sign, the element’s name followed by any attributes it may have, a space, a forward slash, and the final greater than sign. <hr /> <td colspan=“3”>February</td> <imgsrc=“blueflax.jpg” width=“300” />
Attributes and Values Attributes contain information about the data in the document, as opposed to being that data itself. Some attributes can accept any value at all, others are more limited. Perhaps the most common are those that accept enumerated or predefined values. In other words, you must select a value from a standard list of choices. <hr /> <td colspan=“3”>February</td> <imgsrc=“blueflax.jpg” width=“300” />
Attributes and Values Many attributes require a number or percentage for their value, particularly those describing size and length. A numeric value never includes units. Where units are applicable, as in the height of text or the width of an image, they are understood to be pixels. <hr /> <td colspan=“3”>February</td> <imgsrc=“blueflax.jpg” width=“300” />
Attributes and Values The attributes controlling colour can contain values that are either a colour name or a hexadecimal representation of the red, green, and blue content of the colour. Some attributes reference other files and thus must contain values in the form of a URL, or Uniform Resource Locator, a file’s unique address on the Web. <p color=“yellow”> <p color=“#FFFFFF”> <a href=“test.html”>Click Here</a> <a href=“http://www.google.com/”>Google Search</a>
Block VS. Inline An element can be block-level or inline. If it is block-level, it will always be displayed on a new line, like a new paragraph in a book. If it is inline, it will be displayed in the current line, like the next word in a paragraph. Block Level Elements <div> <p> <table> Inline Elements <span> <a>
Block VS. Inline Block-level elements are considered the bigger structural pieces of your Web page, and as such can usually contain other block-level elements, inline elements, and text.  Inline elements, in contrast, can generally only contain other inline elements and text. Block Level Elements <div> <p> <table> Inline Elements <span> <a>
Parents and Children If one element contains another, it is considered to be the parent of the enclosed, or child element. Any element contained in the child element is considered descendants of the outer, parent element. You can actually create a family tree of a Web page that both shows the hierarchical relationships between each element on the page and uniquely identifies each element. <div>   <p></p>   <p>     <a></a>   </p> </div>
Parents and Children This structure is a key feature of HTML code and facilitates adding style to the elements and applying JavaScript effects to them. <div>   <p></p>   <p>     <a></a>   </p> </div>
Parents and Children It is important to note that when elements contain other elements, each element must be properly nested and is fully contained within its parent. Whenever you use a closing tag, it should correspond to the last unclosed opening tag. In other words, first open A then open B, then close B and then close A. <div>   <p></p>   <p>     <a></a>   </p> </div>
Markup Documents CSS (Cascading style Sheets)
CSS Most word processors today include a way to make changes to text not just word by word, but throughout an entire document using styles. Styles collect all the different properties, such as font family, size, and colour that you want to apply to similar types of text - titles, headers, captions, and so on - and give these groups of properties a common name.
CSS CSS brings to the Web the same convenience for setting styles that’s available in one central location to affect the appearance of a particular XHTML tag on a single Web page or across an entire Web site. Although CSS works with XHTML, it is not XHTML.  Rather, CSS is a separate code that enhances the abilities of XHTML, by allowing you to redefine the way that existing tags display their content.
Markup Documents Types of CSS Rules
Types of CSS Rules The best thing about Cascading Style Sheets is that they are amazingly simple to set up. They don’t require plug-ins or fancy software - just text files with rules. A CSS rule specifies the XHTML to which a style or definition applies, and then defines the style, or how the selected XHTML should behave in the browser window. You can set up rules to tell a specific XHTML tag how to display its content, or you can create generic rules and then apply them to tags at your discretion.
Types of CSS Rules The three most common selectors or ways to select the XHTML to which a style applies, are: XHTML Selector Class Selector ID Selector
XHTML Selector The XHTML element’s name is used as a selector to redefine the associated XHTML tag div { ... } p { ... } a { ... }
Class Selector A class is a “free agent” that can be applied to an XHTML tag. You can name the class almost anything. Because it can be applied to multiple XHTML tag, a class is the most versatile type of selector .class .menuItem .clear
ID Selector Much like classes, IDs can be applied to any XHTML tag, but only once on a given page to a particular tag to create an object for use with a JavaScript function #ID #navigation #footer
Markup Documents The parts of a CSS rule
The Parts of a CSS Rule All CSS rules consist of a selector and a declaration block.  The declaration block, which is surrounded by curly braces, is made up of declarations, which are pairs of properties and values separated by a semicolon.
Selectors Selectors start each rule, appearing before the left curly brace The selector can be a XHTML tag selector, a class, an ID, or a combination of these selector { property: value; }
Properties Propertiesidentify the style that is being defined. There are several dozen properties, each responsible for an aspect of the page content’s behaviour and appearance. selector { property: value; }
Values Values are assigned to a property to define its nature.  A value can be a keyword such as “yes” or “no”, a number, or a percentage. The type of value used depends solely on the property to which it is assigned. selector { property: value; }
Markup Documents Where to put CSS Rules
Where to put CSS Rules You can set up rules in three places: Inline Embedded External
Inline In an XHTML tag within the body of your document, to affect a single tag in the document.  This type of rule is often referred to as an inline rule. <p style=“color: red;”>This is a paragraph displayed in red.</p>
Embedded In the head of a document, to affect a single Web page. This type of rule is called an embedded rule. <style>   p { color: red; } </style>
External In an external document that is then linked or imported into your XHTML document(s), to affect an entire Web site. This type of rule is called an external rule. # STYLESHEET: screen.css p { color: red; }
Where to put CSS Rules The position of a rule in relationship to the document and other CSS rules determines the scope of the rule’s effect on the document.
Markup Documents CSS and Markup languages
CSS and Markup Languages CSS is not XHTML; it simply means that XHTML now relies on the capabilities of CSS. The W3C’s thinking is this: Style sheets should be used to “relieve XHTML of the responsibilities of presentation.”

More Related Content

What's hot

Html project
Html projectHtml project
Html projectarsh7511
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
Randy Oest II
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
Hameda Hurmat
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
Jayapal Reddy Nimmakayala
 
Web Page Designing
Web Page DesigningWeb Page Designing
Web Page Designing
Amit Mali
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Deepak Upadhyay
 
Html For Beginners 2
Html For Beginners 2Html For Beginners 2
Html For Beginners 2
Sriram Raj
 
Web designing using html
Web designing using htmlWeb designing using html
Web designing using html
julicris021488
 
How to Make HTML and CSS Files
How to Make HTML and CSS FilesHow to Make HTML and CSS Files
How to Make HTML and CSS Files
LearningNerd
 
Html for Beginners
Html for BeginnersHtml for Beginners
Html for Beginners
Sriram Raj
 
Class Intro / HTML Basics
Class Intro / HTML BasicsClass Intro / HTML Basics
Class Intro / HTML BasicsShawn Calvert
 
Web Application and HTML Summary
Web Application and HTML SummaryWeb Application and HTML Summary
Web Application and HTML Summary
Fernando Torres
 

What's hot (19)

HTML Email
HTML EmailHTML Email
HTML Email
 
Html project
Html projectHtml project
Html project
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Css
CssCss
Css
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
Html
HtmlHtml
Html
 
Web Page Designing
Web Page DesigningWeb Page Designing
Web Page Designing
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
 
Html For Beginners 2
Html For Beginners 2Html For Beginners 2
Html For Beginners 2
 
Web designing using html
Web designing using htmlWeb designing using html
Web designing using html
 
How to Make HTML and CSS Files
How to Make HTML and CSS FilesHow to Make HTML and CSS Files
How to Make HTML and CSS Files
 
Html for Beginners
Html for BeginnersHtml for Beginners
Html for Beginners
 
Class Intro / HTML Basics
Class Intro / HTML BasicsClass Intro / HTML Basics
Class Intro / HTML Basics
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Class13
Class13Class13
Class13
 
Html
HtmlHtml
Html
 
Html ppt
Html pptHtml ppt
Html ppt
 
Web Application and HTML Summary
Web Application and HTML SummaryWeb Application and HTML Summary
Web Application and HTML Summary
 

Viewers also liked

The Art Of Typography
The Art Of TypographyThe Art Of Typography
The Art Of TypographySteven Cahill
 
Purchasing Equipment
Purchasing EquipmentPurchasing Equipment
Purchasing EquipmentSteven Cahill
 
Web Server Web Site Security
Web Server Web Site SecurityWeb Server Web Site Security
Web Server Web Site SecuritySteven Cahill
 
Confirm Client Requirements
Confirm Client RequirementsConfirm Client Requirements
Confirm Client RequirementsSteven Cahill
 
Introduction To Network Design
Introduction To Network DesignIntroduction To Network Design
Introduction To Network DesignSteven Cahill
 
Determining Client And Networking Requirements
Determining Client And Networking RequirementsDetermining Client And Networking Requirements
Determining Client And Networking RequirementsSteven Cahill
 
Testing Frameworks And Methodologies
Testing Frameworks And MethodologiesTesting Frameworks And Methodologies
Testing Frameworks And MethodologiesSteven Cahill
 
Introduction To Networking
Introduction To NetworkingIntroduction To Networking
Introduction To NetworkingSteven Cahill
 
Planning Your Website
Planning Your WebsitePlanning Your Website
Planning Your WebsiteSteven Cahill
 
Networking Standards And Protocols
Networking Standards And ProtocolsNetworking Standards And Protocols
Networking Standards And ProtocolsSteven Cahill
 
Network Hardware And Software
Network Hardware And SoftwareNetwork Hardware And Software
Network Hardware And SoftwareSteven Cahill
 
Web Standards And Protocols
Web Standards And ProtocolsWeb Standards And Protocols
Web Standards And ProtocolsSteven Cahill
 
Threats To The System
Threats To The SystemThreats To The System
Threats To The SystemSteven Cahill
 

Viewers also liked (20)

Writing For The Web
Writing For The WebWriting For The Web
Writing For The Web
 
The Art Of Typography
The Art Of TypographyThe Art Of Typography
The Art Of Typography
 
Writing For The Web
Writing For The WebWriting For The Web
Writing For The Web
 
Purchasing Equipment
Purchasing EquipmentPurchasing Equipment
Purchasing Equipment
 
Writing For The Web
Writing For The WebWriting For The Web
Writing For The Web
 
Browsers
BrowsersBrowsers
Browsers
 
Web Server Web Site Security
Web Server Web Site SecurityWeb Server Web Site Security
Web Server Web Site Security
 
Confirm Client Requirements
Confirm Client RequirementsConfirm Client Requirements
Confirm Client Requirements
 
Introduction To Network Design
Introduction To Network DesignIntroduction To Network Design
Introduction To Network Design
 
Determining Client And Networking Requirements
Determining Client And Networking RequirementsDetermining Client And Networking Requirements
Determining Client And Networking Requirements
 
Testing Frameworks And Methodologies
Testing Frameworks And MethodologiesTesting Frameworks And Methodologies
Testing Frameworks And Methodologies
 
Introduction To Networking
Introduction To NetworkingIntroduction To Networking
Introduction To Networking
 
Planning Your Website
Planning Your WebsitePlanning Your Website
Planning Your Website
 
Quality Management
Quality ManagementQuality Management
Quality Management
 
Networking Standards And Protocols
Networking Standards And ProtocolsNetworking Standards And Protocols
Networking Standards And Protocols
 
Google
GoogleGoogle
Google
 
Network Hardware And Software
Network Hardware And SoftwareNetwork Hardware And Software
Network Hardware And Software
 
Disaster Recovery
Disaster RecoveryDisaster Recovery
Disaster Recovery
 
Web Standards And Protocols
Web Standards And ProtocolsWeb Standards And Protocols
Web Standards And Protocols
 
Threats To The System
Threats To The SystemThreats To The System
Threats To The System
 

Similar to Markup Documents

Class2
Class2Class2
Class2
Jiyeon Lee
 
Semantically Correct And Standards Compliance Html
Semantically Correct And Standards Compliance HtmlSemantically Correct And Standards Compliance Html
Semantically Correct And Standards Compliance Htmlsanjay2211
 
XHTML and CSS
XHTML and CSS XHTML and CSS
XHTML and CSS
peak3
 
Empowerment Technologies Lecture 10 (Philippines SHS)
Empowerment Technologies Lecture 10 (Philippines SHS)Empowerment Technologies Lecture 10 (Philippines SHS)
Empowerment Technologies Lecture 10 (Philippines SHS)
John Bosco Javellana, MAEd.
 
HTML & CSS Workshop Notes
HTML & CSS Workshop NotesHTML & CSS Workshop Notes
HTML & CSS Workshop Notes
Pamela Fox
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
fantasticdigitaltools
 
What is html xml and xhtml
What is html xml and xhtmlWhat is html xml and xhtml
What is html xml and xhtml
FkdiMl
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technologyvikram singh
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
VaibhavSingh887876
 
Introduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxIntroduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntax
MohammadRafsunIslam
 
Frederick Highbaugh Jr Art 2830 Meta tag presentation
Frederick Highbaugh Jr Art 2830 Meta tag presentationFrederick Highbaugh Jr Art 2830 Meta tag presentation
Frederick Highbaugh Jr Art 2830 Meta tag presentationhighbaughjr
 
Meta tag presentation
Meta tag presentationMeta tag presentation
Meta tag presentationhighbaughjr
 
INTRODUCTION TO HTML
INTRODUCTION TO HTMLINTRODUCTION TO HTML
INTRODUCTION TO HTML
bwire sedrick
 
1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf
AAFREEN SHAIKH
 
html-basic.pdf
html-basic.pdfhtml-basic.pdf
html-basic.pdf
rahulcoder
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
NYCSS Meetup
 

Similar to Markup Documents (20)

Class2
Class2Class2
Class2
 
Semantically Correct And Standards Compliance Html
Semantically Correct And Standards Compliance HtmlSemantically Correct And Standards Compliance Html
Semantically Correct And Standards Compliance Html
 
XHTML and CSS
XHTML and CSS XHTML and CSS
XHTML and CSS
 
Empowerment Technologies Lecture 10 (Philippines SHS)
Empowerment Technologies Lecture 10 (Philippines SHS)Empowerment Technologies Lecture 10 (Philippines SHS)
Empowerment Technologies Lecture 10 (Philippines SHS)
 
Intr To Html & Xhtml
Intr To Html & XhtmlIntr To Html & Xhtml
Intr To Html & Xhtml
 
HTML & CSS Workshop Notes
HTML & CSS Workshop NotesHTML & CSS Workshop Notes
HTML & CSS Workshop Notes
 
Html
HtmlHtml
Html
 
O9xml
O9xmlO9xml
O9xml
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
 
What is html xml and xhtml
What is html xml and xhtmlWhat is html xml and xhtml
What is html xml and xhtml
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
Introduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxIntroduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntax
 
Frederick Highbaugh Jr Art 2830 Meta tag presentation
Frederick Highbaugh Jr Art 2830 Meta tag presentationFrederick Highbaugh Jr Art 2830 Meta tag presentation
Frederick Highbaugh Jr Art 2830 Meta tag presentation
 
Meta tag presentation
Meta tag presentationMeta tag presentation
Meta tag presentation
 
INTRODUCTION TO HTML
INTRODUCTION TO HTMLINTRODUCTION TO HTML
INTRODUCTION TO HTML
 
Web Designing
Web DesigningWeb Designing
Web Designing
 
1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf
 
html-basic.pdf
html-basic.pdfhtml-basic.pdf
html-basic.pdf
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
 

Recently uploaded

Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 

Recently uploaded (20)

Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 

Markup Documents

  • 3. What is HTML? HTML is the language websites are written in. The letters stand for HyperText Markup Language. It might sound complicated, but it’s actually pretty easy to understand.
  • 4. What is HTML? HTML has two essential features: Hypertext Universality
  • 5. What is HTML? HyperText HyperText means you can create a link in a Web page that leads the visitor to any other web page or to practically anything else on the internet. It means that information on the Web can be accessed from many different directions.
  • 6. What is HTML? Universality: Universality means that because HTML documents are saved as Text Only files, virtually any computer can read a Web page. It doesn’t matter if your visitors have Macintosh or Windows machines, or whether they’re on a Unix box or even a handheld device like a Palm. The Web is open to all.
  • 7. Markup Documents HTML VS. XHTML: What should you use?
  • 8. HTML VS. XHTML XHTML stands for eXtensible HyperText Markup Language; it is the simplicity of HTML with the power and flexibility of XML and became the perfect foundation for CSS.
  • 9. HTML VS. XHTML XHTML is a great improvement over HTML. It’s stronger, more flexible, more powerful, more likely to be supported in the future, and can be expanded to fit any need. However, there are times when you just need to publish a web document without having to stress over every last quotation mark.
  • 10. Markup Documents Markup: Elements, Attributes and Values
  • 11. Markup XHTML is an ingenious system of including information about the content right in a text document. This information - called markup, accounting for the m in XHTML - can include formatting instructions as well as details about the relationships between parts of the document. However, because the markup itself is comprised chiefly of text, the document is practically universally accessible.
  • 12. Markup XHTML has three principle types of markup: Elements Attributes Values.
  • 13. Elements Elements are like little labels that identify and structure the different parts of a Web page. Some elements have one or more attributes, which further describe the purpose and content, if any, of the element. <hr /> <tdcolspan=“3”>February</td> <imgsrc=“blueflax.jpg” width=“300” />
  • 14. Elements Elements can contain text and/or other elements, or they can be empty. A non-empty element consists of an opening tag, the content, and a closing tag. <hr /> <tdcolspan=“3”>February</td> <imgsrc=“blueflax.jpg” width=“300” />
  • 15. Elements An empty element looks like a combination opening and closing tag, with an initial less than sign, the element’s name followed by any attributes it may have, a space, a forward slash, and the final greater than sign. <hr /> <td colspan=“3”>February</td> <imgsrc=“blueflax.jpg” width=“300” />
  • 16. Attributes and Values Attributes contain information about the data in the document, as opposed to being that data itself. Some attributes can accept any value at all, others are more limited. Perhaps the most common are those that accept enumerated or predefined values. In other words, you must select a value from a standard list of choices. <hr /> <td colspan=“3”>February</td> <imgsrc=“blueflax.jpg” width=“300” />
  • 17. Attributes and Values Many attributes require a number or percentage for their value, particularly those describing size and length. A numeric value never includes units. Where units are applicable, as in the height of text or the width of an image, they are understood to be pixels. <hr /> <td colspan=“3”>February</td> <imgsrc=“blueflax.jpg” width=“300” />
  • 18. Attributes and Values The attributes controlling colour can contain values that are either a colour name or a hexadecimal representation of the red, green, and blue content of the colour. Some attributes reference other files and thus must contain values in the form of a URL, or Uniform Resource Locator, a file’s unique address on the Web. <p color=“yellow”> <p color=“#FFFFFF”> <a href=“test.html”>Click Here</a> <a href=“http://www.google.com/”>Google Search</a>
  • 19. Block VS. Inline An element can be block-level or inline. If it is block-level, it will always be displayed on a new line, like a new paragraph in a book. If it is inline, it will be displayed in the current line, like the next word in a paragraph. Block Level Elements <div> <p> <table> Inline Elements <span> <a>
  • 20. Block VS. Inline Block-level elements are considered the bigger structural pieces of your Web page, and as such can usually contain other block-level elements, inline elements, and text. Inline elements, in contrast, can generally only contain other inline elements and text. Block Level Elements <div> <p> <table> Inline Elements <span> <a>
  • 21. Parents and Children If one element contains another, it is considered to be the parent of the enclosed, or child element. Any element contained in the child element is considered descendants of the outer, parent element. You can actually create a family tree of a Web page that both shows the hierarchical relationships between each element on the page and uniquely identifies each element. <div> <p></p> <p> <a></a> </p> </div>
  • 22. Parents and Children This structure is a key feature of HTML code and facilitates adding style to the elements and applying JavaScript effects to them. <div> <p></p> <p> <a></a> </p> </div>
  • 23. Parents and Children It is important to note that when elements contain other elements, each element must be properly nested and is fully contained within its parent. Whenever you use a closing tag, it should correspond to the last unclosed opening tag. In other words, first open A then open B, then close B and then close A. <div> <p></p> <p> <a></a> </p> </div>
  • 24. Markup Documents CSS (Cascading style Sheets)
  • 25. CSS Most word processors today include a way to make changes to text not just word by word, but throughout an entire document using styles. Styles collect all the different properties, such as font family, size, and colour that you want to apply to similar types of text - titles, headers, captions, and so on - and give these groups of properties a common name.
  • 26. CSS CSS brings to the Web the same convenience for setting styles that’s available in one central location to affect the appearance of a particular XHTML tag on a single Web page or across an entire Web site. Although CSS works with XHTML, it is not XHTML. Rather, CSS is a separate code that enhances the abilities of XHTML, by allowing you to redefine the way that existing tags display their content.
  • 27. Markup Documents Types of CSS Rules
  • 28. Types of CSS Rules The best thing about Cascading Style Sheets is that they are amazingly simple to set up. They don’t require plug-ins or fancy software - just text files with rules. A CSS rule specifies the XHTML to which a style or definition applies, and then defines the style, or how the selected XHTML should behave in the browser window. You can set up rules to tell a specific XHTML tag how to display its content, or you can create generic rules and then apply them to tags at your discretion.
  • 29. Types of CSS Rules The three most common selectors or ways to select the XHTML to which a style applies, are: XHTML Selector Class Selector ID Selector
  • 30. XHTML Selector The XHTML element’s name is used as a selector to redefine the associated XHTML tag div { ... } p { ... } a { ... }
  • 31. Class Selector A class is a “free agent” that can be applied to an XHTML tag. You can name the class almost anything. Because it can be applied to multiple XHTML tag, a class is the most versatile type of selector .class .menuItem .clear
  • 32. ID Selector Much like classes, IDs can be applied to any XHTML tag, but only once on a given page to a particular tag to create an object for use with a JavaScript function #ID #navigation #footer
  • 33. Markup Documents The parts of a CSS rule
  • 34. The Parts of a CSS Rule All CSS rules consist of a selector and a declaration block. The declaration block, which is surrounded by curly braces, is made up of declarations, which are pairs of properties and values separated by a semicolon.
  • 35. Selectors Selectors start each rule, appearing before the left curly brace The selector can be a XHTML tag selector, a class, an ID, or a combination of these selector { property: value; }
  • 36. Properties Propertiesidentify the style that is being defined. There are several dozen properties, each responsible for an aspect of the page content’s behaviour and appearance. selector { property: value; }
  • 37. Values Values are assigned to a property to define its nature. A value can be a keyword such as “yes” or “no”, a number, or a percentage. The type of value used depends solely on the property to which it is assigned. selector { property: value; }
  • 38. Markup Documents Where to put CSS Rules
  • 39. Where to put CSS Rules You can set up rules in three places: Inline Embedded External
  • 40. Inline In an XHTML tag within the body of your document, to affect a single tag in the document. This type of rule is often referred to as an inline rule. <p style=“color: red;”>This is a paragraph displayed in red.</p>
  • 41. Embedded In the head of a document, to affect a single Web page. This type of rule is called an embedded rule. <style> p { color: red; } </style>
  • 42. External In an external document that is then linked or imported into your XHTML document(s), to affect an entire Web site. This type of rule is called an external rule. # STYLESHEET: screen.css p { color: red; }
  • 43. Where to put CSS Rules The position of a rule in relationship to the document and other CSS rules determines the scope of the rule’s effect on the document.
  • 44. Markup Documents CSS and Markup languages
  • 45. CSS and Markup Languages CSS is not XHTML; it simply means that XHTML now relies on the capabilities of CSS. The W3C’s thinking is this: Style sheets should be used to “relieve XHTML of the responsibilities of presentation.”