html

html – Anchor

Anchor tag:

<a href = “http://name.com&#8221; > site or link name </a>

Example  1:
<!doctype html>

<html>

<head>

<meta charset = “utf-8” />

<title> Site title </title>

</head>

<body>

<a href = “http://name.com&#8221; > Name </a>

</body>

</html>

 

Example 2:

<!doctype html>

<html>

<head>

<meta charset = “utf-8” />

<title> Site title </title>

</head>

<body>

<p> Learn more <a href = “http://name.com&#8221; > about me </a> </p>

</body>

</html>

html 001

Open Notepad.

<!doctype html>

<html>

<head>

<title>My First Webpage</title>

<meta charset=”utf-8″ />

</head>

<body>

Hello World !

 </body>

</html>

 Explanation:

  1. At first, specify the doctype. <!doctype html>
  2. Then create html tag. <html> = <name_of_the_tag>. “/” defines the end of the tag.
  3. Create head between html tags. <head>   </head>
  4. Give a title between head tags. <title> My First Webpage </title>
  5. Specify character type inside meta tag. Character type (charset) followed by equal sign (=), then value (utf-8). <meta charset=”utf-8” />. value may vary from country to country.
  6. Closing head tag.
  7. Then create body. <body>  </body>

Watch the tags below:

  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>My First Webpage</title>
  5. <meta charset=”utf-8″ />  as like as <meta value = “name” />. <meta charset = “utf-8” /> and <meta charset = “utf-8 > both are same.
  6. </head>
  7. <body> Hello World !

</body>

</html>

Then save file by name.html.  “.html” specifies the HTML file.

Skull

<!DOCTYPE html>
<html>

<head>

<title> Title goes here when a new opened </title>

<meta charset=”utf-8″ />  Tell the browser which character to use.

</head>

<body>

<h1>My First Heading</h1>  h1 means font size should be as big as first headline.

<p>My first paragraph.</p>  Main content goes here.

</body>

</html>