DOM - Document Object Model
DOM - Document Object Model
Within the HTML tag we have two important sections, the HEAD and the BODY.In the HEAD
section we will enter data about our web page.
The second section, the BODY section, contains the tags that will be displayed on
the web page
=================================
HTML:
<html>
<head>
<title>My first page!</title>
</head>
<body>
<a href="#"> This is a link </a>
<div>This is a description</div>
<p>This is a paragrapf</p>
<h1>This is a "h1" text</h1>
</body>
</html>
=================================
The
<div> tag defines a division or a section in an HTML document.The
<div> tag is used as a container for HTML elements
- which is then styled with CSS or manipulated with JavaScript.Try this code in your editor:
=================================
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Title</title>
</head>
<body>
<h1>Text with "h1"</h1>
<h2>Text with "h2"</h2>
<h3>Text with "h3"</h3>
<h4>Text with "h4"</h4>
<h5>Text with "h5"</h5>
<h6>Text with "h6"</h6>
Normal text
<br>
Another normal text
<hr>
<b>This is a BOLD text</b>
<br>
<i>This is a ITALIC text</i>
<br>
<strong>This is a "STRONG" text</strong>
<br>
<em>This is a "EM" text</em>
<br>
2<sup>4</sup>
<br>
2<sub>4</sub>
<!-- This is a comment, not showing on your browser
(You can type this automaticaly with CTRL+/ )-->
</body>
</html>
=================================

Comments
Post a Comment