SlideShare une entreprise Scribd logo
1  sur  36
-By V.Gouthaman
INTRODUCTION HTML , which stands for  H yper T ext  M arkup  L anguage, is the predominant markup language for web pages. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes, and other items. It allows images and objects to be embedded and can be used to create interactive forms. It is written in the form of HTML elements consisting of "tags" surrounded by angle brackets within the web page content. It can load scripts in languages such as JavaScript which affect the behavior of HTML webpages. HTML can also be used to include Cascading Style Sheets (CSS) to define the appearance and layout of text and other material. The W3C, maintainer of both HTML and CSS standards, encourages the use of CSS over explicit presentational markup.
Markup HTML markup consists of several key components, including elements (and their attributes), character-based data types, and character references and entity references. Another important component is the document type declaration, which specifies the Document Type Definition. As of HTML 5, no Document Type Definition will need to be specified, and will only determine the layout mode. The Hello world program, a common computer program employed for comparing programming languages, scripting languages, and markup languages is made of 9 lines of code in HTML, albeit Newlines are optional: Sample Program <!doctype html> <html> <head> <title>Hello HTML</title> </head> <body> <p>Hello World!</p> </body> </html> This Document Type Declaration is for HTML 5. If the <!doctype html> declaration is not included, most browsers will render using &quot;quirks mode.&quot;
VARIOUS  HTML TAGS
HTML documents are composed entirely of HTML elements that, in their most general form have three components: a pair of element tags with a &quot;start tag&quot; and &quot;end tag&quot;; some element attributes given to the element within the tags; and finally, all the actual, textual and graphical[clarification needed], information content that will be rendered on the display. An HTML element is everything between and including the tags. A tag is a keyword enclosed in angle brackets.
A common form of an HTML element is: <tag>content to be rendered</tag> The name of the HTML element is also the name of the tag. Note that the end tag's name starts with a slash character, &quot;/&quot;. The most general form of an HTML element is: <tag attribute1=&quot;value1&quot; attribute2=&quot;value2&quot;>content to be rendered</tag> By not assigning attributes most start tags default their attribute values.
html tag  ( <html> , </html> ) All the html documents should contain this html tags. All the contents should be typed inside these tags. This forms the base of the document. It tells the browser where the document starts and where it stops.  Everything in the document goes inside <HTML>, except that <!DOCTYPE ...> (if you choose to use it) goes just before <HTML>.
All normal webpages consist of a head and a body. * The head is used for text and tags that do not show directly on the page. * The body is used for text and tags that are shown directly on the page.  Head and body tags
<html> <head> <!-- This section is for the title and technical info of the page. --> </head> <body> <!-- This section is for all that you want to show on the page. --> </body> </html>  Syntax for head and body tags
HEAD SECTION The head section of the webpage includes all the stuff that does not show directly on the resulting page. The <title> and </title> tags encapsulate the title of your page. The title is what shows in the top of your browser window when the page is loaded.
BODY SECTION The body of the document contains all that can be seen when the user loads the page. In the rest of this tutorial you can learn in detail about all the different aspects of HTML, including: * Text * Formatting * Resizing * Layout * Listing * Links * To local pages * To pages at other sites * To bookmarks
* Images * Inserting images (GIF and jpg) * Adding a link to an image * Backgrounds * Colors * Images * Fixed Image * Tables * Frames * Forms * Metatags * Hexadecimal Colors
BGCOLOR:  background color of the page  BACKGROUND:  background picture for the page  TEXT:  color of the text on the page  LINK:  color of links that haven't been followed yet  VLINK:  color of links that have been followed  ALINK:  color of links while you are clicking on them  BGPROPERTIES = FIXED if the background image should not scroll  TOPMARGIN:  size of top and bottom margins
LEFTMARGIN : size of left and right margins  MARGINHEIGHT : size of top and bottom margins  MARGINWIDTH : size of left and right margins  onLoad : Script to run once the page is fully loaded  onUnload   onFocus   onBlur   STYLESRC : MS FrontPage extension  SCROLL   = YES | NO If the document should have a scroll bar
<A ...> is the cornerstone of HTML, the tag that makes hypertext hypertext. <A ...> is the tag you use to make hyperlinks: the text that you can click on in your web browser to go to another web page.  *  HREF:  URL you are linking to *  NAME:  name a section of the page *  TARGET:  which window the document should go in *  TITLE:  suggested title for the document to be opened *  onClick:  script to run when the user clicks on this anchor *  onMouseOver:  when the mouse is over the link *  onMouseOut:  when the mouse is no longer over the link *  ACCESSKEY All the above commands can be used in the tag <a ...> </A> Closes the anchor
<B> makes the text bold. Sample: I <B>really</B> like this idea. Output: I  really  like this idea.
<P ...> indicates the start of a new paragraph. This is usually rendered with two carriage returns, producing a single blank line in between the two paragraphs: <TITLE> states the title of the document. <TITLE> always goes in the <HEAD> section.  <U> underlines the enclosed text.
<VAR> indicates a variable from a computer program. <!-- ••• --> allows you to insert comments into an HTML document and have them completely ignored by the browser. This is useful for such things as revision histories and notes about how to improve the document. For example, this code <!-- Creation Date: June 21, 1996  --> <!-- Modifications:  --> <!-- Sep 26, 1996: Added Links to Steve's Page --> <!-- Oct 10, 1996: Updated product list  -->
<ADDRESS> denotes contact information for the author or organization of the web site.  <BGSOUND ...> <BGSOUND ...>, MSIE, tells the browser to play a particular sound when the page is loaded.  * SRC: URL of the sound * LOOP: how many times to play the sound
<BIG> <BIG> makes the text bigger. <BLINK> <BLINK> causes the text to blink. <DIR ...> <DIR ...> indicates that the listing is a directory, such as a directory of a web site or of an organization. <DIR ...> works with <LI ...> in the same way <UL ...> does, and is generally rendered the same way.
<EMBED ...> <EMBED ...> puts a browser plugin in the page. A plugin is a special program located on the client computer (i.e. not on your web server) that handles its own special type of data file. The most common plugins are for sounds and movies. The <EMBED ...> tag gives the location of a data file that the plugin should handle.
<APPLET ...> <APPLET ...> puts an applet in your page. In its simplest use, <APPLET ...> requires the use of CODE (to tell what applet file to load), WIDTH (to tell how wide the applet should be), and HEIGHT (to tell how tall the applet should be).
<FONT ...> <FONT ...> is the addictive drug of HTML. When you start using <FONT ...> you're likely to think it's the coolest HTML tag ever created. You can set the sizes, faces and colours of the fonts on your web page, all with understandable <FONT ...> tags. Then, when you've loaded your web pages with a billion <FONT ...> tags, you find out the ugly side of <FONT ...>. You have to use it over and over to give your page the appearance you want. It doesn't work in tables unless you put <FONT ...> in every cell. If you want to change the appearance of the fonts in your page you have to change every single <FONT ...> tag. <FONT ...> has taken over your code.
*  SIZE : size of the font *  COLOR : colour of the text *  FACE : set the typestyle for text *  POINT-SIZE *  WEIGHT  All the above can be used in <FONT ...>
<BLINK> <BLINK> causes the text to blink.   <BLINK> was once reviled as the most obnoxious tag in HTML. Now it's mostly forgotten. MSIE does not even support <BLINK> anymore.
<EM> Indicates emphasis in a sentence. <FORM ...> * ACTION: URL of the CGI program * METHOD: how to transfer the data to the CGI * NAME: name of this form * ENCTYPE: what type of form this is * TARGET: what frames to put the results in * onSubmit: script to run before the form is submitted * onReset: script to run before the form is reset <FORM ...> indicates the beginning of a form. All other form tags go inside  <FORM ...>. In its simplest use, <FORM ...> can be used without any attributes
<I> <I> italicizes the text.  <IMG ...> <IMG ...> puts an image on the web page. <IMG ...> requires two attributes: SRC and ALT. ALT is always required in <IMG ...> SRC : where to get the picture  ALT : text to show if you don't show the picture  NAME   LONGDESC : URL of a long description of the image  WIDTH : how wide is the picture  HEIGHT : how tall is the picture  ALIGN = LEFT | RIGHT | TOP | TEXTTOP | MIDDLE | ABSMIDDLE | BOTTOM | ABSBOTTOM | BASELINE how text should flow around the picture  BORDER : border around the picture  HSPACE : horizontal distance between the picture and the text
VSPACE : vertical distance between the picture and the text  ISMAP : is this a clickable map?  USEMAP : name of the map definition  LOWSRC : a version of the picture that isn't such a big file  NATURALSIZEFLAG : meaningless  NOSAVE : meaningless  DYNSRC : play a movie file  CONTROLS : show the buttons which control the movie  LOOP = INFINITE | -1 | # of loops how many times to loop the movie  START = FILEOPEN | MOUSEOVER when to start playing the movie  onLoad : script to runs after the image is downloaded  SUPPRESS = TRUE | FALSE Don't show icons of images that haven't downloaded yet
<MARQUEE ...> <MARQUEE ...> creates a scrolling display. <MARQUEE ...> is an MSIE extension, but is now supported by NS 7. <MARQUEE ...> is often regarded as one of the &quot;evil&quot; tags, and that perception alone might be enough reason to not use it. However, used lightly and with taste (and understanding that it will never render everywhere), <MARQUEE ...> isn't such a bad tag. It can work well for announcements.
<MENU ...> <MENU ...> indicates the start a series of choices. It is usually rendered like <UL ...>. <BR ...> <BR ...> inserts a single carriage return. Whereas <P ...> indicates the start of a new paragraph, <BR ...> only implies a carriage return within the same paragraph. <BR ...> is usually rendered with a single carriage return.
<BUTTON ...> <BUTTON ...> creates a button. Unlike <INPUT ...>, <BUTTON ...> is a container which allows you to put regular HTML contents in the button, including text and pictures. Unfortunately, <BUTTON ...> does not degrade well, and so at this time it's best to stick with <INPUT ...>.  *  TYPE : what type of button is this *  onClick : script to run when the user clicks here *  NAME : name of this button element *  VALUE : the value sent with the form *  DISABLED : disable this button *  ACCESSKEY : shortcut key for this button *  TABINDEX : tab order All the above commands can be used in  <BUTTON ...>
<OL ...> <OL ...> creates an ordered list. &quot;Ordered&quot; means that the order of the items in the list is important. To show this, browsers automatically number the list. Note in this example that the HTML does not give any numbers: the numbers are automatically made by the browser (which makes it easy on you the author).
<TEXTAREA ...> <TEXTAREA ...> indicates a form field where the user can enter large amounts of text. In most respects, <TEXTAREA ...> works like an <INPUT ...> field. It can have a name, a default value, script events such as onChange, and is sent to a CGI as a name/value pair. One main difference is that <TEXTAREA ...> is a container tag: it has a start tag ().
NAME : name of this form field  COLS : how many characters wide  ROWS : how many rows  WRAP = SOFT | HARD | OFF how to wrap the text  READONLY : don't let the user change the contents of the field  DISABLED : don't let the user do anything with this field  TABINDEX : tab order  LANGUAGE = &quot;JavaScript&quot; | &quot;JavaScript1.1&quot; | &quot;VBScript&quot; |  other language scripting language  onChange : Script to run when the user has changed the textarea  onKeyPress : script to run when a key is pressed
<TT>  produces fixed width text. <VAR>  indicates a variable from a computer program. <WBR>  is for the situation where you have used <NOBR> to prevent line breaks in a section of text, and then you want to say &quot;but you can break HERE if you want&quot;. <WBR> does not force a line break, it merely allows one:
 

