Q1 HTML Flashcards
HTML
HyperText Markup Language
how to start html
<!DOCTYPE html>
<html>
<head>
<title>\_\_\_\_\_</title>
</head>
<body>
</body>
</html>
how to start a heading, which one is the biggest which one is the smallest?
<h1></h1>
- biggest <h6></h6> - smallest
normal text, also known as paragraph
<p>
</p>
line break
<br></br>
this attribute means list item, do you use it to start listing?
<li>, no should be used as
<ol>
<li>hi</li>
</ol>
</li>
ordered list, numbered list
<ol></ol>
unordered list, bulleted list
<ul></ul>
how to add pic
<img src= ‘paldo.jpg’>
to decrease or increase the size the pic
<img src= ‘paldo.jpg’ width= ‘250’ height= ‘250’>
to create a link to another website
<a href= ‘html’>title</a>
anchor
<a></a>
table head
<th></th>
<img ___ =>
src
to put data inside the table
<td></td>
href
hyperlink reference
alt
alternative text
how to put a photo and click it to go to another link
<a href= ‘paldo.html’><img src= ‘paldo.jpg>
how to put username box
<input type= ‘text’ name=‘user’ placeholder=‘Username’>
how to put an empty box
<input type= ‘text’ name=‘user’ placeholder=‘ ’ required text= 10>
how to make a box that is disabled
<input type= ‘text’ name=‘user’ value=‘paldo’ disabled>
how to put a name automatically but can’t be erased
<input type= ‘text’ name=‘user’ value=‘paldo’>
how to make a text read only
<input type= ‘text’ name=‘user’ value=‘paldo’ readonly>
how to make a password box
<input type= ‘pass’ name=‘password’ placeholder=‘Password’>