What is HTML?
HTML stands for Hyper Text Mark-up Langugage, it is the main building block of every web page.
HTML tells your browser how to structure the website you wish to view, without HTML things would get a little messy.
The structure of a basic HTML page would be:
Most Common Tags
Do's and Don't's with HTML
Do use lowercase text when using tags, so < strong> not < STRONG>, uppercase tags are no longer standards compliant and could cause unexpected results
Do not incorrectly nest HTML tags (Example: < div>< strong>TEXT< /div>< /strong>) this is incorrect and could cause unexpected results.
Do not place text outside of a tag, with text it is advisable to always use the < p> < /p> tags.
Do not forget to close a tag, so if you open a < div> tag then close the < /div> tag, if you do not then you could end up with unexpected results.
Thank you for reading and I hope this helps someone to learn to start using HTML.
HTML stands for Hyper Text Mark-up Langugage, it is the main building block of every web page.
HTML tells your browser how to structure the website you wish to view, without HTML things would get a little messy.
The structure of a basic HTML page would be:
- Code:
<!DOCTYPE html>
<html>
<head>
<title>PAGE TITLE</title>
</head>
<body>
<p>Hello World</p>
</body>
</html>
- Code:
<!DOCTYPE html>
- Code:
<html> </html>
- Code:
<head> </head>
- Code:
<body> </body>
Most Common Tags
- Code:
<p> </p>
tags.
- Code:
<div> </div>
- Code:
<span> </span>
- Code:
<img src='some-image.png' />
- Code:
<br />
- Code:
<h1> </h1> <h2> </h2> <h3> </h3> <h4> </h4> <h5> </h5> <h6> </h6>
- Code:
<strong> </strong>
Do's and Don't's with HTML
Do use lowercase text when using tags, so < strong> not < STRONG>, uppercase tags are no longer standards compliant and could cause unexpected results
Do not incorrectly nest HTML tags (Example: < div>< strong>TEXT< /div>< /strong>) this is incorrect and could cause unexpected results.
Do not place text outside of a tag, with text it is advisable to always use the < p> < /p> tags.
Do not forget to close a tag, so if you open a < div> tag then close the < /div> tag, if you do not then you could end up with unexpected results.
Thank you for reading and I hope this helps someone to learn to start using HTML.