SlideShare uma empresa Scribd logo
1 de 8
How an XHTML file is structured This slide show should help you understand how an xhtml file should be structured.
<html> The finished xhtml file The diagram on the right shows you how a finished xhtml file should be structured. We will go through this from the beginning to help you understand. <head> <title> <body>
<html> Starting point – the <html> tag Once you have an blank Notepad document open, the first thing you need to do is type: <html> </html> This creates the first layer – as shown on the right. We will be adding more layers inside this. The <html> tags wraps around all of the other tags we use. Your web page, then, needs to start with
Two Sections The next thing we do is split the document in to two sections: The head The body Your code at this stage should now look like this: <html> <head> </head> <body> </body> </html> Can you see that the <html> tags wrap around the <head> and <body> tags? They enclose the head and body sections (see diagram right). <html> <head> <body>
Reminder! The <body> section is where you put the content of your page. This includes your headers, paragraphs, lists, links etc. This is the page the visitor to your web site reads. The <head> section is where extra information goes. This includes the <title> tag which tells the browser what to show in the title bar of your web browser. <html> <head> <body>
<html> The <title> tag The next thing we add is the title tag.  This goes between the <head> tags. Your code at this point should now look like: <html> <head>  <title>Page title goes here</title> </head> <body> </body> </html> Notice that the title tag is indented. This makes your code easier to read. <head> <title> <body>
About the <title> tag. Try to remember that the <title> tag is different to the headings you use in your content. Text that appears between the <title> tags appears in the title bar and on the tabs of the web browser displaying your page. See the example to the right. In this example, the <title> tags would read: <title>BBC – Homepage</title> Hopefully this makes sense.
<html> And that’s the basic structure of a web page. All that remains now is to: Save it using the .html file extensione.g. mypage.html Add content between the <body> tags. <head> <title> <body> Content goes in here

Mais conteúdo relacionado

Mais procurados

1.3 creating links
1.3 creating links1.3 creating links
1.3 creating linksBulldogs83
 
Module 2 Lesson 2
Module 2 Lesson 2Module 2 Lesson 2
Module 2 Lesson 2claytors
 
1.1 xhtml basics
1.1 xhtml basics1.1 xhtml basics
1.1 xhtml basicsBulldogs83
 
Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]Kosie Eloff
 
YL Intro html
YL Intro htmlYL Intro html
YL Intro htmldilom1986
 
HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)Rafi Haidari
 
Adding A Link To A Flick’R Photo
Adding A Link To A Flick’R PhotoAdding A Link To A Flick’R Photo
Adding A Link To A Flick’R PhotoLutie
 
Hour 02
Hour 02Hour 02
Hour 02dpd
 
Html_Day_One (W3Schools)
Html_Day_One (W3Schools)Html_Day_One (W3Schools)
Html_Day_One (W3Schools)Rafi Haidari
 
Basics tags for HTML
Basics tags for HTMLBasics tags for HTML
Basics tags for HTMLvidyamittal
 
Creating A Forensics Webpage
Creating A Forensics WebpageCreating A Forensics Webpage
Creating A Forensics WebpageSteve Bishop
 
Lesson plan: HTML Formatting Texts and Paragraphs
Lesson plan: HTML Formatting Texts and ParagraphsLesson plan: HTML Formatting Texts and Paragraphs
Lesson plan: HTML Formatting Texts and ParagraphsKeith Borgonia Manatad
 

Mais procurados (20)

1.3 creating links
1.3 creating links1.3 creating links
1.3 creating links
 
Html Get Started
Html Get StartedHtml Get Started
Html Get Started
 
Module 2 Lesson 2
Module 2 Lesson 2Module 2 Lesson 2
Module 2 Lesson 2
 
M02 un04 p03
M02 un04 p03M02 un04 p03
M02 un04 p03
 
1.1 xhtml basics
1.1 xhtml basics1.1 xhtml basics
1.1 xhtml basics
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
Over view of html
Over view of htmlOver view of html
Over view of html
 
YL Intro html
YL Intro htmlYL Intro html
YL Intro html
 
HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)
 
Adding A Link To A Flick’R Photo
Adding A Link To A Flick’R PhotoAdding A Link To A Flick’R Photo
Adding A Link To A Flick’R Photo
 
Hour 02
Hour 02Hour 02
Hour 02
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Html_Day_One (W3Schools)
Html_Day_One (W3Schools)Html_Day_One (W3Schools)
Html_Day_One (W3Schools)
 
Basics tags for HTML
Basics tags for HTMLBasics tags for HTML
Basics tags for HTML
 
Creating A Forensics Webpage
Creating A Forensics WebpageCreating A Forensics Webpage
Creating A Forensics Webpage
 
Html
HtmlHtml
Html
 
