What HTML Comprises of?
- HTML is a
markup language that comprises of elements.
- HTML
presents everything by using elements.
- Elements are presented in a
hierarchy called “DOM” [Document Object Model]
- HTML
elements are classified into 5 groups
- Normal
Elements
- Void
Elements
- RC Data
Elements
- Raw Text
Elements
- Foreign Element
How
website starts?
- Every
website by default starts with a page called “index.html”
- If there
is no “index.html” then you have to manually request any page.
- Index.html is the start-up a page for the website.
Ex:
- Go to your
project in VS code
- Add a new
file by name “index.html”
- Write some
text:
“Welcome to HTML”
- Request
your website from the browser
- This will
automatically load index.html
- If you
want to manually access any another page, then you can request directly in
URL.
http://localhost/fullstackweb/home.html
What
should be the extension for Static page?
- You can
define static page with extension
- .html
- .htm
What
is difference between HTML & Htm?
- Technically
both are same.
- Always
recommended defining extension “.html”
- “.htm” is the extension
often given by tools that can publish webpages.
Ex:
- Open
Ms-Word
- Write some
text in a file.
- Save as
type “Web Page” with name “welcome”
- It will save the file by
name “welcome.htm”
Post a Comment
Post a Comment