Assalam-u-Alikum Guys,
First of all need to understand the basic Structure of HTML.
Structure should be like this :
----------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
</head>
<body>
Content of the document......
</body>
</html>
----------------------------------------------------------------------------------------------------------------------
that is the BASIC structure of HTML.
Now lets Start :
First of you need to OPEN text editor. No need to write just GO TO File>Save.
Now write name of file with Extension .html (Named the file as you want)
and save the file.
For Example : sample.html
Your File contains :
----------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>1st class</title>
</head>
<body>
<h1>That my 1st Class of HTML</h1>
<p>I am from Attock, Pakistan......and that is my first paragraph</p>
</body>
</html>
----------------------------------------------------------------------------------------------------------------------
afterward save the file (CRTL + S).
OPENING the HTML file :
Tutor : Asad Saleem
First of all need to understand the basic Structure of HTML.
Structure should be like this :
----------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
</head>
<body>
Content of the document......
</body>
</html>
----------------------------------------------------------------------------------------------------------------------
that is the BASIC structure of HTML.
- Every document contain <!doctype html> tag that is Document type Declaration.
- You see that All tags are starts must be ended. Example : <html> ....content.... </html>
- Some tags has no need to ending. Example : <br/> - <!DOCTYPE html> - <input>
- All contents that web page contain written between the <body> tag.
First of you need to OPEN text editor. No need to write just GO TO File>Save.
Now write name of file with Extension .html (Named the file as you want)
and save the file.
For Example : sample.html
Your File contains :
----------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>1st class</title>
</head>
<body>
<h1>That my 1st Class of HTML</h1>
<p>I am from Attock, Pakistan......and that is my first paragraph</p>
</body>
</html>
----------------------------------------------------------------------------------------------------------------------
afterward save the file (CRTL + S).
good sir
ReplyDeleteThanks Boss.......
Deletevery helpful for me
ReplyDeleteThanxxxxx Bro......
Delete