method
attribute of form
The method
attribute specifies the HTTP method (GET or POST) to be used when submitting the form data.
enctype="multipart/form-data
attributeinput type="hidden"
is used for sending IDs like product ID that was choosen by user.
Example: input type="hidden" name="product_id" id="product_id" value="789"
Do not use hidden inputs as a form of security! The value is not visible to regular user only.
The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page.
head>
<meta> name="" content="" </meta>
</head>
In UTF-8 each character (number, sign, letter in each language) has its specific code. As a result web page that contains more than one language will be shown correctly.
Provides a brief summary of a web page. Search engines such as Google often display the meta description—typically up to 160 characters long—in search results where they can highly influence user click-through rates.
This meta keywords element was visible to search engines. Today people continue to use this tag in their web sites without proven reason.
Refresh document every 30 seconds
iframe - an inline frame is used to embed another document within the current HTML document.
Open some video on the the YouTube, press on Share --> Embed, than copy iframe
section.
Attributes:
Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in HTML. The name cascading comes from the specified priority scheme to determine which style rule applies if more than one rule matches a particular element. This cascading priority scheme is predictable.
This is a bad practice.
Example: <p style="color:red">Inline CSS is not recommended.</p>
Style is specified inside the html file. Better than Inline CSS.
<head>
<style>
...
</style>
</head>
Style is specified in the external file like style.css
This is the preffered option.
Browser may cache external css
file.
<head>
<link rel="stylesheet" href="style.css">
</head>
The latest property specified in external css
file will define the style. Inline CSS has the highest priority.
Example:
div {
color: red;
font-size: 25px;
font-family: Arial, Helvetica, sans-serif;
}
Created with ❤ by Raya Levinson