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 ...

Java JRE and JVM | Difference between JVM and JRE

 Java JRE and JVM | Difference between JVM and JRE In this topic, we will give you complete information of JRE and JVM. JVM(Java Virtual Machine) JVM (Java Virtual Machine) is an abstract machine that enables your computer to run Java programs. and Which provides a runtime environment. When you compile a java program, it is converted into byte code. This byte code cannot run on any machine or operating system. It only runs on JVM (Java Virtual Machine). The Java Compiler that Byte Code generates is for JVM because of the JVM being in the entire system, this program runs in every computer, making the Virtual Machine Code running in the Operating System. JRE(Java Runtime Environment) The full name of JRE is Java runtime environment. JRE is also called java runtime. JRE is a part of JDK (java development kit). JRE is a group of software tools to develop Java applications. The JRE class contains groups of libraries and other files, which JVM uses in runtime and it also contains JV...