Contenu connexe

Tendances (20)

Html ppt
Html pptHtml ppt
Html ppt
 
Html
HtmlHtml
Html
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
HTML/HTML5
HTML/HTML5HTML/HTML5
HTML/HTML5
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Javascript basics
Javascript basicsJavascript basics
Javascript basics
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
Html coding
Html codingHtml coding
Html coding
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Html project
Html projectHtml project
Html project
 
Html basics
Html basicsHtml basics
Html basics
 
Css Ppt
Css PptCss Ppt
Css Ppt
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
Javascript
JavascriptJavascript
Javascript
 
Static and Dynamic webpage
Static and Dynamic webpageStatic and Dynamic webpage
Static and Dynamic webpage
 
Java script
Java scriptJava script
Java script
 

En vedette

Answers for 2 Marks Unit Test I (RMW)
Answers for 2 Marks Unit Test I (RMW)Answers for 2 Marks Unit Test I (RMW)
Answers for 2 Marks Unit Test I (RMW)Gouthaman V
 
Méthode d'Agile: Scrum
Méthode d'Agile: ScrumMéthode d'Agile: Scrum
Méthode d'Agile: ScrumChaymaMghazli
 
Antenna Unit Test II questions
Antenna Unit Test II questionsAntenna Unit Test II questions
Antenna Unit Test II questionsGouthaman V
 
