HTML
HYPERTEXT MARKUP LANGUAGE
Helps to build the Structure Layer Of webpage.
To Learn HTML, we need
TEXT EDITOR ( NOTEPAD ,NOTEPAD ++ ,VS CODE)
BROwSER
Notepad vs wordPad vs Microsoft word
BASIC HTML STRUCTURE
Version
Html
File
Head
Portion
Body
Portion
VS
CODE SHORTCUT --- !
EXTENSIONS FOR VS CODE
HTML Tags are Not Case Sensitive
Save file as index.html
TEXT TAGS
Heading -- <h1>
</h1> -- h1 to h6
Paragraph
-- <p>
Pre-Formatted Text Tag - <pre>
Italic
, bold,underline -- <i>,<b>,<u>
Strong
and emphasis -- <strong> <em>
Formula -- <sub> <sup> -- Superscript , Subscript
To
break the line -- <br>
To draw horizontal line -- <hr>
For Comments -- <!-- -->
OPEN TAG , CLOSE TAG & SELF CLOSING TAG
LINK TAGS
<link> - Helps to connect external style sheet(css file) and html file.
<a> - Hyperlink Tag / Anchor Tag
<a href="https://www.youtube.com" target="_blank" >YouTube</a>
“target” = _blank ,_parent,_self,_top
<nav> - Used for website's navigation
Attribute : target , href
LIST TAG
Ordered List - <ol>,<li>
Unordered List - <ul>,<li>
Description List - <dl>,<dt>,<dd>
Nested List
MULTIMEDIA TAG
Image
Audio
Video
title
tag vs title attribute
https://github.com/SUSITHRAHARIDAS/MULTIMEDIA
Attribute : src , alt , height , width, controls ,title
ABSOLUTE PATH vs RELATIVE PATH
Absolute
path address starts from the directory
In
relative path with relative to the current working file we write the address
Single
dot helps to access the files from the same folder where our current working
file is present;
Double dot helps to access the files & Folders of our current working file ‘s parent folder;
GRAND PARENT FOLDER
PARENT FOLDER
CHILD FOLDER
SINGLE DOT . for same folder
DOUBLE DOT .. for prevIous folder
IFRAME TAG
iframe tag helps to embed another HTML document in current HTML. The IFrame is often used to insert content from another source, such as an advertisement, into a Web page.
TABLE TAG
table (
tr
th /
colspan
rowspan
thead, tbody, tfoot (CSS - POSITION )
META TAG
Meta
tag provide data (info) about the document
1.
Name Content –author, description, revised date
2.
Viewport
3.
Keywords
4.
http-equiv
5.charset
TAG + CONTENT = HTML ELEMENT
INLINE & BLOCK
ELEMENT
BLOCK
ELEMENT – Occupy the entire width of the browser (heading tag, paragraph
tag,div)
INLINE
ELEMENT – Occupy on the element filled portion on the browser(span,italic,bold,img,a>
SEMANTIC TAG
Introduced during HTML 5 version.
Tag
Name itself helps the user(developer) and browser to understand what kind of
content is present under the Tag
(E.g) table,form,heading tags
Non
–Semantic Tag – Div,Span
Article vs Section vs Div
Tags
Div
tag is non – semantic tag ;so we can group any content inside the div tag;
Section
& Article tags are semantic Tag
Section
tag – All the content under section tags will discuss about the same topic
Article
– Section can be used under Article Tag Different article tag discuss about
different topics
Best
Place to use Section & Article Tag is
Newspaper
Comments
Post a Comment