Movatterモバイル変換


[0]ホーム

URL:


Uploaded byMayaLisa
63,539 views

Introduction to HTML

The document serves as an introduction to HTML, emphasizing the importance of understanding HTML code for web design, particularly for those using WYSIWYG editors. It covers the basics of HTML structure, including essential elements like <html>, <head>, and <body>, and explains the concept of hypertext and markup languages. Additionally, it outlines the significance of knowing HTML for web authorship and provides fundamental coding examples and guidelines for creating HTML documents.

Embed presentation

Introduction to Web Design Part 1: HTML
If You Know Nothing  About HTML,  This is Where You Begin.
HTML Issues for Organisations Why the need to know HTML code? WYSIWG (What You See Is What You Get) editors (like Front Page and Dreamweaver) create program-specific code that is incomprehensible to other programs and may not be displayed correctly on all browsers or all operating systems. You cannot edit them if you don’t have the original software, OR know enough about HTML and how it works to be able to make small edits yourself. Company Intranets mostly use HTML. HTML is now also used in e-mail and in e-mail marketing. HTML is increasingly used as the basis of stand-alone applications that use a GUI (Graphical User Interface). Eg., an online Calculator with input fields.
Advantages of knowing HTML Code New technologies start out as code without tools HTML (early days), JavaScript, Java, ASP, XML Even if you use WYSIWYG eidtors, it helps to know HTML code to insert ASP or JavaScript into a HTML file If you can read code, you can copy clever ideas from others (within reason and the law). Imitation is the best form of flattery.  Go to any web page,  click on “View” “Page source” or “Source” and the HTML code used to create that web page can be studied, or just copied (within legal and copyright bounds) Web authoring tools don’t give as much control. Most web professional web designers use HTML .
What is HTML?  H yper T ext  M arkup  L anguage. HTML is a computer language that is used to  create documents on the World Wide Web. HTML is very simple, and logical.  It reads from  left to right, top to bottom and uses plain text. HTML is  NOT  a programming language, but a  mark-up language that uses  <Tags>  like this. The websites you view on the internet are  actually text files that consist of HTML Tags.
What is Hypertext? Documents with  links  to other documents. A  non-sequential, non-linear  method for reading a document. Textual data which is  linked within itself or across multiple documents or locations   A  nonlinear system of writing  that allows users to access text or a narrative through multiple pathways. T
Hypertext in History The cross-referencing system in the  Babylonian Talmud.
Hypertext through History A Dictionary or Encyclopedia A page from Dr. Samuel Johnson’s Dictionary with references to the usage of the words in literature.
Hypertext in Academe Citations and Footnotes
Hypertext in Literature A matrix of stories like the  Arabian Nights  where the  One Thousand and One  different stories are all  interconnected  and form a matrix or web of stories.
Macintosh in the 80s A  Hypercard  enabled Macintosh to construct a series of on-screen `filing cards' that contained textual and graphical information. Users could navigate these by pressing on-screen buttons, taking themselves on a tour of the information in the process. Hypertext jumps could only be made to files on the same computer. More like an on-screen filing system. Jumps made to computers on the other side of the world were still out of the question.
Now, what is a mark-up language? A markup language  identifies pieces of a document  so that another person (or application) can do something with those pieces.  Before HTML After HTML
Do you recognise this? Traditionally, “ markup men ” used to markup manuscripts before they were copied or printed. In modern publishing, they are called  proofreaders .
A marked-up page (or proof) “Markup men” and proofreaders  only look at how the content is presented--they do not edit the content ; content is editors by copyeditors and manuscript editors.
The library science & archives students should recognise this model of a markup language?
The MIM, library science & archives students should recognise this?
The Encode Archival Description used in Archives’ Finding Aids. The EAD or  The Encoded Archival Description,   a mark-up standard for encoding archival finding aids (based more on XML, but more on that later)
Recognise these old text formatters?
What do text-formatters do? All formatters distinguish the text to be printed from the instructions about how to print; these instructions are called  markup . In HTML,  markup  looks like <b> markup <b> Procedural markup  tells the software what to do (space down, paragraph breaks);  generic markup  describes the thing to be printed (heading, cross-reference, etc.).
A very brief History of HTML  Tim Berners-Lee , a British physicist working at CERN labs in Switzerland at the time (1989) is the inventor of HTML, and is often also credited as the inventor of www.  HTML is based on SGML (Standard Generalized Markup Langauge), which existed since 1940s, but without the ability to link. He proposed it as a way for of enabling researchers from remote sites in the world to organize and pool together information.  He suggested that you could actually link the text in the files themselves, through an agreed-upon mark-up language.
The W3C: A www Consortium Today, the  World Wide Web Consortium  (W3C) is an international consortium where member organizations, a full-time staff, and the public work together to develop Web standards. Tim Berners-Lee is the Director of the W3C.
internet vs. www The Internet, basically a  network of networks , had existed in various other forms around the world, particularly in the US Military and in Scientific communities since 1940s: ARPANET  The www is  a way of accessing the information over the Internet  through a HyperText Transfer Protocol (HTTP). It is an information sharing model that is built on top of the Internet.  www is just a  portion  of the Internet.  Internet, and not the www, is what is mostly used for e-mail.
HTML is no different from any other formatting language. HTML is NOT a computer programming language.  Neither is SQL or XML, although extensions to these languages can be computer languages.  Just as SQL is a data query language, HTML is simply a text-formatting language
HTML uses Tags to markup the text Tags are instructions that tell your Web browser what to show on the page  All tags begin with a less-than sign  <   and end with a greater-than sign   > .  So anything inside of   <  >   is a tag. Each tag must be accompanied by a closing tag, which is exactly the same as the tag except it includes a slash after the less-than sign:  </>
Getting Started What you need: A computer. A web browser. A place to house your page/s on the www A program to uplaod the page to the home on the www A word processor (preferably Windows Notepad or WordPad or MAC TextEdit or other text editing programs. NOT a text formatting program like Word.) And you’re ready to make websites! Everything from here on is provided in the practical exercises webpage at  http://itbn362.10gbfreewebhost.com , but I will explain if we have time.
Open Notepad
Basic Document Structure <!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;> <html> <head> <title> Your Title </title> <!-  container -you can write comments in here for yourself that the browser will not display > </head> <body> This is where your content goes. </body> </html>
Elements Elements are made up of two tags; a start tag and an end tag. Between these tags is the element content. <title> Will Code in HTML for Food </title>
Start Tags A start tag is a left angle bracket followed by the name of the element and then a right angle bracket. A  tag  is also referred to as a  ‘wicket’  by some.  <title>
End Tags End tags are a left angle bracket and a slash followed by the name of the element and then a right angle bracket.  The slash allows the computer to distinguish the end tag from the start tag .  Tags are case sensitive in the new XHTML standard but not in HTML. </title>
Empty Elements Certain elements are empty and are designated by a slash before the right angle bracket in the start tag. <br/> The  <br>  element is used to insert a line break into the document. This tells the computer to stop the text at that point and start a new line. As you may have guessed the  <br>  element does not have any content so it does not need an end tag but is written as  <br/>  instead of  </br>
Content Most elements will contain multiple elements.  This may sound confusing but it is really very simple.  An element that contains another element looks like this: <head>  <title> The   document title </title>  </head>
Nesting Nesting means the way in which elements contain elements. When we say that elements are properly nested we mean that each element is completely contained within the elements that contain it, and it completely contains the elements it contains.
Nesting, continued <em> Alladin is a  <strong> fantastic </strong>  story.< /em> ^ That is perfect HTML <em> Alladin is a  <strong> fantastic </em>  story.  </strong> ^ That is not!  Can you spot the error? The <em> starts outside the <strong> but finishes inside it. The tags are not properly nested.
Required Elements There are four elements that all HTML documents must contain. They must have a  <head>  and they must contain a  <title> . They also must have <html>  and  <body>  elements.
<html> The  <html>  element contains the whole document. It starts first and finishes last. It tells the computer that this is an <html>  document and must always be present.
<head> The  <head>  contains elements that are about the document rather than elements that are displayed in the page itself and includes things like the document title.
<title> The document you must have a  <title> which describes what the document is. Without a  <title>  the document is not valid.
<body> A last, but certainly not least, the document must have a  <body> . The  <body>  is the Webpage itself. It comes after the  <head> and is the only other element that can go in your  <html>  element. Anything that you want to put in your page goes in here.
Put It All Together <html> <head> <title>  yadda yadda yadda </title> </head> <body>  blah blah blah blah </body> </html>
Beginning to Write Basic HTML tags Note: Better not to use  underline  as it may be confused as a link. Underline <u> Underline </u> U Underline Italic <i> Italic </i> I Italic Bold <b> Bold </b> B Bold What it Does Code Used Code Effect
Tags cont. You can use as many tags at one time as you’d like. Example:  <b><i><u> Text Text Text </b></i></u> Looks like: Text Text Text Example:  <b> Text </b><i> Text </i><u> Text </u> Looks like: Text  Text   Text
Single Tags These tags do not require that you close them (in HTML only). This stands for  P aragraph. It does the exact same thing as the <BR> above except this tag skips a line. BR just jumps to the next line, P skips a line before starting the text again.   <p> This  BR eaks the text and starts it again on the next line. Remember you saved your document as TEXT so where you hit ENTER to jump to the next line was not saved. In an HTML document, you need to denote where you want every carriage return with a <BR>.   <br> This command gives you a line across the page. ( HR  stands for Horizontal Reference.) <hr> What It Does Tag
Writing Your First Page Looks like this This… Example:
Manipulating Text Heading Commands <h1> This is Heading 1 </h1> <h2> This is Heading 2 </h2> <h3> This is Heading 3 </h3> <h4> This is Heading 4 </h4> <h5> This is Heading 5 </h5> <h6> This is Heading 6< /h6> Heading commands create nice, bold text and are quite easy to use. It's a simple command.
Font Size There are twelve font size commands. +6  through  +1   and   -1  through  -6 . +6  is the largest (it's huge);  - 6  is the smallest. <font size=&quot;+1&quot;> This is +1 </font>   [These are deprecated in XHTML in favour of Style Sheets, but that is not within the scope of our class]
Font Color and Face HTML uses Hex Codes for colors.  A hex code is a 6 digit code that translates into a specific color. <font color=“#FFFFFF”> White Text </font> To change the Font of your text, use the Face attribute. <font face=“arial”> Arial Text </font> [ NOTE:  These are deprecated in XHTML in favour of Style Sheets, but that is not within the scope of our class. Once you’ve learned HTML, you can look up an XHTML reference sheet for the changes ]
Text Alignment To center text, simply place  <center>  before the text, and  </center>  at the end of the text you want centered. To move text to the left or the right, use the  <p>  tag. <p ALIGN=“right”> Text is pushed to the right .</p> Note:  All HTML tags use American spelling: color, center etc.
Remember! Write the page as you would any other text document. When you SAVE the document always click ‘Save As…’ and ALWAYS save the file as TEXT DOCUMENT (.txt), but with an extension of .html If you don’t save as a Text only document, your computer will save it as it’s default format.
The End This is in fact not really the end, but it is the end of the  basics . We have seen that there are  rules  to be followed when writing your HTML documents, and we've looked at the basic building blocks  of HTML. As long as you follow these rules, you are on your way to creating HTML web pages and  perhaps even learn XHTML!

Recommended

PPTX
HTML Introduction
PPT
Eye catching HTML BASICS tips: Learn easily
PPT
Html Slide Part-1
PPT
Intro to html
PPTX
PPTX
Lecture 2 introduction to html
ODP
Html
PPTX
Html notes with Examples
 
PPT
Html presentation
PPTX
Basic HTML
PPT
Web Development using HTML & CSS
PPTX
Html
PDF
Basic Html Notes
PPTX
HTML (Web) basics for a beginner
PPSX
Html introduction
PPTX
HTML/HTML5
PDF
Html,javascript & css
PPTX
Html
PPTX
How to learn HTML in 10 Days
PPTX
HTML Introduction, HTML History, HTML Uses, HTML benifits
PPTX
Introduction to html
PPTX
(Fast) Introduction to HTML & CSS
PPTX
Basic Html Knowledge for students
PPTX
An Overview of HTML, CSS & Java Script
PPT
Introduction to Cascading Style Sheets (CSS)
PPT
PPT
Css Ppt
PPTX
HTML LIST
PPT
Introduction to html
PPT
Introduction to html

More Related Content

PPTX
HTML Introduction
PPT
Eye catching HTML BASICS tips: Learn easily
PPT
Html Slide Part-1
PPT
Intro to html
PPTX
PPTX
Lecture 2 introduction to html
ODP
Html
PPTX
Html notes with Examples
 
HTML Introduction
Eye catching HTML BASICS tips: Learn easily
Html Slide Part-1
Intro to html
Lecture 2 introduction to html
Html
Html notes with Examples
 

What's hot

PPT
Html presentation
PPTX
Basic HTML
PPT
Web Development using HTML & CSS
PPTX
Html
PDF
Basic Html Notes
PPTX
HTML (Web) basics for a beginner
PPSX
Html introduction
PPTX
HTML/HTML5
PDF
Html,javascript & css
PPTX
Html
PPTX
How to learn HTML in 10 Days
PPTX
HTML Introduction, HTML History, HTML Uses, HTML benifits
PPTX
Introduction to html
PPTX
(Fast) Introduction to HTML & CSS
PPTX
Basic Html Knowledge for students
PPTX
An Overview of HTML, CSS & Java Script
PPT
Introduction to Cascading Style Sheets (CSS)
PPT
PPT
Css Ppt
PPTX
HTML LIST
Html presentation
Basic HTML
Web Development using HTML & CSS
Html
Basic Html Notes
HTML (Web) basics for a beginner
Html introduction
HTML/HTML5
Html,javascript & css
Html
How to learn HTML in 10 Days
HTML Introduction, HTML History, HTML Uses, HTML benifits
Introduction to html
(Fast) Introduction to HTML & CSS
Basic Html Knowledge for students
An Overview of HTML, CSS & Java Script
Introduction to Cascading Style Sheets (CSS)
Css Ppt
HTML LIST

Viewers also liked

PPT
Introduction to html
PPT
Introduction to html
PPTX
Introduction to html course digital markerters
PPT
Introduction to PHP
PPT
Basic html
PPT
The Internet Presentation
PPT
The History Of The Internet Presentation
PPT
Ppt ch11
PPT
Introduction to HTML
PPT
Introduction to microprocessor
PPT
Internet History
PDF
21 web-developement-trends
PDF
Introduction to Microcontroller
PPT
Ppt ch01
PPT
Ppt ch03
PPT
Ppt ch04
PPT
Ppt ch05
PPT
Ppt ch07
Introduction to html
Introduction to html
Introduction to html course digital markerters
Introduction to PHP
Basic html
The Internet Presentation
The History Of The Internet Presentation
Ppt ch11
Introduction to HTML
Introduction to microprocessor
Internet History
21 web-developement-trends
Introduction to Microcontroller
Ppt ch01
Ppt ch03
Ppt ch04
Ppt ch05
Ppt ch07

Similar to Introduction to HTML

PPT
PPT
Web designing using html
PPT
introdution-to-html,regarding high level language
PPT
introdution to html notes and practice.ppt
PPT
Html for Beginners
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
PPT
introdution-to000000000000000000000-html.ppt
PPTX
Introduction to HTML and Basics in Web Design
PPTX
WEB TECHNOLOGY SLIDE 2 coe35mgfdggdh.pptx
KEY
Class1slides
PPT
Intro to html
PPTX
HTML Basics, Web Development Part-1 .pptx
DOCX
Html basics
PPTX
Module 1
PPT
HTML Introduction
PPTX
Web Site Designing - Basic
PPT
introdution-to-html.ppt
PPTX
introdution-to-html_jayarao27_11_22.pptx
PPT
Html
Web designing using html
introdution-to-html,regarding high level language
introdution to html notes and practice.ppt
Html for Beginners
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
introdution-to000000000000000000000-html.ppt
Introduction to HTML and Basics in Web Design
WEB TECHNOLOGY SLIDE 2 coe35mgfdggdh.pptx
Class1slides
Intro to html
HTML Basics, Web Development Part-1 .pptx
Html basics
Module 1
HTML Introduction
Web Site Designing - Basic
introdution-to-html.ppt
introdution-to-html_jayarao27_11_22.pptx
Html

Recently uploaded

PDF
Digit Expo 2025 - EICC Edinburgh 27th November
PDF
Day 2 - Network Security ~ 2nd Sight Lab ~ Cloud Security Class ~ 2020
PDF
Day 3 - Data and Application Security - 2nd Sight Lab Cloud Security Class
PDF
Dev Dives: AI that builds with you - UiPath Autopilot for effortless RPA & AP...
PDF
Session 1 - Solving Semi-Structured Documents with Document Understanding
PPT
software-security-intro in information security.ppt
PDF
ElyriaSoftware — Powering the Future with Blockchain Innovation
PDF
Security Technologys: Access Control, Firewall, VPN
PDF
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
PDF
The year in review - MarvelClient in 2025
PDF
Is It Possible to Have Wi-Fi Without an Internet Provider
PPTX
Kanban India 2025 | Daksh Gupta | Modeling the Models, Generative AI & Kanban
PDF
GPUS and How to Program Them by Manya Bansal
PDF
Accelerating Responsible AI Adoption in Public Sector and Private Organizations.
PDF
Usage Control for Process Discovery through a Trusted Execution Environment
PPTX
Cybersecurity Best Practices - Step by Step guidelines
PPTX
AI in Cybersecurity: Digital Defense by Yasir Naveed Riaz
PDF
Greetings All Students Update 3 by Mia Corp
PPTX
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
PPTX
Cybercrime in the Digital Age: Risks, Impact & Protection
Digit Expo 2025 - EICC Edinburgh 27th November
Day 2 - Network Security ~ 2nd Sight Lab ~ Cloud Security Class ~ 2020
Day 3 - Data and Application Security - 2nd Sight Lab Cloud Security Class
Dev Dives: AI that builds with you - UiPath Autopilot for effortless RPA & AP...
Session 1 - Solving Semi-Structured Documents with Document Understanding
software-security-intro in information security.ppt
ElyriaSoftware — Powering the Future with Blockchain Innovation
Security Technologys: Access Control, Firewall, VPN
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
The year in review - MarvelClient in 2025
Is It Possible to Have Wi-Fi Without an Internet Provider
Kanban India 2025 | Daksh Gupta | Modeling the Models, Generative AI & Kanban
GPUS and How to Program Them by Manya Bansal
Accelerating Responsible AI Adoption in Public Sector and Private Organizations.
Usage Control for Process Discovery through a Trusted Execution Environment
Cybersecurity Best Practices - Step by Step guidelines
AI in Cybersecurity: Digital Defense by Yasir Naveed Riaz
Greetings All Students Update 3 by Mia Corp
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
Cybercrime in the Digital Age: Risks, Impact & Protection

Introduction to HTML

  • 1.
    Introduction to WebDesign Part 1: HTML
  • 2.
    If You KnowNothing About HTML, This is Where You Begin.
  • 3.
    HTML Issues forOrganisations Why the need to know HTML code? WYSIWG (What You See Is What You Get) editors (like Front Page and Dreamweaver) create program-specific code that is incomprehensible to other programs and may not be displayed correctly on all browsers or all operating systems. You cannot edit them if you don’t have the original software, OR know enough about HTML and how it works to be able to make small edits yourself. Company Intranets mostly use HTML. HTML is now also used in e-mail and in e-mail marketing. HTML is increasingly used as the basis of stand-alone applications that use a GUI (Graphical User Interface). Eg., an online Calculator with input fields.
  • 4.
    Advantages of knowingHTML Code New technologies start out as code without tools HTML (early days), JavaScript, Java, ASP, XML Even if you use WYSIWYG eidtors, it helps to know HTML code to insert ASP or JavaScript into a HTML file If you can read code, you can copy clever ideas from others (within reason and the law). Imitation is the best form of flattery. Go to any web page, click on “View” “Page source” or “Source” and the HTML code used to create that web page can be studied, or just copied (within legal and copyright bounds) Web authoring tools don’t give as much control. Most web professional web designers use HTML .
  • 5.
    What is HTML? H yper T ext M arkup L anguage. HTML is a computer language that is used to create documents on the World Wide Web. HTML is very simple, and logical. It reads from left to right, top to bottom and uses plain text. HTML is NOT a programming language, but a mark-up language that uses <Tags> like this. The websites you view on the internet are actually text files that consist of HTML Tags.
  • 6.
    What is Hypertext?Documents with links to other documents. A non-sequential, non-linear method for reading a document. Textual data which is linked within itself or across multiple documents or locations A nonlinear system of writing that allows users to access text or a narrative through multiple pathways. T
  • 7.
    Hypertext in HistoryThe cross-referencing system in the Babylonian Talmud.
  • 8.
    Hypertext through HistoryA Dictionary or Encyclopedia A page from Dr. Samuel Johnson’s Dictionary with references to the usage of the words in literature.
  • 9.
    Hypertext in AcademeCitations and Footnotes
  • 10.
    Hypertext in LiteratureA matrix of stories like the Arabian Nights where the One Thousand and One different stories are all interconnected and form a matrix or web of stories.
  • 11.
    Macintosh in the80s A Hypercard enabled Macintosh to construct a series of on-screen `filing cards' that contained textual and graphical information. Users could navigate these by pressing on-screen buttons, taking themselves on a tour of the information in the process. Hypertext jumps could only be made to files on the same computer. More like an on-screen filing system. Jumps made to computers on the other side of the world were still out of the question.
  • 12.
    Now, what isa mark-up language? A markup language identifies pieces of a document so that another person (or application) can do something with those pieces. Before HTML After HTML
  • 13.
    Do you recognisethis? Traditionally, “ markup men ” used to markup manuscripts before they were copied or printed. In modern publishing, they are called proofreaders .
  • 14.
    A marked-up page(or proof) “Markup men” and proofreaders only look at how the content is presented--they do not edit the content ; content is editors by copyeditors and manuscript editors.
  • 15.
    The library science& archives students should recognise this model of a markup language?
  • 16.
    The MIM, libraryscience & archives students should recognise this?
  • 17.
    The Encode ArchivalDescription used in Archives’ Finding Aids. The EAD or The Encoded Archival Description, a mark-up standard for encoding archival finding aids (based more on XML, but more on that later)
  • 18.
    Recognise these oldtext formatters?
  • 19.
    What do text-formattersdo? All formatters distinguish the text to be printed from the instructions about how to print; these instructions are called markup . In HTML, markup looks like <b> markup <b> Procedural markup tells the software what to do (space down, paragraph breaks); generic markup describes the thing to be printed (heading, cross-reference, etc.).
  • 20.
    A very briefHistory of HTML Tim Berners-Lee , a British physicist working at CERN labs in Switzerland at the time (1989) is the inventor of HTML, and is often also credited as the inventor of www. HTML is based on SGML (Standard Generalized Markup Langauge), which existed since 1940s, but without the ability to link. He proposed it as a way for of enabling researchers from remote sites in the world to organize and pool together information. He suggested that you could actually link the text in the files themselves, through an agreed-upon mark-up language.
  • 21.
    The W3C: Awww Consortium Today, the World Wide Web Consortium (W3C) is an international consortium where member organizations, a full-time staff, and the public work together to develop Web standards. Tim Berners-Lee is the Director of the W3C.
  • 22.
    internet vs. wwwThe Internet, basically a network of networks , had existed in various other forms around the world, particularly in the US Military and in Scientific communities since 1940s: ARPANET The www is a way of accessing the information over the Internet through a HyperText Transfer Protocol (HTTP). It is an information sharing model that is built on top of the Internet. www is just a portion of the Internet. Internet, and not the www, is what is mostly used for e-mail.
  • 23.
    HTML is nodifferent from any other formatting language. HTML is NOT a computer programming language. Neither is SQL or XML, although extensions to these languages can be computer languages. Just as SQL is a data query language, HTML is simply a text-formatting language
  • 24.
    HTML uses Tagsto markup the text Tags are instructions that tell your Web browser what to show on the page All tags begin with a less-than sign < and end with a greater-than sign > . So anything inside of < > is a tag. Each tag must be accompanied by a closing tag, which is exactly the same as the tag except it includes a slash after the less-than sign: </>
  • 25.
    Getting Started Whatyou need: A computer. A web browser. A place to house your page/s on the www A program to uplaod the page to the home on the www A word processor (preferably Windows Notepad or WordPad or MAC TextEdit or other text editing programs. NOT a text formatting program like Word.) And you’re ready to make websites! Everything from here on is provided in the practical exercises webpage at http://itbn362.10gbfreewebhost.com , but I will explain if we have time.
  • 26.
  • 27.
    Basic Document Structure<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;> <html> <head> <title> Your Title </title> <!- container -you can write comments in here for yourself that the browser will not display > </head> <body> This is where your content goes. </body> </html>
  • 28.
    Elements Elements aremade up of two tags; a start tag and an end tag. Between these tags is the element content. <title> Will Code in HTML for Food </title>
  • 29.
    Start Tags Astart tag is a left angle bracket followed by the name of the element and then a right angle bracket. A tag is also referred to as a ‘wicket’ by some. <title>
  • 30.
    End Tags Endtags are a left angle bracket and a slash followed by the name of the element and then a right angle bracket. The slash allows the computer to distinguish the end tag from the start tag . Tags are case sensitive in the new XHTML standard but not in HTML. </title>
  • 31.
    Empty Elements Certainelements are empty and are designated by a slash before the right angle bracket in the start tag. <br/> The <br> element is used to insert a line break into the document. This tells the computer to stop the text at that point and start a new line. As you may have guessed the <br> element does not have any content so it does not need an end tag but is written as <br/> instead of </br>
  • 32.
    Content Most elementswill contain multiple elements. This may sound confusing but it is really very simple. An element that contains another element looks like this: <head> <title> The document title </title> </head>
  • 33.
    Nesting Nesting meansthe way in which elements contain elements. When we say that elements are properly nested we mean that each element is completely contained within the elements that contain it, and it completely contains the elements it contains.
  • 34.
    Nesting, continued <em>Alladin is a <strong> fantastic </strong> story.< /em> ^ That is perfect HTML <em> Alladin is a <strong> fantastic </em> story. </strong> ^ That is not! Can you spot the error? The <em> starts outside the <strong> but finishes inside it. The tags are not properly nested.
  • 35.
    Required Elements Thereare four elements that all HTML documents must contain. They must have a <head> and they must contain a <title> . They also must have <html> and <body> elements.
  • 36.
    <html> The<html> element contains the whole document. It starts first and finishes last. It tells the computer that this is an <html> document and must always be present.
  • 37.
    <head> The<head> contains elements that are about the document rather than elements that are displayed in the page itself and includes things like the document title.
  • 38.
    <title> The documentyou must have a <title> which describes what the document is. Without a <title> the document is not valid.
  • 39.
    <body> A last,but certainly not least, the document must have a <body> . The <body> is the Webpage itself. It comes after the <head> and is the only other element that can go in your <html> element. Anything that you want to put in your page goes in here.
  • 40.
    Put It AllTogether <html> <head> <title> yadda yadda yadda </title> </head> <body> blah blah blah blah </body> </html>
  • 41.
    Beginning to WriteBasic HTML tags Note: Better not to use underline as it may be confused as a link. Underline <u> Underline </u> U Underline Italic <i> Italic </i> I Italic Bold <b> Bold </b> B Bold What it Does Code Used Code Effect
  • 42.
    Tags cont. Youcan use as many tags at one time as you’d like. Example: <b><i><u> Text Text Text </b></i></u> Looks like: Text Text Text Example: <b> Text </b><i> Text </i><u> Text </u> Looks like: Text Text Text
  • 43.
    Single Tags Thesetags do not require that you close them (in HTML only). This stands for P aragraph. It does the exact same thing as the <BR> above except this tag skips a line. BR just jumps to the next line, P skips a line before starting the text again. <p> This BR eaks the text and starts it again on the next line. Remember you saved your document as TEXT so where you hit ENTER to jump to the next line was not saved. In an HTML document, you need to denote where you want every carriage return with a <BR>. <br> This command gives you a line across the page. ( HR stands for Horizontal Reference.) <hr> What It Does Tag
  • 44.
    Writing Your FirstPage Looks like this This… Example:
  • 45.
    Manipulating Text HeadingCommands <h1> This is Heading 1 </h1> <h2> This is Heading 2 </h2> <h3> This is Heading 3 </h3> <h4> This is Heading 4 </h4> <h5> This is Heading 5 </h5> <h6> This is Heading 6< /h6> Heading commands create nice, bold text and are quite easy to use. It's a simple command.
  • 46.
    Font Size Thereare twelve font size commands. +6 through +1 and -1 through -6 . +6 is the largest (it's huge); - 6 is the smallest. <font size=&quot;+1&quot;> This is +1 </font> [These are deprecated in XHTML in favour of Style Sheets, but that is not within the scope of our class]
  • 47.
    Font Color andFace HTML uses Hex Codes for colors. A hex code is a 6 digit code that translates into a specific color. <font color=“#FFFFFF”> White Text </font> To change the Font of your text, use the Face attribute. <font face=“arial”> Arial Text </font> [ NOTE: These are deprecated in XHTML in favour of Style Sheets, but that is not within the scope of our class. Once you’ve learned HTML, you can look up an XHTML reference sheet for the changes ]
  • 48.
    Text Alignment Tocenter text, simply place <center> before the text, and </center> at the end of the text you want centered. To move text to the left or the right, use the <p> tag. <p ALIGN=“right”> Text is pushed to the right .</p> Note: All HTML tags use American spelling: color, center etc.
  • 49.
    Remember! Write thepage as you would any other text document. When you SAVE the document always click ‘Save As…’ and ALWAYS save the file as TEXT DOCUMENT (.txt), but with an extension of .html If you don’t save as a Text only document, your computer will save it as it’s default format.
  • 50.
    The End Thisis in fact not really the end, but it is the end of the basics . We have seen that there are rules to be followed when writing your HTML documents, and we've looked at the basic building blocks of HTML. As long as you follow these rules, you are on your way to creating HTML web pages and perhaps even learn XHTML!

[8]ページ先頭

©2009-2025 Movatter.jp