VI Semester Examination Time Table
VI Semester Examination Time TableVI Semester Examination Time Table
VI Semester Examination Time TableGouthaman V
 
Antenna Unit Test II Questions
Antenna Unit Test II QuestionsAntenna Unit Test II Questions
Antenna Unit Test II QuestionsGouthaman V
 

En vedette (7)

Web 2.0
Web 2.0Web 2.0
Web 2.0
 
Answers for 2 Marks Unit Test I (RMW)
Answers for 2 Marks Unit Test I (RMW)Answers for 2 Marks Unit Test I (RMW)
Answers for 2 Marks Unit Test I (RMW)
 
AJAX
AJAXAJAX
AJAX
 
Méthode d'Agile: Scrum
Méthode d'Agile: ScrumMéthode d'Agile: Scrum
Méthode d'Agile: Scrum
 
Antenna Unit Test II questions
Antenna Unit Test II questionsAntenna Unit Test II questions
Antenna Unit Test II questions
 
VI Semester Examination Time Table
VI Semester Examination Time TableVI Semester Examination Time Table
VI Semester Examination Time Table
 
Antenna Unit Test II Questions
Antenna Unit Test II QuestionsAntenna Unit Test II Questions
Antenna Unit Test II Questions
 

Similaire à HTML (20)

