html_tutorial pdf

HTML HTML Tags As told

HTML HTML Tags As told earlier, HTML is a markup language and makes use of various tags to format the content. These tags are enclosed within angle braces . Except few tags, most of the tags have their corresponding closing tags. For example, has its closing tag and tag has its closing tag tag etc. Above example of HTML document uses the following tags: Tag Description This tag defines the document type and HTML version. This tag encloses the complete HTML document and mainly comprises of document header which is represented by ... and document body which is represented by ... tags. This tag represents the document's header which can keep other HTML tags like , etc. The tag is used inside the tag to mention the document title. This tag represents the document's body which keeps other HTML tags like , , etc. This tag represents the heading. This tag represents a paragraph. 2

HTML To learn HTML, you will need to study various tags and understand how they behave, while formatting a textual document. Learning HTML is simple as users have to learn the usage of different tags in order to format the text or images to make a beautiful webpage. World Wide Web Consortium (W3C) recommends to use lowercase tags starting from HTML 4. HTML Document Structure A typical HTML document will have the following structure: Document declaration tag Document header related tags Document body related tags We will study all the header and body tags in subsequent chapters, but for now let's see what is document declaration tag. The Declaration The declaration tag is used by the web browser to understand the version of the HTML used in the document. Current version of HTML is 5 and it makes use of the following declaration: There are many other declaration types which can be used in HTML document depending on what version of HTML is being used. We will see more details on this while discussing tag along with other HTML tags. 3