• Home
  • Terms of Service
  • Privacy Policy
  • Contact us
The Daily Bulletin
  • Home
  • Recent News
  • World
  • Politics
  • Health
  • Business
  • Technology
  • Travel
  • Sports
  • Education
  • Entertainment
  • Literature
No Result
View All Result
  • Home
  • Recent News
  • World
  • Politics
  • Health
  • Business
  • Technology
  • Travel
  • Sports
  • Education
  • Entertainment
  • Literature
No Result
View All Result
The Daily Bulletin
No Result
View All Result
Home Technology

HTML Basic

by Kapil RJ
July 17, 2020
in Technology
0
0
SHARES
11
VIEWS
Share on FacebookShare on Twitter
Spread the love

HTML Documents

All HTML documents must start with a document type declaration: <!DOCTYPE html>.

The HTML document itself begins with <html> and ends with </html>.

The visible part of the HTML document is between <body> and </body>.

Example

<!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:<!DOCTYPE html>


HTML Headings

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

<h1> defines the most important heading. <h6> defines the least important heading: 

Example

<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>



HTML Paragraphs

HTML paragraphs are defined with the <p> tag:

Example

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


HTML Links

HTML links are defined with the <a> tag:

Example

<a href=”https://www.w3schools.com”>This is a link</a>

The link’s destination is specified in the href attribute. 

Attributes are used to provide additional information about HTML elements.

You will learn more about attributes in a later chapter.


HTML Images

HTML images are defined with the <img> tag.

The source file (src), alternative text (alt), width, and height are provided as attributes:

Example

<img src=”w3schools.jpg” alt=”W3Schools.com” width=”104″ height=”142″>


How to View HTML Source?

Have you ever seen a Web page and wondered “Hey! How did they do that?”

View HTML Source Code:

Right-click in an HTML page and select “View Page Source” (in Chrome) or “View Source” (in Edge), or similar in other browsers. This will open a window containing the HTML source code of the page.

Inspect an HTML Element:

Right-click on an element (or a blank area), and choose “Inspect” or “Inspect Element” to see what elements are made up of (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.

Previous Post

HTML Editors

Next Post

HTML Elements

Kapil RJ

Next Post

HTML Elements

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
Author Abhaidev is back with his Suspense Thriller

Author Abhaidev is back with his Suspense Thriller

October 21, 2021
This Sci-Fi book has the ability to shape the future!

This Sci-Fi book has the ability to shape the future!

December 18, 2021
I used beauty in death as my story premise

I used beauty in death as my story premise

November 12, 2021
The Gods Are Not Dead – A Visionary Fiction You Must Read

The Gods Are Not Dead – A Visionary Fiction You Must Read

August 23, 2022
Do you write stories for kids?  क्या आप बच्चों के लिए कहानियाँ लिखते हैं?

Do you write stories for kids? क्या आप बच्चों के लिए कहानियाँ लिखते हैं?

1
कोरोना के ऊपर हिंदी जोक्स / चुटकुले  – II

कोरोना के ऊपर हिंदी जोक्स / चुटकुले  – II

1

Ojass Helps Little People

1
Halloween treat: A night at Dracula’s castle in Transylvania
 

Jazzed up in New Orleans

0
OnePlus Nord CE 3 Lite Battery Details Leaked Ahead Of India Launch On April 4

OnePlus Nord CE 3 Lite Battery Details Leaked Ahead Of India Launch On April 4

March 29, 2023
Sir Alex Ferguson and Arsene Wenger Inducted into Premier League Hall of Fame

Sir Alex Ferguson and Arsene Wenger Inducted into Premier League Hall of Fame

March 29, 2023
Mariinskyi Palace: Ukraine’s Palace Where ‘Natu Natu’ Was Picturised

Mariinskyi Palace: Ukraine’s Palace Where ‘Natu Natu’ Was Picturised

March 29, 2023
67-Million-Year Old T-Rex On Show Ahead Of Zurich Auction

67-Million-Year Old T-Rex On Show Ahead Of Zurich Auction

March 29, 2023

Recent News

OnePlus Nord CE 3 Lite Battery Details Leaked Ahead Of India Launch On April 4

OnePlus Nord CE 3 Lite Battery Details Leaked Ahead Of India Launch On April 4

March 29, 2023
Sir Alex Ferguson and Arsene Wenger Inducted into Premier League Hall of Fame

Sir Alex Ferguson and Arsene Wenger Inducted into Premier League Hall of Fame

March 29, 2023
Mariinskyi Palace: Ukraine’s Palace Where ‘Natu Natu’ Was Picturised

Mariinskyi Palace: Ukraine’s Palace Where ‘Natu Natu’ Was Picturised

March 29, 2023
67-Million-Year Old T-Rex On Show Ahead Of Zurich Auction

67-Million-Year Old T-Rex On Show Ahead Of Zurich Auction

March 29, 2023

The Daily Bulletin is India's leading English News Website. The Daily Bulletin offers latest news on Politics, Business, Sports, Entertainment, Lifestyle, Business, Technology, Travel and a lot more.

Stay tuned for all the breaking news in English !

Follow Us

Browse by Category

  • Business
  • Education
  • Entertainment
  • Fashion and Lifestyle
  • Fiction
  • Fiction
  • Health
  • Literature
  • Local News
  • Non Fiction
  • Readers Posts
  • Sports
  • Technology
  • Travel
  • Uncategorized
  • World

Recent News

OnePlus Nord CE 3 Lite Battery Details Leaked Ahead Of India Launch On April 4

OnePlus Nord CE 3 Lite Battery Details Leaked Ahead Of India Launch On April 4

March 29, 2023
Sir Alex Ferguson and Arsene Wenger Inducted into Premier League Hall of Fame

Sir Alex Ferguson and Arsene Wenger Inducted into Premier League Hall of Fame

March 29, 2023
  • Home
  • Terms of Service
  • Privacy Policy
  • Contact us

© 2020 The Daily Bulletin - India's leading English News Channel The Daily Bulletin.

No Result
View All Result

© 2020 The Daily Bulletin - India's leading English News Channel The Daily Bulletin.

WP2Social Auto Publish Powered By : XYZScripts.com