1. What is HTML?
HTML, or HyperText Markup Language, is a markup language used to describe the structure of a web page.
It uses a special syntax or notation to organize and give information about the page to the browser.
Elements usually have opening and closing tags that surround and give meaning to content.
2. What are the tags of headline?
<h1></h1>, <h2></h2>
3. What is the tag of paragraph?
<p></p>
4. How to start a comment in html?
<!-- comment -->
5. What are descriptive HTML tags of HTML5?
These include main, header, footer, nav, video, article, section
and others.
6. How to add images to a website?
Nest them within anchor tags
7. How to link to external pages?
Use anchor tags <a href="link"></a>
8. How to link to internal sections of a page?
Use anchor tags and assign a link’s href
attribute to a hash symbol #
plus the value of the id
attribute for the element.
9. How to open a link in new tab?
<a href="link" target="_blank">text</a>
10. How to make a dead link?
Use hash symbol -> href="#"
11. How to turn an image into a link?
Nest it within anchor tags
12. How to create a Bulleted Unordered List?
<ul>
<li>milk</li>
<li>cheese</li>
</ul>
13. How to create an Ordered List?
<ol>
<li>Garfield</li>
<li>Sylvester</li>
</ol>
14. How to create a Text Field?
<input type="text">
15. How to add Placeholder Text to a Text Field?
<input type="text" placeholder="this is placeholder text">
16. How to create a Form Element?
<form action="/url-where-you-want-to-submit-form-data"></form>
17. How to add a Submit Button to a Form?
<button type="submit">this button submits the form</button>
18. How to use HTML5 to Require a Field?
<input type="text" required>
19. How to create a Set of Radio Buttons?
<label>
<input type="radio" name="indoor-outdoor">Indoor
</label>
20. How to create a Set of Checkboxes?
<label for="loving"><input id="loving" type="checkbox" name="personality"> Loving</label>
21. How to use the value attribute with Radio Buttons and Checkboxes?
<label for="indoor">
<input id="indoor" value="indoor" type="radio" name="indoor-outdoor">Indoor
</label>
<label for="outdoor">
<input id="outdoor" value="outdoor" type="radio" name="indoor-outdoor">Outdoor
</label>
22. How to check Radio Buttons and Checkboxes by Default?
<input type="radio" name="test-name" checked>
23. How to declare the Doctype of an HTML Document?
<!DOCTYPE ...>
24. How to define the Head and Body of an HTML Document?
<!DOCTYPE html>
<html>
<head>
<!-- metadata elements -->
</head>
<body>
<!-- page contents -->
</body>
</html>