HTML CLASS VIII

 

HTML

HTML stands for HyperText Markup Language. It is the standard language used to create and design web pages on the internet. It was introduced by Tim Berners-Lee in 1991 at CERN as a simple markup language. Since then, it has evolved through versions from HTML 2.0 to HTML5

Hypertext defines the link between the web pages and Markup language defines the text document within the tag.

 

HTML CODE NO. 1

 

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

 

  • The <!DOCTYPE html> declaration defines that this document is an HTML5 document
  • The <html> element is the root element of an HTML page
  • The <head> element contains meta information about the HTML page
  • The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)
  • The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
  • The <h1> element defines a large heading
  • The <p> element defines a paragraph

 

Write the HTML code to set the bgcolor as pink, heading level 2, text This is pink background’ as black and topmargin 60.
Answer:

<HTML>

<head>
<title>Page Title</title>
</head>

<BODY bgcolor = "pink” topmargin=“60” text= “black”>

<H2>This is pink background</H2>

</BODY >

</HTML>

Comments

Popular posts from this blog

CLASS 8 DATA TYPES IN PYTHON

COMPUTER PRACTICAL CLASS VII

PYTHON PRACTICE INTERACTIVE MODE (COMMAND LINE)