HTML SL
HTML SL
What is HTML?
o It is just a standardized system of tagging a text file.
o A text file that is "tagged" following the "HTML standard" is called an HTML document.
o This standard is followed by both web developers and web browsers in order to produce
expected results.
HTML versions
o HTML has 5 versions so far, ranging from HTML 1.0 to the most recent, HTML5.
DOCTYPE
o DOCTYPE is not an HTML tag. It is simply an instruction for your browser to tell which version
of HTML your document is using.
o DOCTYPE declarations:
The following are the most common tasks you do using Visual Studio Code:
o Open existing folder or file
o Create a new folder in a specific location
o Create a new file in a specific location
o Make edits and save
o Rename files and/or folders
Here is a list of VSC extensions (which adds extra features to VSC) that you must install:
o Open in default browser (by peakchen90): to quickly open an HTML file in a browser.
o Live Server (by Ritwick Dey): Launches a development local server with live reload feature for
static & dynamic pages.
o Material icon theme (by Philipp Kief): provides lots of icons based on Material Design for VSC.
o Prettier (by Prettier): a tool that automatically makes your code more readable or formatted.
o Auto rename tag (by Jun Han): automatically renames paired HTML/XML tags.
o CSS Peek (by Pranay Prakash): to check the properties attached to a CSS class or id from your
HTML file. With CSS Peek, you can view a hover image of your CSS from within your HTML file.
o Indent rainbow (by Odewart): makes indentation easier to read.
o JS Snippet (by Gajesh Panigrahi): Javascript, typescript, bootstrap, ES6, typescript-react, react,
react-router code snippet
1.4 Basic rules of HTML tags
• Structural Tags
▪ <html>
▪ <head>
▪ <body>
▪ <header>
▪ <nav>
▪ <section>
▪ <div>
▪ <h1> to <h6>
▪ <a>
▪ <p>
▪ <br>
▪ <hr>
▪ <footer>
• Metadata Tags
▪ <link>
▪ <style>
▪ <title>
▪ <meta>
• Form Tags
▪ <form>
▪ <input>
▪ <textarea>
▪ <button>
• Formatting Tags
▪ <b>
▪ <center>
▪ <em>
▪ <small>
▪ <strong>
▪ <sup>
• List Tags
▪ <ul>
▪ <ol>
▪ <li>
• Scripting Tags
▪ <script>
▪ <img>
▪ <video>
▪ <iframe>
https://www.impactplus.com/blog/21-basic-html-codes-everyone-whos-not-a-developer-should-know
https://www.tutorialrepublic.com/html-reference/html5-tags.php