Hello, Everyone myself Ashutosh . Today you learn about HTML Elements ??
HTML documents are text files made up of HTML elements. HTML elements are defined using HTML tags.
HTML Tags
HTML documents are text files made up of HTML elements. HTML elements are defined using HTML tags.
HTML Tags
- HTML tags are used to mark-up HTML elements.
- HTML tags are surrounded by the Two characters <and>
- The surrounding characters are called angle brackets
- HTML tags normally come in pairs like <b> and </b>
- The first tag in a pair is the start tag, the second tag is the end tag
- The text between the start and ends tags is the elements content
- HTML tags are not case sensitive, <b> means the same as <B>
<html>
<head>
<title> Title of page</title>
</head>
<body>
This is my first homepage, <h> This text is bold</h>
</body>
<html>
This is an HTML elements:
<b> This text is bold </b>
The HTML elements starts with a start tag: <b>
The contents of the HTML elements is, This text is bold. The HTML elements ends with an end tags:</b>. The purpose of the <b> tag is to define an HTML elements that should be displayed as bold.
This is also an HTML element:
<body>
This is my first homepage. <b> This text is bold</b>
</body>
This HTML elements starts with the start tag <body>, and ends with the end tag </body>. The purpose of the <body> tag is to define the HTML elements that consists the body of the HTML documents.
Why do we use Lowercase Tags?
HTML tags are not case sensitive : <B> means the same as <b>. If you surf the Web., you will notice that plenty of Websites use uppercase HTML tags in their source code . We always use lowercase tags . Why?
If you want to follow the latest Web standards, you should always use lowercase tags . The World Wide Web Consortium lowercase tags in their HTML 4 recommendation ,and XHTML (the next generation HTML) demans lowercase tags.
Basic HTML Tags
The most important tags in HTML are tags that define headings, paragraphs and line breaks.
Few Basic HTML Tags
Tag Description
<html> Defines an HTML document
<body> Defines the document's body
<h1> to <h6> Defines header 1 to header 6
<p> Defines a paragraph
<br> Defines a single line break
<hr> Defines a horizontal rule
<!--- > Defines a comment
Written with Heart 💙
Thanks.
Subscribe- www.ashutosh000.blogspot.com
Created by Ashutosh