Html
HtmlHtml
Html
 
Web designing using html
Web designing using htmlWeb designing using html
Web designing using html
 
Html
HtmlHtml
Html
 
Intr To Html & Xhtml
Intr To Html & XhtmlIntr To Html & Xhtml
Intr To Html & Xhtml
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
Html
HtmlHtml
Html
 
Module 2 Lesson 1
Module 2 Lesson 1Module 2 Lesson 1
Module 2 Lesson 1
 
Html basic
Html basicHtml basic
Html basic
 
HTML_Slideshow1
HTML_Slideshow1HTML_Slideshow1
HTML_Slideshow1
 
Michael(tm) Smith ED09 presentation
Michael(tm) Smith ED09 presentationMichael(tm) Smith ED09 presentation
Michael(tm) Smith ED09 presentation
 
Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
 
HTML (1).pptx
HTML (1).pptxHTML (1).pptx
HTML (1).pptx
 
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
 
Prabu html
Prabu htmlPrabu html
Prabu html
 
Html
HtmlHtml
Html
 
HTML
HTMLHTML
HTML
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
 
ppt.pptx
ppt.pptxppt.pptx
ppt.pptx
 
Html intro
Html introHtml intro
Html intro
 

Plus de Gouthaman V

Professional Ethics Assignment II
Professional Ethics Assignment IIProfessional Ethics Assignment II
Professional Ethics Assignment IIGouthaman V
 
Scholastic averages sheet-2
Scholastic averages sheet-2Scholastic averages sheet-2
Scholastic averages sheet-2Gouthaman V
 
Eligibility criteria and instructions for Infosys Placement
Eligibility criteria and instructions for Infosys PlacementEligibility criteria and instructions for Infosys Placement
Eligibility criteria and instructions for Infosys PlacementGouthaman V
 
Anwers for 2 marks - RMW
Anwers for 2 marks - RMWAnwers for 2 marks - RMW
Anwers for 2 marks - RMWGouthaman V
 
