Skip to main content

Basic HTML Document Example

 Basic HTML Document Example

The following is an example of an HTML document -




HTML is a markup language and uses various tags to format the content. These tag angles are enclosed within braces <tag name>. Except for a few tags, most tags have their respective completion tags. For example, <html> has its own closing tag </html> and <body> tag has its own closing tag </body> tag etc.

1:- Doctype Element

The full name of the DOCTYPE element is the document type definition. This tag provides information about these two things: Web document type and HTML version.

The document type indicates to the computer that it is an HTML document. And from HTML version we get information about HTML version which version of HTML is used in this HTML document.

The HTML version and the document type declaration are used by the browser to correctly and fully understand the HTML page. So Doctype Declaration should give time to the Wee HTML Page.

2:- html Element

Opening <html> Tag is written immediately after Doctype Declaration. The HTML Element is the Root Element of the HTML Page. Other HTML tags are written between the Opening HTML Tag <html> and the Closing HTML Tag </html>.

3:- head Element

The Head Part of the HTML Document is defined by the Head Element. This Element has an important role in HTML Page.

The Head Element is used to give information about HTML Document ie Webpage to Browsers and Search Engines.

A Title element is written in the Head Element of HTML. Title of HTML document is written by Title Tag. The Document Title appears in the Browser Window and SERPs i.e. Search Engine Result Pages.
Apart from the title, additional information about a webpage is written by Meta Tag. This information includes Page Description, Keywords, Page Authorship Information, Author Name, Character Encoding, Browser Instruction etc. This information is collectively called Meta Data. Meta Data is not available to users. Because this information is not part of the actual content.

Some External Resources like JavaScript, External Style Sheets are also added to the Head Element itself. Link Tag is used to add External Page Resources to HTML Document.

4:-body Element

The part you see in this Lesson. They are all written within the Body Element. That is, the part of a webpage we see in the Browser Window. Everything is written in Body Tag.

Body Tag is the Main Container of an HTML Document. Page Headings, Paragraphs, Sub-headings are written within the Body Element. Graphics, Multimedia Files, or any other information you want to show the user. It is written inside this element.

Comments

Popular posts from this blog

Features of Android

 Features of Android let's see the features of android. The important features of android are given below: Beautiful UI :- Android operating system provides a UI which is associated with the activity and presented to user. Connectivity  :- It has various connections such as Bluetooth, Wi-Fi, GSM/EDGE, CDMA etc. Storage :- A light relational database – SQLite is used for the storage purpose. Media support  :- H.263, H.264, MPEG-4 SP, AMR, AMR-WB, AAC, HE-AAC, AAC 5.1, MP3, MIDI, Ogg Vorbis, WAV, JPEG, PNG, GIF, and BMP. Messaging  :- It supports messaging services -SMS , MMS. GCM  :- Google Cloud Messaging (GCM) is a service that lets developers send short message data to their users on Android devices, without needing a proprietary sync solution. Web Browser  :- It is based on the open-source WebKit layout engine which is coupled with Chrome’s V8 JavaScript engine that supports HTML5 and CSS3. Resizable widgets  :- Widgets are resizable, so user...

Features of Java | Why To Learn Java Programming

Features of Java | object-oriented features of java The main reason behind the creation of Java was to bring portability and security features to the computer language. Apart from these two salient features, there were several other features which played an important role in shaping the final form of this excellent language. The most important features of Java language are given below: 1:- Object Oriented:- In Java , Everything is an Object. Clear Structure for the programs Faster and easier to execute. Java can be extended easily because it is based on the object model. 2:- Platform Independent:- Java is a platform independent language, which means that compiled code Java can run in all operating systems. 3:- Easy to learn:-   If you understand the basics of the OOP concept, Java programming is quite easy to learn. 4:- Secure:- Java is more secure in compression of all programming languages, and with Java's secure feature, it is capable of developing virus-free, tamper-free ...

Introduction to HTML

Introduction to HTML HTML was first created by Tim Berners-Lee, Robert Cailliau, and others starting in 1989. It stands for Hyper Text Markup Language. HTML stands for HyperText Markup Language. It is used to design web pages using a markup language. HTML is the combination of Hypertext and Markup language. Hypertext defines the link between the web pages. A markup language is used to define the text document within tag which defines the structure of web pages. HTML stands for HyperText Markup Language. HTML is used to create web pages and web applications. HTML describes the structure of a Web page. HTML is widely used language on the web. HTML consists of a series of elements. HTML elements tell the browser how to display the content. We can create a static website by HTML only. Technically, HTML is a Markup language rather than a programming language. What You Can Do with HTML...? There are lot more things you can do with HTML. You can publish documents online with text, images, lis...