In this article today I tell you about the very basic Html tags with example and Html elements when you need to start web designing in your life, or when you need to learn HTML.
The opening HTML tag can contain multiple attributes, but it cannot contain other elements or tags, while the closing tag cannot contain anything but itself not all elements have closing tags.
Attributes appear within tags, and they can only contain the value of the attribute.
They can have multiple values separated by space.
The <html> tag surrounds the entire HTML document.
The <head> tag delimits the heading of the HTML document.
The document’s title, Meta information, Document scripts are all contained in the <head> section.
Metadata is data (information) about data.The <meta> tag provides metadata about the HTML document.
Metadata will not be displayed on the page but will be machine parables. Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.
The metadata can be used by browsers (how to display content or reload the page), search engines (keywords), or other web services. further, you can know about Search Engine Optimization
This is the main body of an HTML document where all of the content is placed.
This is the content that people will see, hear, or otherwise experience when they visit the web page.
What is HTML?
Html is the Hypertext Markup language it is used for making website Structure. it is the main language that uses in every website. it is the basic key to start make weblogs.
What are HTML Elements?
An element is a construct (made by combination) consisting (usually) of:- An opening Html tag,
- some optional attributes and their respective values,
- some content,
- a closing tag.
HTML Elements can contain any number of further elements, which are in turn made up of
- Html Tags
- Html Attributes
- Values
- Contents.
The opening HTML tag can contain multiple attributes, but it cannot contain other elements or tags, while the closing tag cannot contain anything but itself not all elements have closing tags.
The above-said HTML elements are called self-closing elements, empty elements, or replaced elements whereas the elements with the ending and closing tags are called as paired, container tags.
basic HTML tags with example
<br>, and <hr>.
A self-closing element requires a space and a trailing slash,
such as
<br /> or <hr />.
HTML Attributes
Attributes appear within tags, and they can only contain the value of the attribute.
They can have multiple values separated by space.
Basic HTML Page Structure
<!DOCTYPE HTML>
<html>
<head>
<meta name="author" content=“basic Example">
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
HTML Tags
The <html> tag surrounds the entire HTML document.
This tag tells the client browser where the document begins and ends.
Head
Head
The <head> tag delimits the heading of the HTML document.
or
The <head> element creates a header section for the document.
The heading section of the document contains certain heading information for the document that is not the actual content.
The document’s title, Meta information, Document scripts are all contained in the <head> section.
Metadata is data (information) about data.The <meta> tag provides metadata about the HTML document.
Metadata will not be displayed on the page but will be machine parables. Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.
The metadata can be used by browsers (how to display content or reload the page), search engines (keywords), or other web services. further, you can know about Search Engine Optimization
Example <head> <meta name="description" content="Free Web tutorials"> <meta name="keywords" content="HTML,CSS,XML,JavaScript"> <meta name="author" content="basic Example"> </head>
HTML Body
This is the main body of an HTML document where all of the content is placed.
This is the content that people will see, hear, or otherwise experience when they visit the web page.
HTML Title
You should specify a title for every page that you write inside the <title> element.
This element is a child of the <head> element). It is used in several ways: It displays at the very top of a browser window.
It is used as the default name for a bookmark in browsers. Therefore it is important to use a title that really describes the content of your site.
The <title> element should contain only the text for the title and it may not contain any other elements.
COMMENTS