HTML - Tutorialspoint

Transcription

HTMLAbout the TutorialHTML stands for Hyper Text Markup Language, which is the most widely used language onWeb to develop web pages.HTML was created by Berners-Lee in late 1991 but "HTML 2.0" was the first standard HTMLspecification which was published in 1995. HTML 4.01 was a major version of HTML and itwas published in late 1999. Though HTML 4.01 version is widely used but currently we arehaving HTML-5 version which is an extension to HTML 4.01, and this version was publishedin 2012.AudienceThis tutorial is designed for the aspiring Web Designers and Developers with a need tounderstand the HTML in enough detail along with its simple overview, and practicalexamples. This tutorial will give you enough ingredients to start with HTML from whereyou can take yourself at higher level of expertise.PrerequisitesBefore proceeding with this tutorial you should have a basic working knowledge withWindows or Linux operating system, additionally you must be familiar with: Experience with any text editor like notepad, notepad , or Edit plus etc.How to create directories and files on your computer.How to navigate through different directories.How to type content in a file and save them on a computer.Understanding about images in different formats like JPEG, PNG format.Copyright & Disclaimer Copyright 2015 by Tutorials Point (I) Pvt. Ltd.All the content and graphics published in this e-book are the property of Tutorials Point (I)Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republishany contents or a part of contents of this e-book in any manner without written consentof the publisher.We strive to update the contents of our website and tutorials as timely and as precisely aspossible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt.Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of ourwebsite or its contents including this tutorial. If you discover any errors on our website orin this tutorial, please notify us at contact@tutorialspoint.comi

HTMLTable of ContentsAbout the Tutorial . iAudience . iPrerequisites . iCopyright & Disclaimer. iTable of Contents . ii1.HTML – OVERVIEW. 1Basic HTML Document . 1HTML Tags . 2HTML Document Structure . 3The !DOCTYPE Declaration . 32.HTML – BASIC TAGS. 4Heading Tags . 4Paragraph Tag . 5Line Break Tag . 5Centering Content . 6Horizontal Lines . 6Preserve Formatting . 7Nonbreaking Spaces . 83.HTML – ELEMENTS . 9HTML Tag vs. Element . 9Nested HTML Elements . 94.HTML – ATTRIBUTES . 11Core Attributes. 12Internationalization Attributes . 13The xml:lang Attribute . 15ii

HTML5.HTML – FORMATTING . 17Bold Text . 17Italic Text . 17Underlined Text . 18Strike Text . 18Monospaced Font . 19Superscript Text . 19Subscript Text . 20Inserted Text . 20Deleted Text . 21Larger Text . 21Smaller Text . 22Grouping Content. 226.HTML – PHRASE TAGS . 24Emphasized Text . 24Marked Text . 24Strong Text . 25Text Abbreviation . 25Acronym Element . 26Text Direction. 26Special Terms . 27Quoting Text . 27Short Quotations . 28Text Citations . 28Computer Code . 29Keyboard Text . 29Programming Variables . 30iii

HTMLProgram Output . 30Address Text . 317.HTML – META TAGS . 32Adding Meta Tags to Your Documents . 32Specifying Keywords . 32Document Description . 33Document Revision Date . 33Document Refreshing . 34Page Redirection . 35Setting Cookies. 35Setting Author Name . 36Specify Character Set . 368.HTML – COMMENTS. 38Valid vs Invalid Comments . 38Multiline Comments. 39Conditional Comments . 40Using Comment Tag . 40Commenting Script Code . 41Commenting Style Sheets . 419.HTML – IMAGES . 43Insert Image . 43Set Image Location . 44Set Image Width/Height . 44Set Image Border. 45Set Image Alignment . 46Free Web Graphics . 46iv

HTML10. HTML – TABLES . 47Table Heading . 48Cellpadding and Cellspacing Attributes .

HTML i About the Tutorial HTML stands for Hyper Text Markup Language, which is the most widely used language on Web to develop web pages. HTML was created by Berners-Lee in late 1991 but "HTML 2.0" was the first standard HTML