Lesson plan: HTML Formatting Texts and Paragraphs
Lesson plan: HTML Formatting Texts and ParagraphsLesson plan: HTML Formatting Texts and Paragraphs
Lesson plan: HTML Formatting Texts and Paragraphs
 

Semelhante a How an html file is structured

How To Create Personal Web Pages On My Web
How To Create Personal Web Pages On My WebHow To Create Personal Web Pages On My Web
How To Create Personal Web Pages On My Websritikumar
 
HTML_Slideshow1
HTML_Slideshow1HTML_Slideshow1
HTML_Slideshow1ldehn
 
Html part2
Html part2Html part2
Html part2suba_sqa
 
Html part2 (1)
Html part2 (1)Html part2 (1)
Html part2 (1)suba_sqa
 
1.2 elements and attributes copy (3)
1.2 elements and attributes   copy (3)1.2 elements and attributes   copy (3)
1.2 elements and attributes copy (3)Bulldogs83
 
1.2 elements and attributes copy (3)
1.2 elements and attributes   copy (3)1.2 elements and attributes   copy (3)
1.2 elements and attributes copy (3)Bulldogs83
 
Semantically Correct And Standards Compliance Html
Semantically Correct And Standards Compliance HtmlSemantically Correct And Standards Compliance Html
Semantically Correct And Standards Compliance Htmlsanjay2211
 
Web designing using html
Web designing using htmlWeb designing using html
Web designing using htmljulicris021488
 

Semelhante a How an html file is structured (20)

HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Html
HtmlHtml
Html
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
How To Create Personal Web Pages On My Web
How To Create Personal Web Pages On My WebHow To Create Personal Web Pages On My Web
How To Create Personal Web Pages On My Web
 
HTML_Slideshow1
HTML_Slideshow1HTML_Slideshow1
HTML_Slideshow1
 
Html
HtmlHtml
Html
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Html intro
Html introHtml intro
Html intro
 
Html intro
Html introHtml intro
Html intro
 
Html part2
Html part2Html part2
Html part2
 
Html part2 (1)
Html part2 (1)Html part2 (1)
Html part2 (1)
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
HTML & CSS
HTML & CSSHTML & CSS
HTML & CSS
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
1.2 elements and attributes copy (3)
1.2 elements and attributes   copy (3)1.2 elements and attributes   copy (3)
1.2 elements and attributes copy (3)
 
1.2 elements and attributes copy (3)
1.2 elements and attributes   copy (3)1.2 elements and attributes   copy (3)
1.2 elements and attributes copy (3)
 
Semantically Correct And Standards Compliance Html
Semantically Correct And Standards Compliance HtmlSemantically Correct And Standards Compliance Html
Semantically Correct And Standards Compliance Html
 
Web designing using html
Web designing using htmlWeb designing using html
Web designing using html
 
Diva
DivaDiva
Diva
 

How an html file is structured

  • 1. How an XHTML file is structured This slide show should help you understand how an xhtml file should be structured.
  • 2. <html> The finished xhtml file The diagram on the right shows you how a finished xhtml file should be structured. We will go through this from the beginning to help you understand. <head> <title> <body>
  • 3. <html> Starting point – the <html> tag Once you have an blank Notepad document open, the first thing you need to do is type: <html> </html> This creates the first layer – as shown on the right. We will be adding more layers inside this. The <html> tags wraps around all of the other tags we use. Your web page, then, needs to start with
  • 4. Two Sections The next thing we do is split the document in to two sections: The head The body Your code at this stage should now look like this: <html> <head> </head> <body> </body> </html> Can you see that the <html> tags wrap around the <head> and <body> tags? They enclose the head and body sections (see diagram right). <html> <head> <body>
  • 5. Reminder! The <body> section is where you put the content of your page. This includes your headers, paragraphs, lists, links etc. This is the page the visitor to your web site reads. The <head> section is where extra information goes. This includes the <title> tag which tells the browser what to show in the title bar of your web browser. <html> <head> <body>
  • 6. <html> The <title> tag The next thing we add is the title tag. This goes between the <head> tags. Your code at this point should now look like: <html> <head> <title>Page title goes here</title> </head> <body> </body> </html> Notice that the title tag is indented. This makes your code easier to read. <head> <title> <body>
  • 7. About the <title> tag. Try to remember that the <title> tag is different to the headings you use in your content. Text that appears between the <title> tags appears in the title bar and on the tabs of the web browser displaying your page. See the example to the right. In this example, the <title> tags would read: <title>BBC – Homepage</title> Hopefully this makes sense.
  • 8. <html> And that’s the basic structure of a web page. All that remains now is to: Save it using the .html file extensione.g. mypage.html Add content between the <body> tags. <head> <title> <body> Content goes in here