Logo of The ProTec Professional Training Institute
The Protec is registered with STEVTA and Affiliated with TTB Sindh

Most Used Tags

Part 2 - HTML (Hyper Text Markup Language) Tutorials


HTML (Hyper Text Markup Language)
This free tutorial includes HTML (Hyper Text Markup Language) basic and most used tags, that are used to create a basic structure of website, HTML tags discussed in this online tutorial are html, head, title, body, br, headings h1, center, Italic i, Bold b, Sub script sub, Super script sup tags, these are tags to learn for the newbies, tags includes opening and closing tags that combined to make elements (container tags), while those tags that do not have closing tags are called standalone tags.

Tutorial Details


HTML stands for Hyper Text Markup Language
HTML is the Web Language which we use to create websites. for a newbie it's important to understand its structure and tags, for this purpose we are posting important HTML Tags with their usage.
This free tutorial includes HTML (Hyper Text Markup Language) basic and most used tags, that are used to create a basic structure of website, HTML tags discussed in this online tutorial are html, head, title, body, br, headings h1, center, Italic i, Bold b, Sub script sub, Super script sup tags, these are tags to learn for the newbies, tags includes opening and closing tags that combined to make elements (container tags), while those tags that do not have closing tags are called standalone tags.
<html></html> tag, this tag is used to contain all other html tags, you can use any of html without <html></html> but for proper website it's important to write a clean code which is easily readable, so you must write all your html tags within <html></html>
<head></head> tag, this tag is used to contain the tags which have the information about your webpage, such as title of you website, meta tags, external javascripts or jquery files, external CSS files.
<title></title> tag, is used to add the title of HTML document, it is important to add a Title in your website, this title is shown in header of your browser's tab with favicon.
<body></body> tag, in this tag we write what we want to show on our page, such as headers, main page area, sidebar, and footer, everything we want to show in our website should be written inside <body> tag.

<br/> Tag

break line tag is used to add new line in HTML document, as HTML by nature parse all the spaces and new lines as a one space, their for to add new line in document we use br tag.

Code

this is my text with new line <br> starting from here

Output

this is my text with new line
starting from here

<b></b> Tag

Bold tag is used to bold the text in HTML document, bold tag is the container tag that you must have to close to end the effect of it, other wise it will Bold all the texts written in your document.

Code

<b>this text is written in bold text</b>

Output

this text is written in bold text

<i></i> Tag

Italic tag is used to italic the text in website, if you have a text and you want to make it italic then you must enclose the text in Italic tag, it is container tag.

Code

<i>this text is written in italic tag</i>

Output

this text is written in italic tag

<center></center> Tag

center tag, if you want to move text in center, then you will have to put that text in center tag of HTML, center is also the container tag.

Code

<center>this text is written in center tag</center>

Output

this text is written in italic tag

<sub></sub> Tag

Sub Script tag, is used to write a subscript in your document, quiet useful for science related websites and blogs

Code

example of subscript tag H<sub>2</sub>O

Output

example of subscript tag H2O

<sup></sup> Tag

Super Script tag, is used to write Super Script text in HTML document or filesample html file would look like this.

Code

example of Super Script tag (a+b)<sup>2</sup>

Output

example of Super Script tag (a+b)2Sample Structure of HTML Program is giver below<html><head><title> Your Website's Title</title></head><body></body><html>

ALL ONLINE COURSES


Leave a Message
0