How To Create A Simple HTML Document?: Lesson#1
How To Create A Simple HTML Document?: Lesson#1
How To Create A Simple HTML Document?: Lesson#1
HTML is easy to learn, don’t need to have back end programming skills.
Sites created using front end development don’t need to interact with the
information store in the database in order to be functional.
Languages like CSS , JavaScript are other examples like HTML and are at the
heart of front end Development.
These above 3 languages are relatively easy to learn and offer plenty of
flexibility and creativity.
<br> tag is one of the element of HTML which doesn’t has any
content, because it is used for line break. It is useful in the poem and
stories where the division of the line is significant.
Web Browsers
The purpose of a web browser (Chrome, Edge, Firefox, Safari) is to read
HTML documents and display them correctly.
A browser does not display the HTML tags, but uses them to determine how
to display the document:
However, for learning HTML we recommend a simple text editor like Notepad
(PC) or TextEdit (Mac).
We believe in that using a simple text editor is a good way to learn HTML.
Follow the steps below to create your first web page with Notepad or
TextEdit.
Task #1: Open a Notepad /word processor or Word pad and type a
code in HTML which will display 3 headings of different sizes like you
can include h1, h2 and h3 and the heading message should be
displayed “This is Heading1”, “This is Heading2”,” This is Heading 3”
This is my first paragraph about the HTML scripting Language, which is front
end programming language like CSS and JavaScript. It is one of the most
popular language which is used in web development to create web pages.
Heading2: the same <p> will be used under the Heading2
HTML Links
HTML links are defined with the <a> tag:
<head >
<\head>
<a>
<\a>
<a href="https://www.w3schools.com">This is a link</a>
HTML Images
HTML images are defined with the <img> tag.
<marquee>
<\marquee>
Note: The marquee tag is used for moving the things on a web page.
The <center> tag in HTML is used to set the alignment of text into the center.
Lesson#3
What is an Article and how does it looks like?
The article tag content makes sense on its own. It is independent and complete from
other content shown on the page. This tag is generally used on Forum post, Blog
post, News story, comment etc.
NOTE: Heading tag and Paragraph tag can be used inside the <Article> tag
1.Blog posts
2.Forum Posts
3.News stories
HTML (the Hypertext Markup Language) and CSS (Cascading Style Sheets) are two of the
core technologies for building Web pages. HTML provides the structure of the page, CSS
the (visual and aural) layout, for a variety of devices.
CSS is the language for describing the presentation of Web pages, including colors, layout,
and fonts.
Important: you can change the content inside each of these browser’s heading if you
want
Task#2: What is CSS and how can it be used to give a style to <article> tag.
The above screenshot is an example of expected output, for which you have to write
a code using HTML and some CSS to style your <article> tag
Task#1: Copy the below script on the Notepad , save your work with an
extension .htm or .html and then open in a Browser
<article>
1. <h2>Narendra Modi</h2>
2. <i>(Naam to suna hi hoga) </i>
3. <p>Narendra DamodarDas Modi is the 15th and current Prime Minister of I
ndia,
4. Modi, a leader of the Bharatiya Janata Party (BJP), previously served as the
Chief Minister
5. of Gujarat state from 2001 to 2014. He is currently the Member of Parliame
nt (MP) from Varanasi. </p>
6. </article>
7. Task#2: Create a web page to add 2 link that will direct to 2 different
web sites and also add 2 images and add a tag that can move that image
from left to right
HTML Table
HTML table tag is used to display data in tabular form (row * column). There can
be many columns in a row.
We can create a table to display data in tabular form, using <table> element, with
the help of <tr> , <td>, and <th> elements.
In Each table, table row is defined by <tr> tag, table header is defined by <th>,
and table data is defined by <td> tags.
HTML tables are used to manage the layout of the page e.g. header section,
navigation bar, body content, footer section etc. But it is recommended to use div
tag over table to manage the layout of the page .
<!DOCTYPE html>
<html>
<head>
<title> This is my First table in HTML </title>
<style>
table ,th , td{
Border: 1px , solid black;
}
</style>
</head>
<body>
<h1>The table element</h1>
<table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>
</body>
</html>
Note : if you want to display a table around the table heading and table data you
have created then we need to use a tag <style> tag of CSS inside the <head> tag
Task #3:
Create a table which contains 4 fields about student object( St_ID, St_Name , St_Address and
St_year_Group , Each of this field should contain the data user input from the Keyboard.
001
002
003