HTML Basic

« Previous Chapter Next Chapter »

HTML Headings

HTML headings are defined with the <h1> to <h6> tags.

<!DOCTYPE html>
<html lang="en-US">
<head>
<title>An Example for testing - QcTutorials </title>
</head>
<body>
<h1>A heading</h1>
<h2>A heading</h2>
<h3>A heading</h3>
</body>
</html>
Code it Online »


HTML Paragraphs

HTML paragraphs are defined with the <p> tag.

<!DOCTYPE html>
<html lang="en-US">
<head>
<title>An Example for testing - QcTutorials </title>
</head>
<body>
<p>A paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
Code it Online »


HTML Links

HTML links are defined with the <a> tag.

<!DOCTYPE html>
<html lang="en-US">
<head>
<title>An Example for testing - QcTutorials </title>
</head>
<body>
<a href="http://www.qctutorials.com">A link</a>
</body>
</html>
Code it Online »

Note: The link address is specified in the href attribute.

HTML Images

HTML images are defined with the <img> tag.

<!DOCTYPE html>
<html lang="en-US">
<head>
<title>An Example for testing - QcTutorials </title>
</head>
<body>
<img src="../../images/QcTutorials.png" width="110" height="130" />
</body>
</html>
Code it Online »

Note: The name and the size of the image are provided as attributes.


« Previous Chapter Next Chapter »

Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!