HTML element is all things from the Start tag to the End tag.
HTML elements are the fundamentals of HTML. HTML documents are simply a text file.
The Start tag is called Opening tag. The End tag is called Closing tag.
|Start tag||Content||End tag|
|<p>||This is aonestudy paragraph||</p>|
|<a href="element.html">||This is a link||</a>|
| <br />|
Syntax of HTML Element
1. HTML Element start with Opening tag/start tag.
2. HTML Element start with Closing tag/End tag.
3. Content written between Opening tag and closing tag.
4. Some HTML element has Empty content.
<p>This is my Step in aonestudy tutorial.</p>
The above example contains 3 HTML elements.
The <html> element:-
<html> element defines the whole HTML document.
The element has start with opening tag <html> and closing tag </html>.
The <body> element:-
<body> element defines the body of the HTML document.
The element has start with opening tag <body> and closing tag </body>.
The <p> element:-
<p> element defines the paragraph in the HTML document.
The element has start with opening tag <p> and closing tag </p>.
Don’t Forgot the End Tag.
Some HTML element display right if you forgot the end tag:
<hr> This is for Horizontal Line.
<p> This is for Paragraph.
The Example above works in the most browsers, because the end tag is optional.
Empty HTML Elements
The HTML elements with no content is called empty elements.
<hr>is an empty element without ending tag (the <hr> tag shows a horizontal row).
<br> is an empty element without ending tag(the <br> tag shows a break line).
HTML tags are not case sensitive: <BR> means the same as < br>.
UPPERCASE or lowercase?
You should always use code in lowercase.
This page will learn you how to Link:
Define colors for All Links on the page.
<body link="#fofofo" vlink="#505050" alink="#hh0000">
Define colors for Individual Links on the page.
- Link: The page visitor
- Vlink: Visited Link
- Alink: Active Link(the color of the link when mouse over on the link)
Click <a href="http://www.aonestudy.com"> <font color="Blue">here </font> </a>to go to aonestudy.
Click <a href="http://www.aonestudy.com" style="Color:green;">here </a> to go to aonestudy.
You can use above Individual Link example on your practice just copy and paste in your web page.