top of page
Search
  • Writer's pictureHarshit Sharma

HTML BASICS

HTML it stands for Hyper text markup language It is used as a simple text formatting language used to create hypertext documents for the www. The hypertext documents can be viewed with the help of a web browser.

Hypertext is a text which clicked takes the reader to a different location in same document or different document located on a server.

A markup language encloses a piece of text between a pair of elements called tags to apply appropriate encoding on it..

The html also allows us to create hypertext links known as hyperlinks.

HTML commands are not case sensitive they can be in lower cases or uppercase

Spaces and tabs can be used anywhere in the document as it does not effect appearance

HTML commands are not case sensitive they can be in lower cases or uppercase

Spaces and tabs can be used anywhere in the document as it does not effect appearance

It is saved with .htm or .html and the documnent can be written in any text editor.

TAGS OR ELEMENTS

A tag comprises a left angular bracket i.e less than symbol followed by name and closed by right angular bracket> that is greater then symbol. For example as html document <HTML>

Start tag and end tag and end tag contains a (/slash)

Basic structure:

<html></html>

<head></head>

<body></body>

HTML Elements:

HTML element: It is a container element and identifies the document as a html document and it contains a head and body elements which further contains a lot of elements within it.

Synatx:

<html>

</html>

Head element: it is also a container tag element which defines the Html header and does not affect apperance.It contains information about the document.It does not display any content in browser byt the sub element title tag displays the desired text given into it as sub element.

<html>

<head>

<title>My first page</title>

</head>

</html>

Body elements: This is used to give the body of the document. So whatever we write in body is displayed in the browser.It is a also a container element.

<html>

<head>

<title>web page</title>

</head>

<body>

Learn HTML from basics by CODEIN

</body>

</html>

The parameters and attributes:

The parameters are the element given between the start and end tag .

<html>

<head>

<title>web page</title>

</head>

<body>

Learn HTML from basics by CODEIN

</body>

</html>

In the case the parameter of html is head body tag

The attributes are the element along with the tag name in the angular braces of the start tag.thes are the properties which a tag can perform with the desired form of attributes given.

Attribute example:

<HTML>

<body Text=”red”>

It is changing colour of text

</body>

</html>

2 views0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
bottom of page