
ElementĪn HTML element is defined by a starting tag. HTML documents consists of a tree of these elements and they specify how HTML documents should be built, and what kind of content should be placed in what part of an HTML document. There are some HTML elements which don't need to be closed, such as, and elements. If the element contains other content, it ends with a closing tag, where the element name is preceded by a forward slash as shown below with few tags − Start Tag This will produce the following result − HTML - ElementsĪn HTML element is defined by a starting tag.
#Quick html css javascript tutorial movie
ExampleĪn example of this technique appears in the movie "12 Angry Men." While displaying any heading, browser adds one line before and one line after that heading. HTML also has six levels of headings, which use the elements, ,, ,, and. You can use different sizes for your headings.

HTML - Basic Tags Heading TagsĪny document starts with a heading. We will see more details on this while discussing tag along with other HTML tags. There are many other declaration types which can be used in HTML document depending on what version of HTML is being used. Current version of HTML is 5 and it makes use of the following declaration − The declaration tag is used by the web browser to understand the version of the HTML used in the document. We will study all the header and body tags in subsequent chapters, but for now let's see what is document declaration tag. HTML Document StructureĪ typical HTML document will have the following structure − World Wide Web Consortium (W3C) recommends to use lowercase tags starting from HTML 4. 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. To learn HTML, you will need to study various tags and understand how they behave, while formatting a textual document. This tag represents the document's body which keeps other HTML tags like, , etc. The tag is used inside the tag to mention the document title. This tag represents the document's header which can keep other HTML tags like, etc. and document body which is represented by. This tag encloses the complete HTML document and mainly comprises of document header which is represented by. This tag defines the document type and HTML version.

For example, has its closing tag and tag has its closing tag tag etc.Ībove example of HTML document uses the following tags − Sr.No Except few tags, most of the tags have their corresponding closing tags. These tags are enclosed within angle braces.

As told earlier, HTML is a markup language and makes use of various tags to format the content.