Rmw unit test question papers
Rmw unit test question papersRmw unit test question papers
Rmw unit test question papersGouthaman V
 
Circular and semicircular cavity resonator
Circular and semicircular cavity resonatorCircular and semicircular cavity resonator
Circular and semicircular cavity resonatorGouthaman V
 
VLSI Anna University Practical Examination
VLSI Anna University Practical ExaminationVLSI Anna University Practical Examination
VLSI Anna University Practical ExaminationGouthaman V
 
VLSI Sequential Circuits II
VLSI Sequential Circuits IIVLSI Sequential Circuits II
VLSI Sequential Circuits IIGouthaman V
 
Antenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment IAntenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment IGouthaman V
 
Antenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment IAntenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment IGouthaman V
 
Computer Networks Unit Test II Questions
Computer Networks Unit Test II QuestionsComputer Networks Unit Test II Questions
Computer Networks Unit Test II QuestionsGouthaman V
 
Sequential Circuits I VLSI 9th experiment
Sequential Circuits I VLSI 9th experimentSequential Circuits I VLSI 9th experiment
Sequential Circuits I VLSI 9th experimentGouthaman V
 
Combinational circuits II outputs
Combinational circuits II outputsCombinational circuits II outputs
Combinational circuits II outputsGouthaman V
 
POM Unit Test II - ECE B
POM Unit Test II - ECE BPOM Unit Test II - ECE B
POM Unit Test II - ECE BGouthaman V
 
All VLSI programs
All VLSI programsAll VLSI programs
All VLSI programsGouthaman V
 
VLSI experiments II
VLSI experiments IIVLSI experiments II
VLSI experiments IIGouthaman V
 
VLSI Experiments I
VLSI Experiments IVLSI Experiments I
VLSI Experiments IGouthaman V
 

Plus de Gouthaman V (20)

Professional Ethics Assignment II
Professional Ethics Assignment IIProfessional Ethics Assignment II
Professional Ethics Assignment II
 
Dip Unit Test-I
Dip Unit Test-IDip Unit Test-I
Dip Unit Test-I
 
Scholastic averages sheet-2
Scholastic averages sheet-2Scholastic averages sheet-2
Scholastic averages sheet-2
 
Eligibility criteria and instructions for Infosys Placement
Eligibility criteria and instructions for Infosys PlacementEligibility criteria and instructions for Infosys Placement
Eligibility criteria and instructions for Infosys Placement
 
Anwers for 2 marks - RMW
Anwers for 2 marks - RMWAnwers for 2 marks - RMW
Anwers for 2 marks - RMW
 
Rmw unit test question papers
Rmw unit test question papersRmw unit test question papers
Rmw unit test question papers
 
Circular and semicircular cavity resonator
Circular and semicircular cavity resonatorCircular and semicircular cavity resonator
Circular and semicircular cavity resonator
 
VLSI Anna University Practical Examination
VLSI Anna University Practical ExaminationVLSI Anna University Practical Examination
VLSI Anna University Practical Examination
 
HCL IPT
HCL IPTHCL IPT
HCL IPT
 
VLSI Sequential Circuits II
VLSI Sequential Circuits IIVLSI Sequential Circuits II
VLSI Sequential Circuits II
 
Email
EmailEmail
Email
 
Antenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment IAntenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment I
 
Antenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment IAntenna and Wave Propagation Assignment I
Antenna and Wave Propagation Assignment I
 
Computer Networks Unit Test II Questions
Computer Networks Unit Test II QuestionsComputer Networks Unit Test II Questions
Computer Networks Unit Test II Questions
 
Sequential Circuits I VLSI 9th experiment
Sequential Circuits I VLSI 9th experimentSequential Circuits I VLSI 9th experiment
Sequential Circuits I VLSI 9th experiment
 
Combinational circuits II outputs
Combinational circuits II outputsCombinational circuits II outputs
Combinational circuits II outputs
 
POM Unit Test II - ECE B
POM Unit Test II - ECE BPOM Unit Test II - ECE B
POM Unit Test II - ECE B
 
