Showing posts with label html tag. Show all posts
Showing posts with label html tag. Show all posts

Monday, July 4, 2022

HTML Tag

 HTML Tag 



Element  HTML





Html basic tag:-

 <!DOCTYPE html>

The first line of code <!DOCTYPE html> is called a doctype declaration and tells the browser which version of HTML the page is written in. In this case, we're using the doctype that corresponds to HTML5, the most up-to-date version of the HTML language. There are a number of different doctype declarations that correspond to various versions of HTML.

The DOCTYPE declaration is an instruction to the web browser about what version of HTML the page is written in. This ensures that the web page is parsed the same way by different web browser.

<HTML>:-

<Html>.   </html>

The <html> tag tells the browser that this is an HTML document. The <html> tag represents the root of an HTML document. The <html> tag is the container for all other HTML elements (except for the <!DOCTYPE> tag). The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser.HTML is a computer language that makes up most web pages and online applications. A hypertext is a text that is used to reference other pieces of text, while a markup language is a series of markings that tells web servers the style and structure of a document.
An HTML element is a type of HTML document component, one of several types of HTML nodes. HTML document is composed of a tree of simple HTML nodes, such as text nodes, and HTML elements, which add semantics and formatting to parts of document. Each element can have HTML attributes specified.

HTML information


<HEAD>:-

<Head>. </Head>

The<head> tag is another tag used in the HTML document used at the initial and primary level to put a heading to be displayed in the browser window. We put the information between the opening and closing of this tag which gives the information about the page.The <title> element is required and it defines the title of the document. The <style> element is used to define style information for a single document.

The <head> element is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag. Metadata is data about the HTML document. Metadata is not displayed. Metadata typically define the document title, character set, styles, scripts, and other meta information. The H1 , H2 , H3 , H4 , H5 , H6 elements. A heading element briefly describes the topic of the section it introduces.

Heading extra information


<TITLE>:-

<Title> </title>

Title tag is a primary lever or entry level html. tag which  is use to assign information as t the title bar to be displayed at the title bar of a web browser. The title tag defines the title of the document. The title must be text-only and is shown in the browser title. bar or in the page's tab. 

The contents of a page title is very important for search engine optimization (SEO)! The page title is used by search engine algorithms to decide the order when listing pages in search results.

Title extra information


<BODY>:-

<Body>. </Body>

The text between <body>......</body> tag describes the visible page content. This is another HTML tag which is considered the main part of the HTML document which contains the entire information related to a web page tried to be shown in the web page by web designer. As you ended every tag you used in the HTML document earlier above, in the same way you will be putting the closing tag .

The <body> tag defines the document's body. The <body> element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.



What is an Element:-

An element is a part of a webpage. In XML and HTML an element may contain a data item or.a text and images  A type element includes an opening tag with some attributes enclosed text content and closing tag. 


<p class="nice">Hello world!</p>


Opening tag  :-   <p class="nice">
Closing tag.  :-   </p>
Enclosed text content :-  Hello world
An attribute and its value :-  
< p class=" nice"


Html format


Element and tags are not the same things. Tags being or end an element model for displaying the Page in the browser.An HTML element is a component of an HTML document that tells a web browser how to structure and interpret a part of the HTML document. HTML elements can contain formatting instructions, semantic meaning, and content. 

HTML tag categorised 

1 container tag:- 

Container Tag: It have the start tag and the end                                                                                        tag both in a pair. It consist of opening tag+content+Closing tag.

<html> opening tag

</html> Closing tag

The forward slash(/) on the closing tag. This tells the browser that the tag has ended. 


2. Empty Tag:-

It have the start tag only. It consist of no content so it is called empty tag <br> is an empty element without a closing tag (the <br> tag defines a line break).

html user the empty tag that browser to display the content. tags are nothing but some instruction 

that are enclosed in angle braces(< >).tag 


Extra information

Visit link 

👇👌👍👇👇👌


responsive web designin