HTML07 Write an HTML code to create a Web page of blue color and display links in red colour.

By | January 11, 2018

Write an HTML code to create a Web page of blue color and display links in red colour.

HTML_Links_Source_Code

HTML_Links_Page

Write an HTML code to create a Web page of blue color and display links in red colour.

Html code:

<!DOCTYPE html>
<HTML>
<HEAD>
<TITLE>CSSimplified.com HTML7</TITLE>
</HEAD>
<BODY BGCOLOR="blue" TEXT="red">
<P ALIGN="center"><FONT FACE="verdana" COLOR="white" SIZE="5"><B>CSSimplified.com Links..</B></FONT></P>
<BR><A HREF="C_programming.html"><FONT COLOR="red" SIZE="4">C_programming</FONT></A>
<BR><A HREF="Assembly_Language.html"><FONT COLOR="red" SIZE="4">Assembly_Language</FONT></A>
<BR><A HREF="Data_Structure.html"><FONT COLOR="red" SIZE="4">Data_Structure</FONT></A>
</BODY>
</HTML>

Write above code in any text editor and save by htm or html extension and Open it in any browser by double clicking the file like internetexplorer.

 

<!DOCTYPE html>

This tag defines the document type and HTML version.

 

<HTML>….</HTML>

This tag encloses the complete HTML document and mainly comprises of document header which is represented by <head>…</head> and document body which is represented by <body>…</body> tags.

 

<HEAD>….</HEAD>

This tag represents the document’s header which can keep other HTML tags like <title>, <link> etc.

 

<TITLE>CSSimplified.com HTML 7</TITLE>

The <title> tag is used inside the <head> tag to mention the document title.

 

<BODY BGCOLOR=”blue” TEXT=”red”>

This tag represents the document’s body which keeps other HTML tags like <h1>, <div>, <p> etc.

 

The BODY tag has following attributes:

  • BGCOLOUR: It can be used for changing the background colour of the page. By default the background colour is white.
  • TEXT: It is used for specifying the colour of the text displayed on the page.

 

<B>…</B>

The HTML <b> tag specifies bold text.

 

<PALIGN=”center”>…</P>

The HTML <p> tag defines a paragraph of text.

 

<BR>

The HTML <br> tag is used to give a line break.

 

<A HREF=”C_programming.html”><FONT COLOR=”red”SIZE=”4″>C_programming</FONT></A>

The Anchor tag is used to create links between different objects like HTML pages,files, web sites etc. It is introduced by the characters <A> and terminated by </A>.HREF is the most common attribute of the ANCHOR tag. It defines the destination ofthe link.

 

The <!DOCTYPE> Declaration

The <!DOCTYPE> declaration tag is used by the web browser to understand the version of the HTML used in the document. Current version of HTML is 5 and it makes use of the following declaration:

<!DOCTYPE html>

There are many other declaration types which can be used in HTML document depending on what version of HTML is being used. We will see more details on this while discussing <!DOCTYPE…> tag along with other HTML tags.

Note:- To understand program for sequence in detail Please SEARCH numerically example: HTML01, HTML02, etc.