HTML Web Programming Internship Report
HTML Web Programming Internship Report
WEB PROGRAMMING
Including HTML CSS PHP WORDPRESS
By KALAVATI TECHNOLOGIES
CHHATRAPATI SAMBHAJINAGAR
Date: 05/06/2024
HOD : S.N.Dhole
Documentation:
Status of activities planned in [Current Session]
✓
✓
✓
Documentation :
Date: 05/06/2024
• What is HTML ?
• HTML stands for Hyper Text Markup Language
• HTML is the standard markup language for creating Web pages
• HTML describes the structure of a Web page
• HTML consists of a series of elements
• HTML elements tell the browser how to display the content
• HTML elements label pieces of content such as "this is a heading", "this is a
paragraph", "this is a link", etc
• Introduction to HTML
HTML stands for Hyper Text Markup Language. It is used to design web pages
using a markup language. HTML is a combination of Hypertext and Markup
language. Hypertext defines the link between web pages. A markup language is
used to define the text document within the tag which defines the structure of
web pages
HTML is a markup language which is used for creating attractive web pages with
the help of styling, and which looks in a nice format on a web browser.
An HTML document is made of many HTML tags and each HTML tag contains
different content
• What is Website ?
• A collection of web pages and media over the internet is called a website
• The website can be published on at least one web server and can be
identified by a common domain name, for example - facebook.com,
google.com, youtube.com.
• All the websites that are accessible publicly come under the World Wide
Web.
Date: 06/06/2024
An HTML document is divided into two parts: Head part- The title and metadata
of a web document are contained in the head element. Body part- The body
element includes the information that you wish to display on a web page
1. Paired Tags : These tags come in pairs. That is they have both opening(< >) and
closing(</>) tags.
1. <!DOCTYPE>
The tag in HTML is used to inform the browser about the HTML version used in
the web page. It is referred as the document type declaration (DTD).
2. <html>
<html> is a root element of html. It's a biggest and main element in complete
html language, all the tags, elements and attributes enclosed in it or we can say
wrap in it, which is used to structure a web page.
3. <head>
This tag represents the document's header which can keep other HTML tags like
<title>, <link> etc.
4. <title>
This <title> tag in HTML displays the title of a web page and can help in higher
rankings in search results if appropriate keywords are included. It gives a relevant
title to the full HTML content. It appears at the top of the browser window.
5. <body>
The <body> tag in HTML specifies the main content of an HTML document that
appears on the browser. It can contain headings, text, paragraphs, photos, tables,
links, videos etc .
The <body>tag must come after the <head> tag or it must be inserted between
the </head> and </html> tags.
➢ HTML structure
<!DOCTYPE html>
<html>
<head>
<body>
Body of Web…||
</body>
</head>
</html>
Date: 06/06/2024
Assignment : 1
1. Are the HTML tags and elements the same thing?
HTML Tags and Elements are sometimes perceived as the same. However, they are
not. There is a subtle difference between HTML elements and tags that many
people aren't aware of.
HTML Tags : are building blocks of HTML Page. They tell the browser how it should
display content to the user. A tag starts with a < bracket and ends with a > bracket.
Most tags exist in pairs in HTML. Tags have an opening and closing part. They are
similar, except the closing part has a / sign after the opening bracket.
Syntax
HTML Element : includes a start tag, content, and an end tag. HTML Elements are
components of the web page. Let's say we created a div block and filled it with
some text. Then the text-filled div becomes the component of the HTML Page. The
<div></div> tags along with the content inside it becomes a component and HTML
Element. This will be rendered and shown to the user.
Syntax
<p>This is an element<p>
An HTML element consists of a start tag, some content, and an end tag.
HTML Tags are the starting and ending parts of an HTML element. They begin with
< symbol and end with > symbol. Whatever is written inside < and > are called tags.
Example: In this example <b> is the starting tag and </b> is the ending tag.
<b> </b>
Tags in HTML are not case sensitive .Tags can be nested. Tags are always enclosed
in angle brackets: < >
HTML Attributes:
Example: In this example <p> is the starting tag and </p> is the ending tag with
extra css attributes.
1.Named entities:
These are represented by mnemonic codes, such as < for < (less than), > for >
(greater than), and & for & (ampersand )
Syntax :
&entity_name;
2.Numeric entities:
Decimal codes are preceded by &# and followed by a semicolon (;), while
hexadecimal codes are preceded by &#x and followed by a semicolon (;).
Syntax :
&#decimal_code;
&#xhexadecimal_code;
1.Unordered List :
Unordered lists are defined with the <ul> element and each list item inside is
defined with the <li> element . An unordered list is a collection of related items that
have no special order or sequence .The list items will be marked with bullets (small
black circles) by default.
Example
Output
2.Ordered List :
Ordered lists are defined with the <ol> element and each list item inside is defined
with the <li> element .The list items will be marked with numbers by default .The
numbering starts at one and is incremented by one for each successive ordered list
element.
Example
Output
3.Description List :
A description list is a list of terms, with a description of each term.The <dl> tag
defines the description list .
The <dt> tag defines the term (name).The <dd> tag describes each term.
Example
Output
o Notepad++ is a free and open-source text and source code editor for use
with Microsoft Windows
o Notepad++ is useful anytime you need to make significant changes to a text
file.
o It keeps the layout and structure of the code when you open or edit it,
making it easy to save
Simply download the 64-bit x64 installer or choose other installer suitable for you
operating system.
Step 3 : Open Downloads folder where the downloaded files are normally saved.
Step 4 : Click the installer to begin installing Notepad++.
Step 5 :
Close applications that might interrupt installation process and click Next.
Step 6 :
Step 7 : Choose location to install Notepad++ or click Next to use default folder.
Step 8 : Choose location to install Notepad++ or click Next to use default folder.
Tick Create Shortcut on Desktop or leave it, and click Install.
Wait for installation process.
<head>
<body>
Rollno. 914
</body>
</head>
</html>
Output
Text color
<html>
<head>
<body>
</body>
</head>
</html>
Output
Date: 10/06/2024
• An HTML table is defined with the <table> tag. Each table row is defined with
the <tr> tag.
• A table header is defined with the <th> tag.
• By default, table headings are bold and centered. A table data/cell is defined
with the < td>tag.
1.Table Cells
Table Cell are the building blocks for defining the Table. It is denoted with <td> as
a start tag & </td> as a end tag.
Syntax
<td> Content...</td>
2 . Table Rows
The rows can be formed with the help of combination of Table Cells. It is denoted
by <tr> and </tr> tag as a start & end tags.
Syntax
<tr> Content...</tr>
3 .Table Headers
The Headers are generally use to provide the Heading. The Table Headers can also
be used to add the heading to the Table. This contains the <th> & </th> tags.
Syntax
<th> Content...</th>
➢ Table tags
➢ Table Structure
Structure
<Table>
<tr>
<th></th>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<Table>
Example : Task 1
<!DOCTYPE html>
<html>
<head>
<body>
</tr>
<tr>
<td> 101</td>
<td> Mrunal</td>
<td> 97</td>
</tr>
<tr>
<td> 102</td>
<td> Priya</td>
<td> 95</td>
</tr>
</table>
</body>
</head>
</html>
Output :
➢ Font Family , Font Size , Font Color
Change the text font family in HTML, use the style attribute. The style attribute
specifies an inline style for an element. The attribute is used with the HTML <p>
tag.
• Font family
• Font color
• Font size
➢ We can understand the basic concept of Font Family , Font Size , Font Color
By using simple HTML program.
Example : Task 2
<!DOCTYPE html>
<html>
<head>
<body>
<center>
<tr>
</tr>
<tr>
<td> 960775202</td>
</tr>
<tr>
<td> 9537772201</td>
</tr>
<tr>
<td> 9870752201</td>
</tr>
<tr>
<td> 104</td>
<td> 8797752201</td>
</tr>
<tr>
<td> 8885752201</td>
</tr>
<tr>
<td> 106</td>
<td> 9898952201</td>
</tr>
<tr>
<td> 9604567890</td>
</tr>
<tr>
<td> 7897751201</td>
</tr>
<tr>
<td> 9802452212</td>
</tr>
<tr>
<td> 9601213145</td>
</tr>
</table>
</body>
</head>
</html>
Output
TASK 3: CREATE A MARKSHEET
<!DOCTYPE html>
<html>
<head>
<title> Marksheet</title></head>
<body>
<center>
<th colspan =5><font face =Algerian ;font size =3>Maharashtra State Board
of<br> Secondary and Higher Secondary Education ,Pune</font><br>
<th>Divisional Board</th>
</tr>
<tr>
<td>LATUR</td>
<td> L044008</td>
<td> 5012</td>
<td> 58.01.003</td>
<td> 000525</td>
</tr>
<tr align="center">
<td colspan=5>
<th>Main subjects</th>
<th>Max.Marks</th>
<th> Min.marks</th>
<th>Grade</th>
</tr>
<tr>
<tr>
<td>100</td>
<td> 35</td>
<td>100</td>
<td> A</td>
</tr>
<tr>
<td>100</td>
<td> 35</td>
<td>95</td>
<td> A</td>
</tr>
<tr>
<td> MATHEMATICS</td>
<td>100</td>
<td> 35</td>
<td>97</td>
<td> A</td>
</tr>
<tr>
<td> SCIENCE & TECHNOLOGY</td>
<td>100</td>
<td> 35</td>
<td>96</td>
<td> A</td>
</tr>
<tr>
<td>100</td>
<td> 35</td>
<td>98</td>
<td> A</td>
</tr>
<tr>
<td>500</td>
<td> 175</td>
<td>486</td>
</tr>
➢ Practice Questions
1. Building the Basics: The Bare-Bones Website
- Start with a simple HTML document structure: the <!DOCTYPE html>, <html>,
<head>, <title>, <body>, and closing tags.
- Experiment with text formatting using heading (<h1> to <h6>), paragraph (<p>),
and line break (<br>) tags.
- Add an image (<img>) with a source (src) attribute and explore alternative text
(alt) for accessibility.
Answer
<!DOCTYPE html>
<html>
<head>
</head>
<center>
<h3 style ="color:blue">"Flowers are the Friends ,they Bring color to your
World"</h3>
There are over three hundred species and tens of thousands of cultivars.<br>
They form a group of plants that can be erect shrubs, climbing, or trailing,
Their flowers vary in size and shape and are usually large and showy, in colours
ranging from white through yellows and reds.<br>
Most species are native to Asia, with smaller numbers native to Europe, North
America, and Northwest Africa.<br>
<h2> Image</h2>
</body>
</html>
Output :
Example 2
<!DOCTYPE html>
<html>
<head>
</head>
</body>
</html>
Output
2. Creating Structure with Headings and Lists
Answer
<!DOCTYPE HTML>
<html>
<head>
<title> Headings</title>
<body>
</body>
</html>
Output
- Use ordered (<ol>) and unordered (<ul>) lists to present items sequentially or
non-sequentially, respectively.
- Practice nesting lists (<li> within <ul> or <ol>) for more complex structures.
Answer
<!DOCTYPE HTML>
<html>
<head>
<body style="background-color:lightyellow">
<li><b>Semester 1<b></li>
<ol>
<li> Physics</li>
<li> chemistry</li>
<li>English</li>
<li>EGM</li>
</ol>
<li><b>Semester 2</b></li>
<ol>
<li> BEC</li>
<li> EEC</li>
<li>PIC</li>
</ol>
<li><b>Semester 3</b></li>
<ol>
<li> DSU</li>
<li> OOP</li>
<li> DTM</li>
<li>DCO</li>
<li>POD</li>
</ol>
<li><b>Semester 4</b></li>
<ol>
<li>java</li>
<li> SEN</li>
<li> CNE</li>
<li>DBMS</li>
</ol>
</body>
</html>
Output
3. Linking Up: Navigation with Hyperlinks
- Create links (<a>) to connect web pages within your site or to external websites.
- Optionally, use the title attribute to provide additional information for screen
readers or tooltips.
➢ HTML Anchor
The HTML anchor tag defines a hyperlink that links one page to another page. It
can create hyperlink to other web page as well as files, location, or any URL.
The "href" attribute is the most important attribute of the HTML a tag. and which
links to destination page or URL.
The href attribute is used to define the address of the file to be linked. In other
words, it points out the destination page.
Example
<HTML>
<HEAD>
</HEAD>
<BODY style ="background-color: lightpink">
<H1>LINKS ARE BELOW</H1>
<p><H2>This is an example of linking to external websites.</H2></p>
<UL>
<LI><a href="www.google.com"> GOOGLE</a></LI>
<LI><a href="www.dte.com"> Director of technical Education</a></LI>
</UL>
</BODY>
</HTML>
OUTPUT
4. Building a Simple Resume
- Use heading tags for sections like "Education," "Skills," and "Projects."
Answer
<!DOCTYPE html>
<html>
<head>
<title>My Resume</title>
</head>
<body bgcolor="lightcyan">
<h2 Education</h2>
<ul>
</ul>
<h2>Skills</h2>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
<li>C++</li>
<li>Java</li>
</ul>
<h2>Work Experience</h2>
<ul>
</ul>
<h2>Contact</h2>
<p>Email= mrunal@123</p>
<h2>Profile Picture</h2>
</body>
</html>
Output :
5. Designing a Fun "About Me" Page
- Tell your story! Create a creative "About Me" page to introduce yourself.
- Use heading tags, paragraphs, and lists to share your hobbies, interests, and
aspirations.
Answer
<!DOCTYPE html>
<html>
<head>
<title>About Me</title>
</head>
<h1>About Me</h1>
<h2>Hobbies</h2>
<ul>
<li>Reading</li>
<li>Traveling</li>
<li>Drawing</li>
</ul>
<h2>Interests</h2>
<ul>
<li>Waching Cricket</li>
</ul
<h2>Contact</h2>
<ul>
</ul>
<h2>Aspirations</h2>
</body>
</html>
Output
6. Experimenting with Tables
- Create tables (<table>, <tr>, <th>, <td>) for presenting data in a structured
format.
- Use table headers (<th>) for column labels and table data (<td>) for content.
- Explore table formatting options like border style, background color, and cell
padding/spacing.
Answer
<!DOCTYPE html>
<html>
<head>
<body>
<center>
<tr>
</tr>
<tr>
<td> 11 </td>
<td> IT</td>
</tr>
<tr>
<td> 12 </td>
<td> CIVIL</td>
</tr>
<tr>
<td> 13</td>
<td> CS</td>
</tr>
<tr>
<td> 14</td>
<td> AI</td>
</tr>
<tr>
<td> 15 </td>
<td> IT</td>
</tr>
<tr>
<td> 16</td>
<td> CS</td>
</tr>
<tr>
<td> 17</td>
<td> NEHA</td>
<td> CIVIL</td>
</tr>
<tr>
<td> 18 </td>
<td> AI</td>
</tr>
</table>
</body>
</head>
</html>
Output
Date: 12/06/2024
• Marquee Tag
Marquee is one of the important tags introduced in HTML to support such
scrollable texts and images within a web page.
The <marquee> tag is a container tag of HTML that is implemented for creating
scrollable text or images within a web page from either left to right or vice versa,
or top to bottom or vice versa. But this tag has been deprecated in the new version
of HTML, i.e., HTML 5.
Syntax
<!DOCTYPE HTML>
<html>
<head>
</head>
<center>
</center>
</body>
</html>
Output
• HR tag
- It can also be used to indicate a change in topic or to create a visual break in the
content.
- The HR tag has several attributes that can be used to customize the appearance
of the horizontal line
- The most common attributes include size, width, align, color, noshade, and class.-
The size attribute sets the height of the horizontal line.
- The width attribute sets the width. - The align attribute specifies the horizontal
alignment of the line
- The color attribute sets the color of the line. - The noshade attribute removes the
shading effect from the line
Above example will display a horizontal line that is 2 pixels in height, 50% in width,
centered on the page, and colored red.
• BR tag
HTML <BR> tag is a powerful tool for controlling the layout of your text. Unlike
word processors, web browsers don’t automatically recognize new lines or
paragraph formatting. This is where the <BR> tag comes into play.
The <BR> tag is a self-closing element, meaning it doesn’t require a closing tag.
It’s commonly used in addresses, poetry, or any situation where a line break is
needed for better readability.
• Add Image into HTML page
Images are not technically inserted into a web page; images are linked to web
pages. The <img> tag creates a holding space for the referenced image.
The <img> tag is empty, it contains attributes only, and does not have a closing
tag.
Syntax
Example
<!DOCTYPE HTML>
<html>
<head>
</head>
<body bgcolor="lavender">
</body>
</html>
Output :
• Add Audio into HTML page
HTML audio tag is used to define sounds such as music and other audio clips.
- The AUDIO tag in HTML is used to embed audio content in a web page.
- It allows to play audio files in website without the need for an external plugin or
application.
- Example:
</audio>
- The controls attribute adds the default audio controls to the player, such as play,
pause, and volume.
- The source tag specifies the location of the audio file and its file type.
- We can also add other attributes to the AUDIO tag to control the appearance
and behavior of the audio player
Example - The autoplay attribute will automatically start playing the audio file
when the page loads.- The loop attribute will continuously loop the audio
file.Overall, the AUDIO tag provides a simple and easy way to add audio content
in web
Example
<!DOCTYPE HTML>
<html>
<head>
</head>
<body bgcolor="lavender">
<center>
</audio>
</body>
</html>
Output :
• Add Youtube video into HTML page
We can embed a YouTube video in an HTML page using the iframe element.
- The <iframe> tag is an HTML element that is used to embed another HTML
document within the current HTML document.
- The content of the <iframe> element is typically an external web page, video,
audio, or other types of media.
2. Right click on the video, from the menu select 'copy embed code'.
6. Open the HTML file in a web browser to see the embedded YouTube video.
Example
<!DOCTYPE HTML>
<html>
<head>
</head>
</center>
</body>
<html>
Output
Date: 13/06/2024
The form tag in HTML is used to create an HTML form for user input.
- The form tag has several attributes that can be used to control the behavior of
the form.
- The action attribute specifies the URL to which the form data is submitted.
- The method attribute specifies the HTTP method (GET or POST) to be used when
submitting the form.
- The enctype attribute specifies the encoding type to be used when submitting
the form.
- Within the form tag, you can include various form elements such as input, select,
textarea, and button.
• <input> used to create various types of form controls such as text boxes,
radio buttons, checkboxes, buttons, and more.
• The type attribute is used to specify the type of input control to create.
• <select> used to create a drop-down list of options. The option tag is used
to define each option in the list
• <textarea> used to create a multi-line text input control.
• <button> used to create a clickable button that can be used to submit the
form or trigger some other action.
• HTML Input types
Here are the different input types you can use in HTML:
<input type="button">
<input type="checkbox">
<input type="date">
<input type="datetime-local">
<input type="file">
<input type="hidden">
<input type="image">
<input type="month">
<input type="number">
<input type="password">
<input type="range">
<input type="reset">
<input type="search">
<input type="submit">
<input type="tel">
<input type="text">
<input type="time">
Example
<! DOCTYPE>
<html>
<head>
</head>
<form>
</form>
</body>
</html>
Output
Task 1: Try to Create Registration Form
<!doctype html>
<html>
<head>
<body>
<tr>
</tr>
<tr bgcolor="cyan">
</tr>
<th><input type="password"></th>
</tr>
<tr bgcolor="cyan">
</tr>
<tr bgcolor="cyan">
</th>
</tr>
<tr bgcolor="cyan">
<th> Gender</th>
<input type="radio">Female<br>
</th>
</tr>
<tr bgcolor="cyan">
<th><input type="date"></th>
</tr>
<tr bgcolor="cyan">
</tr>
<tr bgcolor="cyan">
</tr>
</table>
</body>
</html>
Output
Task 2 : Try to Create Signup Form
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<tr bgcolor="orange">
<tr>
</tr>
</tr>
</tr>
</tr>
</tr>
</tr>
</tr>
<th><input type="password"></th>
</tr>
<th colspan ="2"><input type ="checkbox"> <font color ="yellow" size ="4">I
Agree to the Terms of use</font></th>
</tr>
<tr bgcolor="orange">
<input type="reset">
</th>
</tr>
</table>
</body>
</html>
Output
Task 3 : Contact us Form
<!doctype html>
<html>
<head>
</head>
<body>
<center>
<style>
Input[type="text"]{
width:100%;
</style>
<form>
</tr>
</tr>
</tr>
<tr align="center">
</tr>
</table>
</form>
</center>
</body>
</html>
Output