Friday, 18 March 2016

HTML Basic Tags

HTML Basic Examples


  • All HTML documents must start with a type declaration: <!DOCTYPE html>.
  • The HTML document itself begins with <html> and ends with </html>.
  • The visible part of the HTML document is between <body> and </body>.
<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>

Headings


<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>

Paragraphs


<p>This is a paragraph.</p>
<p>This is another paragraph.</p>


Links


<a href="http://www.w3schools.com">This is a link</a>


Images


<img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">

HTML elements are written with a start tag, with an end tag, with the content in between:

Elements


<tagname>content</tagname>
The HTML element is everything from the start tag to the end tag:
<p>My first HTML paragraph.</p>

0 comments:

Post a Comment

 
© 2013 Nsd Stack | Designed by Making Different | Provided by All Tech Buzz | Powered by Blogger