⚠️-How to View HTML Source
Have you ever seen a Web page and wondered "Hey! How did they do that?"⬇️
Have you ever seen a Web page and wondered "Hey! How did they do that?"⬇️
⚠️-Example ⬇️
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
The <!DOCTYPE> Declaration
⚛The <!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correctly.
⚛It must only appear once, at the top of the page (before any HTML tags).
The <!DOCTYPE> declaration is not case sensitive.
The <!DOCTYPE> declaration for HTML5 is: ⬇️
⚛The <!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correctly.
⚛It must only appear once, at the top of the page (before any HTML tags).
The <!DOCTYPE> declaration is not case sensitive.
The <!DOCTYPE> declaration for HTML5 is: ⬇️
👍1
HTML Headings
⚛HTML headings are defined with the <h1> to <h6> tags.
⚛<h1> defines the most important heading.
⚛<h6> defines the least important heading:
⚛HTML headings are defined with the <h1> to <h6> tags.
⚛<h1> defines the most important heading.
⚛<h6> defines the least important heading:
❤1
<!DOCTYPE html>
<html>
<body>
<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>
</body>
</html>
...................................Result⬇️
<html>
<body>
<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>
</body>
</html>
...................................Result⬇️
❤2
⚛HTML Paragraphs
HTML paragraphs are defined with the <p> tag:⬇️
HTML paragraphs are defined with the <p> tag:⬇️
❤2
<!DOCTYPE html>
<html>
<body>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
.......................................Result⬇️
<html>
<body>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
.......................................Result⬇️
❤2👍1
This is a paragraph.
This is another paragraph.
This is another paragraph.
❤3
Media is too big
VIEW IN TELEGRAM
⚛Video<1>: HTML
⚛Subject: Basics of HTML Tags, Attributes, and Elements.
⚛Source: Udemy
⚛Quality: High
🕛Duration: 4:05
⚛Subject: Basics of HTML Tags, Attributes, and Elements.
⚛Source: Udemy
⚛Quality: High
🕛Duration: 4:05
👍5❤3
Nested HTML Elements
⚛HTML elements can be nested (this means that elements can contain other elements).
⚛All HTML documents consist of nested HTML elements.
⚛The following example contains four HTML elements (<html>, <body>, <h1> and <p>):⬇️
⚛HTML elements can be nested (this means that elements can contain other elements).
⚛All HTML documents consist of nested HTML elements.
⚛The following example contains four HTML elements (<html>, <body>, <h1> and <p>):⬇️
👍2
⚠️-Note: Some HTML elements have no content (like the <br> element). These elements are called empty elements. Empty elements do not have an end tag!
👍2
⚠️-Never Skip the End Tag
Some HTML elements will display correctly, even if you forget the end tag.
Some HTML elements will display correctly, even if you forget the end tag.