All VLSI programs
All VLSI programsAll VLSI programs
All VLSI programs
 
VLSI experiments II
VLSI experiments IIVLSI experiments II
VLSI experiments II
 
VLSI Experiments I
VLSI Experiments IVLSI Experiments I
VLSI Experiments I
 

Dernier

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 

Dernier (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 

HTML

  • 2. INTRODUCTION HTML , which stands for H yper T ext M arkup L anguage, is the predominant markup language for web pages. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes, and other items. It allows images and objects to be embedded and can be used to create interactive forms. It is written in the form of HTML elements consisting of &quot;tags&quot; surrounded by angle brackets within the web page content. It can load scripts in languages such as JavaScript which affect the behavior of HTML webpages. HTML can also be used to include Cascading Style Sheets (CSS) to define the appearance and layout of text and other material. The W3C, maintainer of both HTML and CSS standards, encourages the use of CSS over explicit presentational markup.
  • 3. Markup HTML markup consists of several key components, including elements (and their attributes), character-based data types, and character references and entity references. Another important component is the document type declaration, which specifies the Document Type Definition. As of HTML 5, no Document Type Definition will need to be specified, and will only determine the layout mode. The Hello world program, a common computer program employed for comparing programming languages, scripting languages, and markup languages is made of 9 lines of code in HTML, albeit Newlines are optional: Sample Program <!doctype html> <html> <head> <title>Hello HTML</title> </head> <body> <p>Hello World!</p> </body> </html> This Document Type Declaration is for HTML 5. If the <!doctype html> declaration is not included, most browsers will render using &quot;quirks mode.&quot;
  • 5. HTML documents are composed entirely of HTML elements that, in their most general form have three components: a pair of element tags with a &quot;start tag&quot; and &quot;end tag&quot;; some element attributes given to the element within the tags; and finally, all the actual, textual and graphical[clarification needed], information content that will be rendered on the display. An HTML element is everything between and including the tags. A tag is a keyword enclosed in angle brackets.
  • 6. A common form of an HTML element is: <tag>content to be rendered</tag> The name of the HTML element is also the name of the tag. Note that the end tag's name starts with a slash character, &quot;/&quot;. The most general form of an HTML element is: <tag attribute1=&quot;value1&quot; attribute2=&quot;value2&quot;>content to be rendered</tag> By not assigning attributes most start tags default their attribute values.
  • 7. html tag ( <html> , </html> ) All the html documents should contain this html tags. All the contents should be typed inside these tags. This forms the base of the document. It tells the browser where the document starts and where it stops. Everything in the document goes inside <HTML>, except that <!DOCTYPE ...> (if you choose to use it) goes just before <HTML>.
  • 8. All normal webpages consist of a head and a body. * The head is used for text and tags that do not show directly on the page. * The body is used for text and tags that are shown directly on the page. Head and body tags
  • 9. <html> <head> <!-- This section is for the title and technical info of the page. --> </head> <body> <!-- This section is for all that you want to show on the page. --> </body> </html> Syntax for head and body tags
  • 10. HEAD SECTION The head section of the webpage includes all the stuff that does not show directly on the resulting page. The <title> and </title> tags encapsulate the title of your page. The title is what shows in the top of your browser window when the page is loaded.
  • 11. BODY SECTION The body of the document contains all that can be seen when the user loads the page. In the rest of this tutorial you can learn in detail about all the different aspects of HTML, including: * Text * Formatting * Resizing * Layout * Listing * Links * To local pages * To pages at other sites * To bookmarks
  • 12. * Images * Inserting images (GIF and jpg) * Adding a link to an image * Backgrounds * Colors * Images * Fixed Image * Tables * Frames * Forms * Metatags * Hexadecimal Colors
  • 13. BGCOLOR: background color of the page BACKGROUND: background picture for the page TEXT: color of the text on the page LINK: color of links that haven't been followed yet VLINK: color of links that have been followed ALINK: color of links while you are clicking on them BGPROPERTIES = FIXED if the background image should not scroll TOPMARGIN: size of top and bottom margins
  • 14. LEFTMARGIN : size of left and right margins MARGINHEIGHT : size of top and bottom margins MARGINWIDTH : size of left and right margins onLoad : Script to run once the page is fully loaded onUnload onFocus onBlur STYLESRC : MS FrontPage extension SCROLL = YES | NO If the document should have a scroll bar
  • 15. <A ...> is the cornerstone of HTML, the tag that makes hypertext hypertext. <A ...> is the tag you use to make hyperlinks: the text that you can click on in your web browser to go to another web page. * HREF: URL you are linking to * NAME: name a section of the page * TARGET: which window the document should go in * TITLE: suggested title for the document to be opened * onClick: script to run when the user clicks on this anchor * onMouseOver: when the mouse is over the link * onMouseOut: when the mouse is no longer over the link * ACCESSKEY All the above commands can be used in the tag <a ...> </A> Closes the anchor
  • 16. <B> makes the text bold. Sample: I <B>really</B> like this idea. Output: I really like this idea.
  • 17. <P ...> indicates the start of a new paragraph. This is usually rendered with two carriage returns, producing a single blank line in between the two paragraphs: <TITLE> states the title of the document. <TITLE> always goes in the <HEAD> section. <U> underlines the enclosed text.
  • 18. <VAR> indicates a variable from a computer program. <!-- ••• --> allows you to insert comments into an HTML document and have them completely ignored by the browser. This is useful for such things as revision histories and notes about how to improve the document. For example, this code <!-- Creation Date: June 21, 1996 --> <!-- Modifications: --> <!-- Sep 26, 1996: Added Links to Steve's Page --> <!-- Oct 10, 1996: Updated product list -->
  • 19. <ADDRESS> denotes contact information for the author or organization of the web site. <BGSOUND ...> <BGSOUND ...>, MSIE, tells the browser to play a particular sound when the page is loaded. * SRC: URL of the sound * LOOP: how many times to play the sound
  • 20. <BIG> <BIG> makes the text bigger. <BLINK> <BLINK> causes the text to blink. <DIR ...> <DIR ...> indicates that the listing is a directory, such as a directory of a web site or of an organization. <DIR ...> works with <LI ...> in the same way <UL ...> does, and is generally rendered the same way.
  • 21. <EMBED ...> <EMBED ...> puts a browser plugin in the page. A plugin is a special program located on the client computer (i.e. not on your web server) that handles its own special type of data file. The most common plugins are for sounds and movies. The <EMBED ...> tag gives the location of a data file that the plugin should handle.
  • 22. <APPLET ...> <APPLET ...> puts an applet in your page. In its simplest use, <APPLET ...> requires the use of CODE (to tell what applet file to load), WIDTH (to tell how wide the applet should be), and HEIGHT (to tell how tall the applet should be).
  • 23. <FONT ...> <FONT ...> is the addictive drug of HTML. When you start using <FONT ...> you're likely to think it's the coolest HTML tag ever created. You can set the sizes, faces and colours of the fonts on your web page, all with understandable <FONT ...> tags. Then, when you've loaded your web pages with a billion <FONT ...> tags, you find out the ugly side of <FONT ...>. You have to use it over and over to give your page the appearance you want. It doesn't work in tables unless you put <FONT ...> in every cell. If you want to change the appearance of the fonts in your page you have to change every single <FONT ...> tag. <FONT ...> has taken over your code.
  • 24. * SIZE : size of the font * COLOR : colour of the text * FACE : set the typestyle for text * POINT-SIZE * WEIGHT All the above can be used in <FONT ...>
  • 25. <BLINK> <BLINK> causes the text to blink. <BLINK> was once reviled as the most obnoxious tag in HTML. Now it's mostly forgotten. MSIE does not even support <BLINK> anymore.
  • 26. <EM> Indicates emphasis in a sentence. <FORM ...> * ACTION: URL of the CGI program * METHOD: how to transfer the data to the CGI * NAME: name of this form * ENCTYPE: what type of form this is * TARGET: what frames to put the results in * onSubmit: script to run before the form is submitted * onReset: script to run before the form is reset <FORM ...> indicates the beginning of a form. All other form tags go inside <FORM ...>. In its simplest use, <FORM ...> can be used without any attributes
  • 27. <I> <I> italicizes the text. <IMG ...> <IMG ...> puts an image on the web page. <IMG ...> requires two attributes: SRC and ALT. ALT is always required in <IMG ...> SRC : where to get the picture ALT : text to show if you don't show the picture NAME LONGDESC : URL of a long description of the image WIDTH : how wide is the picture HEIGHT : how tall is the picture ALIGN = LEFT | RIGHT | TOP | TEXTTOP | MIDDLE | ABSMIDDLE | BOTTOM | ABSBOTTOM | BASELINE how text should flow around the picture BORDER : border around the picture HSPACE : horizontal distance between the picture and the text
  • 28. VSPACE : vertical distance between the picture and the text ISMAP : is this a clickable map? USEMAP : name of the map definition LOWSRC : a version of the picture that isn't such a big file NATURALSIZEFLAG : meaningless NOSAVE : meaningless DYNSRC : play a movie file CONTROLS : show the buttons which control the movie LOOP = INFINITE | -1 | # of loops how many times to loop the movie START = FILEOPEN | MOUSEOVER when to start playing the movie onLoad : script to runs after the image is downloaded SUPPRESS = TRUE | FALSE Don't show icons of images that haven't downloaded yet
  • 29. <MARQUEE ...> <MARQUEE ...> creates a scrolling display. <MARQUEE ...> is an MSIE extension, but is now supported by NS 7. <MARQUEE ...> is often regarded as one of the &quot;evil&quot; tags, and that perception alone might be enough reason to not use it. However, used lightly and with taste (and understanding that it will never render everywhere), <MARQUEE ...> isn't such a bad tag. It can work well for announcements.
  • 30. <MENU ...> <MENU ...> indicates the start a series of choices. It is usually rendered like <UL ...>. <BR ...> <BR ...> inserts a single carriage return. Whereas <P ...> indicates the start of a new paragraph, <BR ...> only implies a carriage return within the same paragraph. <BR ...> is usually rendered with a single carriage return.
  • 31. <BUTTON ...> <BUTTON ...> creates a button. Unlike <INPUT ...>, <BUTTON ...> is a container which allows you to put regular HTML contents in the button, including text and pictures. Unfortunately, <BUTTON ...> does not degrade well, and so at this time it's best to stick with <INPUT ...>. * TYPE : what type of button is this * onClick : script to run when the user clicks here * NAME : name of this button element * VALUE : the value sent with the form * DISABLED : disable this button * ACCESSKEY : shortcut key for this button * TABINDEX : tab order All the above commands can be used in <BUTTON ...>
  • 32. <OL ...> <OL ...> creates an ordered list. &quot;Ordered&quot; means that the order of the items in the list is important. To show this, browsers automatically number the list. Note in this example that the HTML does not give any numbers: the numbers are automatically made by the browser (which makes it easy on you the author).
  • 33. <TEXTAREA ...> <TEXTAREA ...> indicates a form field where the user can enter large amounts of text. In most respects, <TEXTAREA ...> works like an <INPUT ...> field. It can have a name, a default value, script events such as onChange, and is sent to a CGI as a name/value pair. One main difference is that <TEXTAREA ...> is a container tag: it has a start tag ().
  • 34. NAME : name of this form field COLS : how many characters wide ROWS : how many rows WRAP = SOFT | HARD | OFF how to wrap the text READONLY : don't let the user change the contents of the field DISABLED : don't let the user do anything with this field TABINDEX : tab order LANGUAGE = &quot;JavaScript&quot; | &quot;JavaScript1.1&quot; | &quot;VBScript&quot; | other language scripting language onChange : Script to run when the user has changed the textarea onKeyPress : script to run when a key is pressed
  • 35. <TT> produces fixed width text. <VAR> indicates a variable from a computer program. <WBR> is for the situation where you have used <NOBR> to prevent line breaks in a section of text, and then you want to say &quot;but you can break HERE if you want&quot;. <WBR> does not force a line break, it merely allows one:
  • 36.