Site icon IT Tutorial

HTML Basic

An HTML page starts with the <! DOCTYPE html> tag for document definition.

The HTMl page starts with the <html> tag ends with the </ html> tag.

The sections displayed on the HTML page are written between the <body> and </ body> tags.

 

<!DOCTYPE html>
<html>
<body>

<h1>It Tutorial</h1>
<p> I'm learning HTML with ıttutorial.org </p>

</body>
</html>

 

HTML Headings

HTML Headings are defined by tags between <h1> and <h6>.

<h1> Defines the most important title.

As the number of labels increases, its importance decreases.

<h6> is the least important heading.

<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>

 

HTML Paragraphs

Paragraphs in HTML are defined by the <p> tag.

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

HTML Links

Links in HTML are defined by the <a> tag.

<a href="https://ittutorial.org/">This is a link</a>

 

HTML Images

Images in HTMl are identified by the <img> tag.
<img> Tag properties;

(src) indicates the source of the file.

(alt) sub-text is defined in the file.

‘height’ and ‘width’ definition.

<img src="ittutorial.jpg" alt="https://ittutorial.org" width="104" height="142">

HTML Buttons

The HTML buttons are defined by the <button> tag.

<button> Click </button>

HTML Lists

Unordered lists in HTML are defined by <ul>.

In HTML, ordered lists are defined by <ol>.

<li> Tag list items are defined.

<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

<ol>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>
Exit mobile version