HTML

You can create your own website with the help of HTML

HTML is the standard markup language for creating Web Pages and Web Applications. with CSS and JavaScript

With a basic knowledge of HTML (as well as a little CSS), you can build a truly unique website that you can edit and update yourself.

Learning HTML is also considered the first step for progressing into more complex and in-demand programming languages. Fancy earning a six-figure salary as a web developer for a Silicon Valley startup? Or maybe you’ve got plans to develop the next Facebook or Twitter? If you’re interested in learning how to do any web related programming, HTML is the place to start.

HTML, CSS and JavaScript are the three main part that are used to create most webpages. Each part has a different function and each has different rules, but they all work together to give webpages content, design and functionality.

What Does HTML Code Look Like?

Example
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html>

The Basics Of HTML Code

There are three components that form the basic building blocks of HTML code: tags, elements and attributes. Once you’ve learned the rules for how each of these components function, you should have no trouble writing and editing HTML.

<p style="color:red">I am a programer</p> Explanation of above line -------------------------------- Tags : <p> </p> -------------------------------- Elements : I am a programer -------------------------------- Attributes : style --------------------------------

HTML Tags

<tagname> Content goes here... </tagname> Example: <html> ---- </html> <head> ---- </head> <title> ---- </title> <body> ---- </body> ---- ---- etc.

HTML Elements

An HTML element usually consists of a start tag and end tag, with the content inserted in between

The HTML element is everything from the start tag to the end tag

<tagname> Element is everything start tag to the end tag... </tagname> Example: <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html> etc.

HTML Attributes

Attributes provide additional information about HTML elements.

  • All HTML elements can have attributes
  • Attributes provide additional information about an element
  • Attributes are always specified in the start tag
  • Attributes usually come in name/value pairs like: name="value"
<img src="img1.jpg" width="500" height="600"> <a href="https://www.pdsourcecode.com">This is a link</a> <p style="color:red">I am a programer</p> ---- ---- etc.


Leave a Comment:

Comment as a guest:

Commenter Name
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin.
Dec 4, 2017 at 3:12 pm
Reply
Commenter Name
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin.
Dec 4, 2017 at 3:12 pm
Reply

Join Us!