In this chapter we will show some basic HTML examples for absolute beginners.
Don't worry if we use tags you have not learned about yet .We are here for your
help.
Lets get started!!!
HTML Documents
All HTML documents must start with a doctype also known as document
declaration: <!DOCTYPE html>
.
The HTML document itself begins with <html>
and ends with a </html>
.
The visible part of the HTML document is between the <body>
and </body>
.
HTML Headings
HTML headings are defined with the <h1>
, and so on
<h6>
tags.
<h1>
defines the most important heading. <h6>
defines the least important heading.
Example
<This is First heading <
<This is Second heading <
<This is Third heading <
HTML Paragraphs
HTML paragraphs are defined with the <p>
tag.
Example
<This is another paragraph.<
HTML Links
HTML links are defined with the <a>
tag: Here <a>
tag is known as Anchor Tag
Example
< href="https://codeingers.blogspot.com/">This is a link<
The link's destination is specified in the href
attribute.
Attributes are used to provide the additional information about HTML elements.
You will learn more about attributes in the later chapter.
If you are here new than first the blog and UpToDate
HTML Images
HTML images are defined with the <img>
tag.
The source file (src
), width
,alternative text (alt
), and height
are provided as
attributes.
Example
<img src="codeingers.jpg" alt="Codeingers.com" width="100" height="132">
How to View HTML Source?
Have you ever seen a Web page and wondered "Hey! How did they do that?"
How a web page work and "How did they make it?"
View HTML Source Code:
Step 1- Open your Favourite "Browser" my recommendation to "Google
Chrome"
Step 2- Right click on the website or web page
Step 3- You will see a "Inspect Element" option in it click on that
Step 4- you will see both the HTML and the CSS. You can also edit the HTML or
CSS on-the-fly in the Elements or Styles panel that opens.
''If you are new than Enter your Email and Subscribe the Blog " We will discuss
more about the HTML , CSS , JAVA , and PYTHON
1 Comments
This code helps me a lot
ReplyDeletePlease do not enter any spam link in the comment box