HTML Css Course
HTML Css Course
Web tech:
-> these tech programs are translated, executed & result displaying in
client computers
-> these tech are translated, executed & results production in server
computers
UI/Frontend developer
Server
A server is a computer or system that provides resources, data, services, or
programs to other machines, known as clients, over a network/inet.
a server stores all the data associated with the websites that
are hosted by it and shares that info with all computers and
mobile devices (like yours) that need to access them.
Server provides data services to clients
Client
User
Presentation layer is a user interface (views) which are accessible from any
web browser.
a web page is a group of html elements, elements are nothing but a para, a
button, an image, a text box, a password, a heading, an audio, a video, a
table etc…
HTML Versions
From the W3C organization there are the following versions released.
Version Specification Release Date
1.0 N/A (HTML 1.0) 1993-dec/1994
2.0 HTML 2.0 24-Nov-1995
3.2 W3C: HTML 3.2 14-Jan-1997
4.0 W3C: HTML 4.0 24-Apr-1998
4.1 W3C: HTML 4.1 24-Dec-1999
5.0 WHATWG 28-Oct-2014
5.1 W3C: HTML 5.1 Nov-2016
5.2 W3C: HTML 5.2 14-Dec-2017
HTML introduction
1. HTML was developed by “Tim-Berners-Lee”, released in 1993-dec/94
and maintained by W3C Org.
“Hypertext” means the text that can be transferred from internet server to
internet client.
"Markup" means which syntax will be in the form of tags or you simply
"markup" a text document with tags that tell a Web browser how to
structure it to display.
5. HTML is “client side tech”. That means the html code executes on the
client browser but not on the server.
9. HTML is not a case sensitive language that means you can write
the html code in either uppercase or lower case.
interpreter
Tag:
1. Tag is a predefined program, program is instructions / command
to the browser
· A tag is a keyword, enclosed within "<" and ">" in HTML language.
· It is a special kind of text placed between the left angular brace and
right angular brace(<tag_name>).
· · Tag is used to display some specific output in the web page.
· Browser did not identify the tag; it shows a blank page or it prints as
text.
· tags also represented as elements.
types of tags
in html we have two types tags, those are:
1. paired tags
⇒ Contains open tag and closing tag.
⇒ Opening tag specifies starting point of operation/output, closing tag
specifies ending point of operation/output.
<body> … </body>
<p> … </p>
2. unpaired tags
⇒ contains only open tags.
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
</body>
</html>
Structure of HTML
As per W3C we have to follow the following structure to design web pages
(but it’s not comp).
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
</body>
</html>
Generally, html program contains three parts, those are:
Versioning section
HTML4.0:
<!DOCTYPE html public "-//W3C//DTD HTML 4.0//EN"
"http://www.w3c.org/TR/html4/strict.dtd">
head tag
This tag is used to set icons, title, to provide some meta data (info
about web app), css settings.
body tag
some of tags: p, img, h1, table, div, a, table, audio, video, input,
button, form, ol, ul, li, hr tags …
Comment lines
⇒ Comment lines are to provide some description about
our program.
⇒ save that program with any name (.html or .htm) and anywhere
in the system.
⇒ execution:
2nd Approach: goto file location, then right click on file and
click on open then select browser
3rd Approach: open any browser, then goto address bar and
type filename with address.
Heading tags
These tags are used to print data/text in heading format.
Html provides 6 heading tags, those are h1, h2, h3, h4, h5 and h6.
Syn:
ex1.html
<!-- demo on heading tags -->
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<h1>HTML</h1>
<h2>HTML</h2>
<h3>HTML</h3>
<h4>HTML</h4>
<h5>HTML</h5>
<h6>HTML</h6>
<h6>CSS</h6>
<h1>JavaScript</h1>
<h3>BootStrap</h3>
</body>
</html>
p tag
> p stands for paragraph.
Syn:
ex2.html
<!-- example on p tag -->
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
</body>
</html>
Note:
>browser/html doesn't accept more than one space (space bar &
tab key), means while designing the program we are given more
space but browser prints only one space.
br tag
Html entities
Syn: &word;
ex: € © ®
All words should be in small letters - because HTML Entities are case
sensitive
Syn: &#hex-code;
digits; digits;
😍 ⚔
ex3.html
<!-- example on br tag & html entities -->
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
Apple<br>
Mango<br/><br/><br/>
Orange<br>
100$<br> 100€<br>100£<br>
100¥<br>
1000₹ <bR>
</body>
</html>
formatting tags
formatting tags are used to change the format of text, means to
change the way of data presentation
strong tag
em tag
delete tag
=> used to represent deleted text or also used to strike out the text
Mark tag
Syntax: <mark>Para</mark>
insert tag
=> used to represent inserted text or also used to underline the text
=> sub script, used to print the text below the actual line
sup tag
=> super script, used to print the text above the actual line
span tag
pre tag
inline
ex4.html
<!-- example on formatting tags -->
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<strong>HTML</strong>
<b>CSS</b>
<em>javascript</em>
<i>bootstrap</i>
<bR>
<del>AngularJs</del>
<s>Jquery</s>
<ins>React</ins>
<u>ajax</u>
<BR>
<span>nodejs</span>
<span>php</span>
<br>
H<sub>2</sub>SO<sub>4</sub>
<br>
<br>
<pre>
red apple
yellow mango
orange
</pre>
</body>
</html>
ex5.html
<!-- example on tags -->
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<p>
</p>
<h1> <u> <em> <s> Siva Kumar Y </s> </em> </u> </h1>
<h3>Vivo X100</h3>
</body>
</html>
title tag
This tag is used to set the title for a webpage, meaning every
webpage has an individual title.
Syn:
<title> text </title>
Link tag
è Link tag used to set the favicon/logo for a webpage.
è Also used to link with external files (css file, bootstrap file)
è Unpaired tag.
.jpg .bmp .png .jfif .gif .tif .ico .webp .svg etc…
ex6.html
<!-- example on title & link tags -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home Page</title>
</head>
<body>
<h3>demo on setting web page title & icon</h3>
</body>
</html>
HTML Attributes
⇒ Attribute is a special feature/setting of a tag.
⇒ HTML Attribute is something that we use in the starting tag of HTML Elements or
HTML Tags which provides extra information about those HTML Elements or HTML Tags.
Syn:
Types of attributes
⇒ general attributes
These attributes are common for most tags (99% of tags). These attributes
are used to adjust the behavior or display of an HTML element, to provide
extra information about those HTML Elements to the browser, to control size
of element, to change alignment of element …
class, id, name, style, align, action, href, src, target, width, height, alt, title,
min, max, step, maxlength, type, checked, selected, value, readonly,
placeholder, rel etc…
⇒ event attributes
An event is a notification that is triggered when something changes in the
browser.
With event attributes these events are directed to JavaScript which then
responds to the event.
By using event attributes From Html page we can trigger JavaScript code or
we can call JavaScript functions
attributes are:
ex7.html
<!-- example on html attributes -->
<!DOCTYPE html>
<head>
<title>attribute page</title>
</head>
<p align="justify">
</body>
</html>
Images
è "img" tag is used to display images on a webpage.
è in one web page we can display any no.of images and any
type of images.
ðIt supports all types of images, like .jfif, .svg, .jpg, .bmp,
.gif, .tif, .png, .webp etc…
è its un-paired tag and its inline element
Syn:
<img attributes/>
Note:
title => it is used to specify tooltip. (whenever mouse pointer comes on top of image)
alt => alternative text, if image not loaded in webpage/not display, we want to display
text message to user it called as alt
ex8.html
<!-- example on img tag -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>images page</title>
<link rel="icon" href="logo1.jpg">
</head>
<body>
<h3>demo on displaying images</h3>
<img src="h:/html4pm/images/girl.jpg"/>
<img src="images/tenor.gif">
<bR>
<img
src="https://www.naturenursery.in/wp-content/uploa
ds/2020/03/indian-rose.jpg">
<bR>
<img src="images/moon.jpg" width="60%">
<!-- width=500px" OR height="300px" OR
width="500px" height="300px" -->
<bR>
<img src="images/baby.png" border="30"
style="border-color:hotpink;" title="Sooooo
cuuuuute!!!">
<img src="images/ocean.web" width="200px"
alt="image not loaded, try again">
</body>
</html>
ex9.html
<!-- example on a tag -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Ex9</title>
</head>
<body>
<br>
<a href="https://www.youtube.com">youtube</a>
<br>
<a
href="https://www.amazon.in/s?bbn=81107432031&rh=n%3A8110
7432031%2Cp_85%3A10440599031&_encoding=UTF8&content-id
=amzn1.sym.58c90a12-100b-4a2f-8e15-7c06f1abe2be&pd_rd_r=7
e366296-f72f-4e7d-a5db-305a6de22755&pd_rd_w=sQWYY&pd_rd
_wg=dXoeN&pf_rd_p=58c90a12-100b-4a2f-8e15-7c06f1abe2be&p
f_rd_r=DRHZYBVF7RKW6K9TGDS6&ref=pd_gw_unk"
target="_self">
</a>
<br> <br>
<a
href="https://mov.ibomma.rs/te-a1cwn/anweshippin-kandethum-2
024-telugu-movie-watch-online.html" target="_blank">
<img src="images/Anweshipping.jpg">
</a>
</body>
</html>
ex10.html
<!-- example on a tag -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Ex10</title>
</head>
<body>
<br>
<br>
<p>
<p>
<br>
<h2 id="hyundai"><u>Hyundai Motor Company</u></h2>
<p>
</body>
</html>
ex11.html
<!-- example on a tag -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Ex11</title>
</head>
<body>
<br>
<a href="files/VSCodeUserSetup-x64-1.78.2.exe">Download
VS Code</a>
<br>
<br>
<br>
<a href="images/ocean.webp">
</a>
<a href="images/moon.jpg">
</a>
</body>
</html>
working with list tags
these tags are used to display data/info points wise.
html supports three types of list, those are
Ordered list numbering
Unorderedlist bullet
ol tag
1.ol stands for "Ordered List".
2.it is used to display the text(names, colors, team names, course name...) with numbering.
3it supports 5 types of numbering, those are 1, A, a, i, I. By default it displays in number.
4.by using "ol" tag we can create ordered list
5.ol is paired tag & block level element
li tag
1. li stands for "list item"
2. li is sub tag of ol tag
3. li tag is used to print text/data in points wise
4. li is paired tag & block level element
ol attributes:
type : which type numbering to display (Default is 1)
start : from where u want to start numbering (default is 1)
reversed : to displaying numbers in desc order
li attributes:
value : used for restarting numbering with specified value
dl tag
dl stands for Definition list (since html5 description list)
dl tag used for to display definitions/full forms (collection of definitions)
its paired tag
"dt" and "dd" are sub tags of "dl" tag
"dt" stands for definition title, "dd" stands for definition data.
dt & dd are paired
<dl class="styled-dl">
<dt>Term 1</dt>
<dd>Description for Term 1</dd>
<dt>Term 2</dt>
<dd>Description for Term 2</dd>
<dt>Term 3</dt>
<dd>Description for Term 3</dd>
</dl>
Div tag
div is a container, means its grouping elements of html.
inside the div tag we can place any content like normal text or images.
div tag is used to divide web pages as no.of subpages/parts, each part is rep as div.
for better maintained, effective design of web page and simplifying css code.
table tag
table tag is used to display the data in form rows & cols in the web page.
a table is a collection of rows, each row is a collection of cells/col/field.
a table is represented as table tag, a row represented as tr tag, a colheading is represented as th
tag, data rep as td tag.
table heading is represented as caption tag.
thead tag is rep of table head part, tbody tag is rep of table body part and tfoot tag Is rep of table
footer part.
table used to draw a table, means it grouping no.of rows
caption to set main heading of table
tr table row, used to draw a row, means it grouping no.of columns
th table heading, used to set column headings
td table data, used to print the data in columns
+
thead table head section since html4
tbody table body section
tfoot table footer section
table attributes:
border : border of table (0 means no border, 1-n border req)
align : alignment of table
width : width of table (%)
...
th& td attributes:
colspan : specifies the no.of columns to merge/expend
rowspan : specifies the no.of rows to merge/expend
form elements (html forms)
input tag
> these elements are used to take input/accept data from users.
Syn:
<input attributes>
Types of IE text, password, number, hidden, submit, reset, image, radio, checkbox, date, time,
email, url, file, color, range etc…
Field/element/box
input
type="text|hidden|password|number|button|reset|submit|image|checkbox|radio|file|color|
email|url|range|date|time|datetime-local|month|week..."
maxlength this attribute used to set max limit of data (no.of chars)
required this attribute used to force the user to enter data (mandatory field)
tabindex this attribute controlling cursor movements (when we r pressing tab key, where
cursor is moving)
min this attribute used to set minimum limit of number value (lower bound)
max this attribute used to set maximum limit of number value (upper bound)
step this attribute used to specify incremental & decrement value of number
Text fields
>text field used for taking input(any type of data) from user or text box allows us to type data.
>text fields are used for typing of username, first name, pincode, phone, address etc...
>user can type any no.of char's but single line, if u want to set a limit use "maxlength" attribute.
Syn:
<input type="text"/>
Note:
hidden field
>an in-visible text field with default value is called a "hidden field".
>hidden fields are used to send some information about user/client to a server-side program
without asking the user.
>like normal text fields, hidden fields data is also sent to the server when we click the submit
button.
Syn:
password control
> it's used for accepting password, pin, cvv, otp, verification code, passcode... from the user.
Syn:
number control
>this control used to accept only numerical value (numbers only) from user
>it prevents typing of alphabets, special chars (in some browsers), except minus, dot and e
alphabet.
>but some browser allows to type all these data but given error while submitting form
SYn:
min =>it rep starting value of number field (by default no min)
max =>it rep ending value of number field (by default no max)
>button control is used to execute some code in the background whenever the user
clicked/pressed on that button.
>its standard button (not submit), it is unable to send requests to the server.
Syn:
reset button
>reset is one type of button, used for reset the html form/UI, meaning it clears all values of
form.
Syn:
<input type="reset">
submit button
>submit is one type of button, used to submit/send the html forms/page/UI to a server-side
program.
>while submitting the html form, all input parameters (enter by user), hidden parameter (by
programmer) are prepared as a "Query String"
ex:
param-name => name of text box or name of password field or name of button...
value => value of text box or value of password field or value of button...
>outside the form, if we design anything that is not submitted to the server and without name
attribute also not submittable.
Syn:
<form action=”search.jsp”>
String st = request.getParameter(“t1”)
post
https://www.sitename.com/search.jsp
image button
> when the user clicks on the image button, browser is submitting data with x-co & y-co of
image button
Syn:
<input type="image" src="filename" .../>
> by using <form> tag we can create html form(s) (mean application form)
> web document/page it contains only one body, but a body can contain multiple forms.
> forms are used to collect info from users(ex: signup page, singing page, user registration,
product delivery info etc...)
info we collected by using some fields (created by tag) like text field, password, checkbox, radio
button, combo-box, list box, date, submit button, etc...
> form is used to submit input values (user’s data) to a server-side program.
UI designing
</form>
attributes:
https://www.irctc.co.in
https://www.sitename.com/login.class|login.aspx|login.php|login.ns|login.cgi|login.py
get:
https://www.redbus.in/search ?
fromCityName=Hyderabad&toCityName=Guntur&onward=10-Jan-2022&opId=0&busType=Any
Post:
https://www.irctc.co.in/nget/booking/train-list
default is _self
>application/x-www-form-urlencoded
If you want to send data to the server without attachment and file
uploading use this method.
It is default option
>multipart/form-data
5 autocomplete : it automatically saves data while typing in the UI (textbox, password, address,
pincode, ....)
on/off
on is default
6 novalidate : while submitting html perform some basic validation, if u don't do those
validations, switch off this.
check box
>check boxes are used to allow the user to select some options, for example product, class,
color selection, sport selection, select branch, select collage etc.
>whenever we want to select more than one option use check box's
>if the checkbox is selected/checked it returns "on'' (true) value, if the checkbox is unchecked it
returns "off" (false) value.
SYn:
Note: all check boxes should be created with the same name.
"checked" attribute of the check box makes the checkbox by default checked, while opening the
page.
radio button
> RB is used to display two or more options to the user, but allows the user to select any one of
them.
SYn:
> "checked" attribute of RB makes the RB by default selected, while opening the page.
file
>we can upload or attach any type of file, but @time a only one file
attributes:
Note:
color
>used to select color by user, selected color we can apply on any control using JS
date
>used to create a date box (date picker/popup calendar), where the user can select a date.
>used to create a time box, where the user can enter/select time (in the form of hours, minutes
and seconds)
datetime
month
>used to create a month box, where the user can select a month.
week
>used to create a week box, where the user can select a week.
>used to create an email textbox, where the user can enter a valid email id only.
>it displays an error message automatically (built-in validation), if the user enters other than
email id (should contain @ and .).
url
>used to create an url box, where the user can enter a valid url for downloading files or playing
videos.
>it displays an error message automatically (built-in validation), if the user enters other than url.
range
>this control req min value and max value, if we are not specified then browser takes default
values.
attributes
appearance: slider-vertical;
search
> used to create a search box, where the user can enter some search text, it also displays a clear
button to clear the text inside the search box.
...
</select>
new Syn:
attributes:
selected : this attribute of "option" tag, used to change default selected option/item of DDB
list box
>list box is used to display some options/items to the user and allows the user to select any one
of them (by default).
> "option" tag used to create/to add items/options to the list box.
...
</select>
attributes:
selected : this attribute of "option" tag, used to change default selected option/item of DDB
multiple :it allows user to select more than one option @time
size :attribute used to change DDB into List box and no.of options to display @time
option groups
> "optgroup" tag is used to group-up some options/items inside the "select" tag.
> one "select" tag can contain many "optgroup" tags, the "optgroup" tag contains many
"options".
Syn:
<select>
<optgroup label="Text">
<option> ..</option>
<option> ..</option>
<option> ..</option>
</optgroup>
<optgroup>
...
</optgroup>
</select>
textarea
>it creates a multi-line text box, with default sizes (2row & 20 col)
init value
</textarea>
attributes:
rows : it rep no.of lines to display @time, if more lines of data entered
progress bar
attributes:
label
> label tag is used to create heading/prompting messages for elements or controls.
> label providing description for controls, it gives an idea to user what we have to type.
> when the user clicks on the label, the cursor will appear in the associated control
automatically.
attributes
for : used to specify the id of the control that is associated with the control
Note: labels are not sent to the server while submitting the form.
HTML5 tags
Datalist
<option>text</option>
OR
<option value=”text”>
….
</datalist>
output tag
>details and summary tags are used to allow the user to expand/collapse some information,
when the user clicks on the heading.
> details tag is the main tag and summary is the sub tag of details tag.
Syn:
<details>
<summary>Short info</summary>
Detailed Information
</details>
header
>"header" tag represents header bar, which may include website logo, search box, main links,
etc...
>it doesn’t provide any styles by default; we have to apply styles manually, using CSS.
>its paired tag.
Syn: <header>
</header>
nav
>"nav" tag represents navigation bar, which may include top navigation menus.
>it doesn’t provide any styles by default; we have to apply styles manually, using CSS.
Syn: <nav>
</nav>
section
>"section" tag represents a specific section of the page(box or container), which may include
main-content/information.
>it doesn’t provide any styles by default; we have to apply styles manually, using CSS.
Syn: <section>
</section>
footer
>"footer" tag represents the footer part of the web page, which may include information of
contact, faqs, location, copyrights, etc...
>it doesn’t provide any styles by default; we have to apply styles manually, using CSS.
Syn: <footer>
</footer>
aside
>"aside" tag represents the "right-side" part of the web page, which may contain ads/other
promotional information.
>it doesn’t provide any styles by default; we have to apply styles manually, using CSS.
Syn: <aside>
</aside>
article
● Newspaper articles
● Forum posts
● Blog posts
● User comments
Syn: <article>
figure
The <figure> element is used for indicating self-contained content. The tag can include images,
diagrams, illustrations, code examples, etc.
figcaption
The <figcaption> element is used for adding signature or annotation to the <figure> tag.
Syn: <figure>
Image
</figure>
mark
The <mark> element is used to mark a part of the text which has relevance. It can be used to
highlight a text for showing emphasis, highlight search terms in search results to provide
context, or distinguish a new content added by the user by showing it differently
bdi
The <bdi> element is used to isolate bidirectional text when a language with a right-to-left
directionality, such as Arabic or Hebrew, is used inline with left-to-right languages
base tag
this tag is used to specify a base URI or URL to use for all relative links contained within an
HTML document.
Only one “base” element can be specified within a document, and it must be placed within
“head” element.
We can also specify how other links should open using the target attribute.
Audio tag
The <audio> is one of the HTML5 elements added to allow embedding audio files to a web
page. Since not all browsers support all audio formats, the audio file is encoded using special
codecs.
The <source> tag or the src attribute is used to indicate the variations of the same audio file.
The path to an audio file can contain absolute or relative URLs.
Syn:-
<audio attributes></audio>
OR
<audio attributes>
</audio>
Attribute Definition
src URL => Specifies the path to the audio file.
controls Displays the control panel (start button, scroll, volume control).
autoplay Plays the audio file automatically after loading the page.
loop Repeat the audio file from the beginning after its completion.
Video tag
The <video> is one of the HTML5 elements added to allow embedding video files to a web page.
Since not all browsers support all audio formats, the audio file is encoded using special codecs.
The <source> tag or the src attribute is used to indicate the variations of the same audio file.
The path to an audio file can contain absolute or relative URLs.
Syn:-
<video attributes></video>
OR
<video attributes>
...
</video>
Attribute Definition
autoplay Plays the audio file automatically after loading the page.
loop Repeats continuously the audio file from the beginning after its
completion.
iframe
Syn:
<iframe attributes>
</iframe>
att:
width =>
height =>
map tag
> map tag used to explore internal details about par area of img
> map tag should link img tag ny using "usemap" attribute of img
Syn:
<imgsrc="image">
<map name="">
...
</map>
> circle
>rect
> poly
https://www.image-map.net/
marquee tag
Syn:
attributes:
scrollamount => 6
meta
> data about data means we provide some info/details about a webpage.
> meta is unpaired
> by using meta we can provide info to browser, search engines, users/programmers.
Refresh document:
HTML Versions
From the W3C organization there are the following versions released.
Version Specification Release Date
1.0 N/A (HTML 1.0) 1993-dec/1994
2.0 HTML 2.0 24-Nov-1995
3.2 W3C: HTML 3.2 14-Jan-1997
4.0 W3C: HTML 4.0 24-Apr-1998
4.1 W3C: HTML 4.1 24-Dec-1999
5.0 WHATWG 28-Oct-2014
5.1 W3C: HTML 5.1 Nov-2016
5.2 W3C: HTML 5.2 14-Dec-2017
HTML introduction
1. HTML was developed by “Tim-Berners-Lee”, released in 1993-dec/94
and maintained by W3C Org.
“Hypertext” means the text that can be transferred from internet server to
internet client.
"Markup" means which syntax will be in the form of tags or you simply
"markup" a text document with tags that tell a Web browser how to
structure it to display.
5. HTML is “client side tech”. That means the html code executes on the
client browser but not on the server.
Translators: converting high level code (human) into machines level code
(MP/OS) is called translation.
interpreter
Structure of HTML
As per W3C we have to follow the following structure to design web pages
(but it’s not comp).
<!DOCTYPE html>
<html lang=”en”>
<head>
</head>
<body>
</body>
</html>
Versioning section
HTML4.0:
<!DOCTYPE html public "-//W3C//DTD HTML 4.0//EN"
"http://www.w3c.org/TR/html4/strict.dtd">
head tag
This tag is used to set icons, title, to provide some meta data (info
about web app), css settings.
some of tags: p, img, h1, table, div, a, table, audio, video, input,
button, form, ol, ul, li, hr tags …
⇒ save that program with any name (.html or .htm) and anywhere
in the system.
⇒ execution:
2nd Approach: goto file location, then right click on file and
click on open then select browser
3rd Approach: open any browser, then goto address bar and
type filename with address.
types of tags
<body> … </body>
<p> … </p>
2. unpaired tags
⇒ contains only open tags.
demo.html
<!-- demo on html -->
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
Welcome to The Web World😍
</body>
</html>
Comment lines
⇒ Comment lines are to provide some description about
our program.
Intermediate Level
HTML introduction
"Markup" means which syntax will be in the form of tags or you simply
"markup" a text document with tags that tell a Web browser how to
structure it to display.
5. HTML is “client side tech”. That means the html code executes on the
client browser but not on the server.
9. HTML is not a case sensitive language that means you can write
the html code in either uppercase or lower case.
Translators: converting high level code (human) into machines level code
(MP/OS) is called translation.
interpreter