html body { margin-top: 50px !important; } #top_form { position: fixed; top:0; left:0; width: 100%; margin:0; z-index: 2100000000; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; border-bottom:1px solid #151515; background:#FFC8C8; height:45px; line-height:45px; } #top_form input[name=url] { width: 550px; height: 20px; padding: 5px; font: 13px "Helvetica Neue",Helvetica,Arial,sans-serif; border: 0px none; background: none repeat scroll 0% 0% #FFF; }
HTML Notes
HTML Notes
HTML Notes
INTRODUCTION
* HTML = Hyper Text Markup Language
* HTML is the language of the web. It is used to create websites
Head & body tags are children of HTML tag HTML IS PARENT OF Head & body tags
* Most of the Html element have opening and closing tags with content in between opening &
closing tags
* Some HTML tags have no content These are called Empty elements eg <br>
* we can either use HTML or htm extension you can use inspect element or view page source
option from chrome to look into a websites HTML code.
comments in HTML comments in HTML are used to make text which should not be passed they
can help document sourse code
Case sensitivity
HTML is not a case sensitive language <H1> and <h1> tags are the same
we can add elements inside the body tags to define the page layout
HTML element
Everything from starting to the ending tag
HTML attributes
used to add more information corresponding to an HTML tag
ex --> <a href = “https://example.com/”>website</a> --> href is attribute here
<h1>Most important heading </h1> Note :- we should not use HTML heading to make test
<h2 another heading h2 </h2> thick or bold
<h3>another heading h3</h3>
<h4>another heading h4</h4>
<h5> another heading h5 </h5>
<h6> another heading h6 </h6>
br tag
The br tag is used to create line breaks in an HTML document
we can make the text a bit larger and bit smaller using big and small tags respectively
hr tag
<hr> tag in HTML is used to creating a horizental ruler often used to spearate the content
pre tag
HTML always ignors extra spaces and new lines In order to display a piece of text as is, we can use
pre tag
<pre>
this is written
using pre Rendered as it is
tag
</pre>
when we use the right tag in right place it result in a better page layout , better indexing by search
engines and better user exprience we use the following tag to get the job
creating a page like this is not necessary but it creates a readable & structure layout. Also they are
useful for SEO
* links Attributes
<a href = “/contact”> contact us </a> contact page
we can put any content inside an anchor tag images heading etc are all allowed
If the page is inside to directory we need to make sure that we link to the correct page some applies
to img tag as well
we can add links to images link this
<ul>
<li>Home</li>
<li>About</li>
</ul>
ordered list :- used to list ordered items
<ol>
<li>phone</li>
<li>Pc</li>
<li>laptop</li>
</ol>
tables
The tables tag is used to define tables in HTML. It is used to format and display data
we can define as many tables row as we want to add a caption to the table we use <caption>
tag inside table
thead tag used to wrap table head (cation & tr with th + body tag) :- used to wrap the table body
colspan attribute
HTML form
An HTML forms is used to collect input from the user form tag is used the same
<form>
<!-- Element of the form -->
</form>
input Elements :- can be of type text, checkbox radio button and submit we can also have a file type
Textarea elements :- defines a multi line text input col and row attributes can be used to size the text
area
HTML Praticals
Paragraph
<p>This is paragraph</p>
* Commant
* Heading
==>
*Bold tag
<b>Bold</b>
Strong tag
<strong>This is string tag </strong>
To add string value for (SEO) = Search Engine Optimation.
* Itlic tag
<i> itlic</i>
*Small tag
<small>This is small Tag </small>
* Mark tag
<mark>This is mark tag </mark>
* Delete Tag
<del>Tag </del>
* Insterted tag
<ins>tag </ins>
*Sub tag
X<sub>2</sub>
Super tag
X <sup>2<sup>
Quation tag
<q>This is quation</q>
Blockquote
Abbration tag
Address Tag
<address>Kolhapur , India<address>
cite tag
<cite>The Book </cite> is written by ..
Ancar tag
open link in same tab
<a href =”https://google.com/”>read more </a>
ID attrubuite
Email Link
contact us on <a href “mailto:admin@web-site.com”>admin@website.com</a>
Contact us on <a href = “mailto: admin@website.com? Subject = Hello how are you”
>admin@website.com</a>
Image tag
Marquee tag
Ordered list
Unorder list
Description list
Table
Nested Tables
Ifream
<iframe src ="bing.com" hight = "500" width="1000"></iframe>
HTML Audio
Video Files
pdf = Embed
go to youtube.com share video select embed option copy sentex and pest it to your code
*HTML entities
embed <&> sign in
name ⁢div>
<div> number
HTML symbols
HTML Emojis
😄
google and search HTML emojies and use it
Semantic elements
<header></header>
<header> <section>
<article>
<nav> <figure>
<img>
<figcaption></figcation>
<articale> <figure>
</article>
<sidebar> </section>
<footer></footer>
<section>
<footer>
Image map
add one or more that one links in one image is know as image map
HTML Forms
Form File Upload
Input Attributes
Select list
Radio button
HTML checkbox
responsive
<meta name = “viewport” content=”width=device-width, initial-scale=1.0”>