CSE 20CS01P U1 S2 Pr2
CSE 20CS01P U1 S2 Pr2
CSE 20CS01P U1 S2 Pr2
IT SKILLS - 20CS01P
(Common to All Engineering Branches)
Session 2
: 2.1 - Introduction, Editors, Tags
: Creating Web-pages
Session Outcome
Activities
<!DOCTYPE html>
<html>
<head><title>Page Title</title></head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Computer Science & Engineering – 20CS01P
What is an HTML Element?
An HTML element is defined by a start tag, some content, and an end tag:
<tag name> Content goes here... </tag name>
The HTML element is everything from the start tag to the end tag:
Web pages can be created and modified by using professional HTML editors.
Follow the steps below to create your first web page with Notepad or TextEdit
Step 1: Open Notepad (PC)
Step 2: Write Some HTML
Save the file on your computer. Select File > Save as in the Notepad menu.
Name the file "index.htm" and set the encoding to UTF-8 (which is the
preferred encoding for HTML files).
• Open the saved HTML file in your favorite browser (double click on the
file, or right-click - and choose "Open with").
• The result will look much like this
• HTML tags are like keywords which defines that how web browser will
format and display the content.
• With the help of tags, a web browser can distinguish between an HTML
content and a simple content.
• HTML tags contain three main parts: opening tag, content and closing tag.
But some HTML tags are unclosed tags.
• All HTML tags must enclosed within < > these brackets.
• Every tag in HTML perform different tasks.
• If you have used an open tag <tag>, then you must use a close tag </tag>
(except some tags)
• Syntax :
• <tag> content </tag>
<font> It defines the font, size, color, and face for the
content. (Not supported in HTML5)
Practice creating
Practice Paragraph
simple HTML
& Heading tags
document