Skip to content

Latest commit

 

History

History
126 lines (93 loc) · 1.85 KB

File metadata and controls

126 lines (93 loc) · 1.85 KB

HTML notes

how to comment

  <!-- this is how to comment -->


Escape Sequence in HTML

Code Symbol Description

&quot;

" Quotation Mark

&amp;

& Ampersand

&gt;

> Greater than

&lt;

< Less than

&copy;

© Copyright

&reg;

® Registered trademark

&nbsp;

Nonbreaking space

&frac14;

¼ Fraction of one fourth

&frac12;

½ Fraction of one half

note: &nbsp; adds space that won’t break in any screen size.
“ when line fill with words the next word goes to next line, in case we want some words to always be together or in same line we use &nbsp for space ”


HTML doc Structure

<!DOCTYPE html>                 <!-- tells that this is html document -->
<html lang="en"> <!-- "browser/search engine” this document’s body is english -->
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>title of Document</title>
</head>
<body>
    body of Document, actual content to be displayed by browser.
</body>
</html>